FMX.Text.GetNextLexemeBegin

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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

C++

extern DELPHI_PACKAGE int __fastcall GetNextLexemeBegin(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 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