| CharacterCountingIterator Constructor (Location, FuncCharacterCountingIteratorICharacterCountingVisitor, FuncCharacterCountingIteratorICharacterCountingVisitor) |
Namespace: Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi
public CharacterCountingIterator( Location startLocation, Func<CharacterCountingIteratorICharacterCountingVisitor> startCounterFactory, Func<CharacterCountingIteratorICharacterCountingVisitor> endCounterFactory )
Factory method to create the implementation of the visitor that is used to count characters at the start of container nodes.
Factory method to create the implementation of the visitor that is used to count characters at the end of container nodes.
Use this constructor with factory methods to create your own versions of the CharacterCountingIteratorStartOfItemCharacterCounterVisitor and CharacterCountingIteratorEndOfItemCharacterCounterVisitor to customize the character counting algorithm.