[Overview][Types][Classes][Procedures and functions][Variables][Index] |
Creates a string filled with the specified number of given codepoints.
Source position: lazutf8.pas line 134
function UTF8StringOfChar( |
AUtf8Char: string; |
N: Integer |
):string; |
AUtf8Char |
|
Codepoint to reproduce in the function. |
N |
|
Number of occurrences to include in the return value. |
UTF8StringOfChar is a function used to create a UTF-8-encoded string filled with the specified number of occurrences of the given codepoint. AUtf8Char is the UTF-8 codepoint to reproduce in the function. No actions are performed if AUtf8Char is an empty string (''), or contains a malformed UTF-8 codepoint.
The return value is filled with byte values for the codepoint (1 to 4 bytes as per the UTF-8 encoding). The process is repeated until the number of codepoints in N have been stored in the return value.
Version 3.2 | Generated 2024-02-25 | Home |