API Reference
Interface
IReaderRangeTokenCounter
Optional token-counter extension that counts a prefix and source range without allocating a substring.
Remarks
The result must equal CountTokens(prefix + source.Substring(start, length)).
Methods
public abstract Int32 CountTokens(String prefix, String source, Int32 start, Int32 length) #Returns:
Int32Counts the exact concatenated output projection represented by a prefix and source range.
Parameters
- prefix System.String
- source System.String
- start System.Int32
- length System.Int32