FMX.Text.GetPrevLexemeBegin

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

Delphi

function GetPrevLexemeBegin(const AText: string; const AIndex: Integer): Integer;

C++

extern DELPHI_PACKAGE int __fastcall GetPrevLexemeBegin(const System::UnicodeString AText, const int AIndex);

プロパティ

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

説明

指定されたインデックスより前にある単語の開始インデックスを返します。


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

Index は、Text 内の検索の停止位置を指定します。

例:

 index:=GetPrevWordBegin('This is my string', 8)
  //result
  index=5
  //the first word before position 8, is starting at position 5 :'is'

関連項目