SelectableWordsSegmenter.GetTokenAt(String, UInt32) 方法

定义

确定并返回所选单词或词干,该词干包含或跟随指定的索引到提供的文本中。

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

参数

text
String

Platform::String

winrt::hstring

提供的文本,其中要选择单词或词干。

startIndex
UInt32

unsigned int

uint32_t

文本 中的从零开始的索引。 它必须小于 文本长度。

返回

一个 SelectableWordSegment ,表示所选单词或词干。

注解

请注意,某些语言不使用空格 (,例如日语或中文) 某些语言可能会为复合词返回多个词干 (,例如德语) 。

适用于