Skip to content

TUtf8Buffer

Fast UTF-8 <=>UTF-16 conversion using stack memory where possible </=>

Definition

Unit: Neslib.Iceoryx2.System

type TUtf8Buffer = record ... end;

Methods

Name Description
Free must be called after ToUtf8 to free any heap memory in needed.
ToString(PUTF8Char, Integer)
ToString(PUTF8Char) Fast UTF-8-to-Unicode conversion.
ToUtf8 Fast Unicode-to-UTF-8 conversion. You must call Free after you're done with the returned string.

Method Descriptions

Free

must be called after ToUtf8 to free any heap memory in needed.

procedure Free


ToString(PUTF8Char, Integer)

class function ToString(const AUtf8: PUTF8Char; const ALength: Integer): String; overload; static

Parameters

AUtf8: PUTF8Char

ALength: Integer

Returns

String


ToString(PUTF8Char)

Fast UTF-8-to-Unicode conversion.

class function ToString(const AUtf8: PUTF8Char): String; overload; static

Parameters

AUtf8: PUTF8Char

Returns

String


ToUtf8(String, Boolean)

Fast Unicode-to-UTF-8 conversion. You must call Free after you're done with the returned string.

function ToUtf8(const AStr: String; const AEmptyToNil: Boolean = False): TUtf8Str

Parameters

AStr: String

AEmptyToNil: Boolean = False

Returns

TUtf8Str