| [Overview][Types][Procedures and functions][Variables][Index] |
Simple and fast function to write a single unicode codepoint as UTF-8 to Buf and returns the number of bytes written
Source position: lazutf8.pas line 92
function UnicodeToUTF8SkipErrors( |
CodePoint: Cardinal; |
Buf: PChar |
):Integer; |
It does not append a #0. It does not check if it is the codepoint actually exists in unicode tables. It returns 0 if the codepoint can not be represented as a 1 to 4 byte UTF-8 sequence.
| lazarus-ccr.sourceforge.net |