CharSetTrait_UTF_16

Description

struct CodeX.CharSetTrait_UTF_16

Derived from

ICharSetTrait

A ICharSetTrait for the UTF-16 encoding.

Public / Constructors

Create


public static method Create → ()

returns → CharSetTrait_UTF_16

The initialized value.

Creates an initialized value of CharSetTrait_UTF_16.

Public / Methods

Push​Code​Unit

3 overloads


public method PushCodeUnit1 → (2)

codeUnits in : string

The code unit sequence.

index in : int32

Index into codeUnits in. Specify an index after the last element in the sequence to flush.

returns → bool

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

Adds the given code unit for processing.


public method PushCodeUnit2 → (3)

codeUnits in : string

The code unit sequence.

index in : int32

Index into codeUnits in. Specify an index after the last element in the sequence to flush.

length in : int32

The sequence length.

returns → bool

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

Adds the given code unit for processing.