[Overview][Types][Procedures and functions][Variables][Index] Reference for unit 'LazUTF8' (#lazutils)

UTF8Pos

Returns the character index, where the SearchForText starts in SearchInText

Declaration

Source position: lazutf8.pas line 112

function UTF8Pos(

  const SearchForText: string;

  const SearchInText: string;

  StartPos: SizeInt = 1

):PtrInt;

Description

Returns the character index, where the SearchForText starts in SearchInText. An optional StartPos can be given (as character index, not in byte). Returns 0 if not found.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.