Share via


WordsSegmenter.GetTokenAt(String, UInt32) Method

Definition

Determines and returns the word or word stem which contains or follows a specified index into the provided text.

public:
 virtual WordSegment ^ GetTokenAt(Platform::String ^ text, unsigned int startIndex) = GetTokenAt;
WordSegment GetTokenAt(winrt::hstring const& text, uint32_t const& startIndex);
public WordSegment GetTokenAt(string text, uint startIndex);
function getTokenAt(text, startIndex)
Public Function GetTokenAt (text As String, startIndex As UInteger) As WordSegment

Parameters

text
String

Platform::String

winrt::hstring

Provided text from which the word or word stem is to be returned.

startIndex
UInt32

unsigned int

uint32_t

A zero-based index into text. It must be less than the length of text.

Returns

A WordSegment that represents the word or word stem.

Remarks

Note that some languages do not use spaces (such as Japanese or Chinese) and some languages may return multiple word stems for compound words (such as German).

Applies to