Unit CastleUnicode

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Unicode utilities.

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TUnicodeCharList  

Functions and Procedures

function UTF8CharacterLength(p: PChar): integer;
function UTF8Length(const s: string): PtrInt;
function UTF8Length(p: PChar; ByteCount: PtrInt): PtrInt;
function UTF8CharacterToUnicode(p: PChar; out CharLen: integer): TUnicodeChar;
function UnicodeToUTF8(CodePoint: TUnicodeChar): string;
function UnicodeToUTF8Inline(CodePoint: TUnicodeChar; Buf: PChar): integer;

Types

TUnicodeChar = Cardinal;

Description

Functions and Procedures

function UTF8CharacterLength(p: PChar): integer;
 
function UTF8Length(const s: string): PtrInt;
 
function UTF8Length(p: PChar; ByteCount: PtrInt): PtrInt;
 
function UTF8CharacterToUnicode(p: PChar; out CharLen: integer): TUnicodeChar;
 
function UnicodeToUTF8(CodePoint: TUnicodeChar): string;
 
function UnicodeToUTF8Inline(CodePoint: TUnicodeChar; Buf: PChar): integer;
 

Types

TUnicodeChar = Cardinal;