Performs safe quoting for the specified UTF-8-encoded string value.
Source position: lazutf8.pas line 142
function UTF8QuotedStr( |
const S: string; |
const Quote: string |
):string; |
S |
|
String with the values examined and quoted in the routine. |
Quote |
|
Byte sequence with the quote character used in the routine. |
Value in S after safe UTF-8 quoting has been applied.
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.
Lazarus Utilities (LazUtils) | Version 3.99-1d79f9e4df (2024-03-21) | Home |