docs: UnicodeToUTF8

git-svn-id: trunk@53964 -
This commit is contained in:
mattias 2017-01-17 15:28:04 +00:00
parent 8fc0308619
commit 9d411abe20
2 changed files with 7 additions and 6 deletions

View File

@ -84,10 +84,10 @@ function UTF8LengthFast(p: PChar; ByteCount: PtrInt): PtrInt;
// Functions dealing with unicode number U+xxx.
function UTF8CharacterToUnicode(p: PChar; out CharLen: integer): Cardinal;
function UnicodeToUTF8(CodePoint: cardinal): string;
function UnicodeToUTF8(CodePoint: cardinal; Buf: PChar): integer;
function UnicodeToUTF8SkipErrors(CodePoint: cardinal; Buf: PChar): integer;
function UnicodeToUTF8Inline(CodePoint: cardinal; Buf: PChar): integer; inline;
function UnicodeToUTF8(CodePoint: cardinal): string; // UTF32 to UTF8
function UnicodeToUTF8(CodePoint: cardinal; Buf: PChar): integer; // UTF32 to UTF8
function UnicodeToUTF8SkipErrors(CodePoint: cardinal; Buf: PChar): integer; // UTF32 to UTF8
function UnicodeToUTF8Inline(CodePoint: cardinal; Buf: PChar): integer; inline; // UTF32 to UTF8
function UTF8ToDoubleByteString(const s: string): string;
function UTF8ToDoubleByte(UTF8Str: PChar; Len: PtrInt; DBStr: PByte): PtrInt;
function UTF8FindNearestCharStart(UTF8Str: PChar; Len: SizeInt;

View File

@ -144,8 +144,9 @@ For speed reasons this function only checks for 1,2,3,4 byte encoding errors. Es
</element>
<!-- function Visibility: default -->
<element name="UnicodeToUTF8">
<short>Encodes the given codepoint as an UTF-8 sequence of 1 to 4 bytes.</short>
<descr>It does not add a #0.</descr>
<short>Encodes the given code point as an UTF-8 sequence of 1 to 4 bytes.</short>
<descr>It does not add a #0.
The code point is not encoded, aka in UTF32.</descr>
<errors/>
<seealso/>
</element>