Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Interface

IReaderRangeTokenCounter

OfficeIMO.Reader

Namespace
OfficeIMO.Reader
Assembly
OfficeIMO.Reader.Core
Source revision
013c05ace7bb with working tree changes
Modifiers
abstract

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 int CountTokens(string prefix, string source, int start, int length) #

Counts the exact concatenated output projection represented by a prefix and source range.

Parameters

prefix string required
source string required
start int required
length int required

Returns

int