UTF16Pos function
Pos implemented for UTF-16-encoded values.
Declaration
function UTF16Pos(const SearchForText: UnicodeString;
const SearchInText: UnicodeString; StartPos: PtrInt=1)
: PtrIntDescription
UTF16Pos is a
PtrInt function used to get the character
index in SearchInText where the value in SearchForText is located. StartPos
allows the search to begin at a specific character (code point).
The return value is the 1-based UTF-16 character index where the SearchForText starts in SearchInText, or 0 when not found.
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
