Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Interface

IReaderRangeTokenCounter

Namespace OfficeIMO.Reader
Assembly OfficeIMO.Reader.Core
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 Int32 CountTokens(String prefix, String source, Int32 start, Int32 length) #
Returns: Int32

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

Parameters

prefix System.String requiredposition: 0
source System.String requiredposition: 1
start System.Int32 requiredposition: 2
length System.Int32 requiredposition: 3