tanya.container.string

UTF-8 encoded string.

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

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

Internally $(D_PSYMBOL String) is represented by a sequence of $(D_KEYWORD char)s.

Members

Classes

UTFException
class UTFException

Thrown on encoding errors.

Structs

ByCodePoint
struct ByCodePoint(E)

Iterates $(D_PSYMBOL String) by UTF-8 code point.

ByCodeUnit
struct ByCodeUnit(E)

Iterates $(D_PSYMBOL String) by UTF-8 code unit.

String
struct String

UTF-8 string.

Meta