UTF8QuotedStr function
Performs safe quoting for the specified UTF-8-encoded string value.
Declaration
function UTF8QuotedStr(const S: string; const Quote: string): stringDescription
UTF8QuotedStr is a
String function used to double all
occurrences of the byte sequence in the Quote argument. It works like the
QuotedStr or AnsiQuotedStr routines from the RTL
sysutils unit,
but allows the Quote character to contain a valid multi-byte UTF-8 codepoint.
Processing in the routine is halted when the #0 (Decimal 0) character is
encountered.
Like its counterparts, UTF8QuotedStr encloses the return value with the character specified in the Quote argument.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
