FMX.Text.GetPrevLexemeBegin
Delphi
function GetPrevLexemeBegin(const Text: string; Index: Integer): Integer;
C++
extern DELPHI_PACKAGE int __fastcall GetPrevLexemeBegin(const System::UnicodeString Text, int Index);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | FMX.Text.pas FMX.Text.hpp |
FMX.Text | FMX.Text |
Description
Returns the start index of the word situated before a specified index.
Text specifies the string in which to search.
Index specifies the position, within Text, where to stop searching.
Example:
index:=GetPrevWordBegin('This is my string', 8)
//result
index=5
//the first word before position 8, is starting at position 5 :'is'