FMX.Text.GetLexemeEnd

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function GetLexemeEnd(const Text: string; Index: Integer): Integer;

C++

extern DELPHI_PACKAGE int __fastcall GetLexemeEnd(const System::UnicodeString Text, int Index);

プロパティ

種類 可視性 ソース ユニット
function public
FMX.Text.pas
FMX.Text.hpp
FMX.Text FMX.Text

説明

指定されたインデックスが含まれている単語の終了インデックスを返します。


Text は、検索範囲となる文字列を指定します。

Index は、単語の識別に使用される、Text 内の位置を指定します。Index の位置にある文字が単語の一部である場合、GetLexemeEnd はその単語の終了インデックスを返します。

Index の位置にある文字が Text 内の単語に含まれていない場合、GetLexemeEndIndex を返します。

例:

 index:=GetWordEnd('This is my string', 8)
  //result
  index=9
  //the word ends at position 9:'my'

関連項目