FMX.Text.GetLexemeEnd
Delphi
function GetLexemeEnd(const AText: string; const AIndex: Integer): Integer;
C++
extern DELPHI_PACKAGE int __fastcall GetLexemeEnd(const System::UnicodeString AText, const int AIndex);
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| function | public | FMX.Text.pas FMX.Text.hpp |
FMX.Text | FMX.Text |
説明
指定されたインデックスが含まれている単語の終了インデックスを返します。
Text は、検索範囲となる文字列を指定します。
Index は、単語の識別に使用される、Text 内の位置を指定します。Index の位置にある文字が単語の一部である場合、GetLexemeEnd はその単語の終了インデックスを返します。
Index の位置にある文字が Text 内の単語に含まれていない場合、GetLexemeEnd は Index を返します。
例:
index:=GetWordEnd('This is my string', 8)
//result
index=9
//the word ends at position 9:'my'