ICharSetTrait

Description

[StaticTemplate]
interface CodeX.ICharSetTrait

The ICharSetTrait interface is used to convert code unit streams between different encodings.

See also

Unicode

Public / Methods

Pop​Code​Point


public method PopCodePoint → ()

returns → int32

The next output code point or -1 if none.

Returns the next code point.

Pop​Code​Unit


public method PopCodeUnit → ()

returns → int32

The next output code unit or -1 if none.

Returns the next output code unit.

Push​Code​Point


public method PushCodePoint → (1)

codePoint in : int32

The code point.

Adds the given code point for processing.

Push​Code​Unit


public method PushCodeUnit → (1)

codeUnit in : int32

The code unit or negative to flush.

returns → bool

true if a code point has become available via PopCodePoint,
false if more code units are required.

Adds the given code unit for processing.

Reset


public method Reset → ()

Resets the stream state.

Public / Attributes

Bytes​Per​Code​Unit


public attribute BytesPerCodeUnit → (get)

value : int32

The number of bytes per code unit: 1, 2 or 4.

Returns the number of bytes per code unit.