Module tanya.container.string

UTF-8 encoded string.

You can create a String from a literal string, single character or character range. Characters can be of the type char, wchar or dchar. Literal strings, characters and character ranges can be also inserted into an existing string.

String is always valid UTF-8. Inserting an invalid sequence or working on a corrupted String causes UTFException to be thrown.

Internally String is represented by a sequence of chars.

Classes

NameDescription
UTFException Thrown on encoding errors.

Structs

NameDescription
ByCodePoint Iterates String by UTF-8 code point.
ByCodeUnit Iterates String by UTF-8 code unit.
String UTF-8 string.