FMX.Text.GetNextLexemeBegin

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

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 first word situated after a specified position.

Text specifies the string in which to search.

Index specifies the position within Text from which to start searching.

Example:

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

See Also