Copies from a C-style string with UTF-8 encoding to UTF-8 string.
Source position: lazutf8.pas line 113
function UTF8CStringToUTF8String( |
SourceStart: PChar; |
SourceLen: PtrInt |
):string; |
SourceStart |
|
PChar with the UTF-8-encoded C-style string. |
SourceLen |
|
Number of codepoints to copy in the method. |
UTF-8-encode string with C-style quoting removed.
UTF8CStringToUTF8String is a String function used to copy the specified number of characters (codepoints) from a C-style string with UTF-8 encoding. The return value is a UTF-encoded string with C-style specials characters converted to their common equivalents. The following C-style quoted characters are handled in the function:
The return value is a string which contains the number of codepoints in SourceStart specified in SourceLen, or an empty string ('') when SourceLen is 0 (zero).
| Version 4.4 | Generated 2025-11-08 | Home |