nulib.text.unicode.utf32

UTF-32 Utilities

Members

Functions

decode
codepoint decode(dchar c)

Decodes a single UTF-32 character

decode
UnicodeSequence decode(inout(dchar)[] str, bool stripBOM)

Decodes a single UTF-32 string

decode
UnicodeSequence decode(ndstring str, bool stripBOM)

Decodes a single UTF-32 string

encode
ndstring encode(UnicodeSlice slice, bool addBOM)

Encodes a UTF-32 string.

encode
ndstring encode(UnicodeSequence seq, bool addBOM)

Encodes a UTF-32 string.

getBOM
codepoint getBOM(inout(dchar)[] str)

Gets the BOM

toMachineOrder
ndstring toMachineOrder(inout(dchar)[] str, Endianess fallbackEndian)

Returns a string which is str converted to machine order.

validate
bool validate(dchar c)

Validates a UTF32 codepoint

validate
bool validate(ndstring str)

Validates a UTF32 string

validate
bool validate(inout(dchar)[] str)

Validates a UTF32 string

Meta

Authors

Luna Nielsen