- cropLeft
T[] cropLeft(T[] s)
Adjust the content such that no partial encodings exist on the
left side of the provided text.
- cropRight
T[] cropRight(T[] s)
Adjust the content such that no partial encodings exist on the
right side of the provided text.
- decode
dchar decode(const(char[]) src, size_t ate)
Decodes a single dchar from the given src text, and indicates how
many chars were consumed from src to do so.
- decode
dchar decode(const(wchar[]) src, size_t ate)
Decodes a single dchar from the given src text, and indicates how
many wchars were consumed from src to do so.
- encode
char[] encode(char[] dst, dchar c)
Encode a dchar into the provided dst array, and return a slice of
it representing the encoding
- encode
wchar[] encode(wchar[] dst, dchar c)
Encode a dchar into the provided dst array, and return a slice of
it representing the encoding
- fromString16
inout(T[]) fromString16(inout(wchar[]) s, T[] dst)
Convert from a wchar[] into the type of the dst provided.
- fromString16
T[] fromString16(const(wchar[]) s, T[] dst)
Undocumented in source. Be warned that the author may not have intended to support it.
- fromString32
inout(T[]) fromString32(inout(dchar[]) s, T[] dst)
Convert from a dchar[] into the type of the dst provided.
- fromString32
T[] fromString32(const(dchar[]) s, T[] dst)
Undocumented in source. Be warned that the author may not have intended to support it.
- fromString8
inout(T[]) fromString8(inout(char[]) s, T[] dst)
Convert from a char[] into the type of the dst provided.
- fromString8
T[] fromString8(const(char[]) s, T[] dst)
Undocumented in source. Be warned that the author may not have intended to support it.
- isValid
bool isValid(dchar c)
Is the given character valid?
- main
void main()
- onUnicodeError
void onUnicodeError(const(char[]) msg, size_t idx)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- toString
inout(char[]) toString(inout(char[]) src, char[] dst, size_t* ate)
Symmetric calls for equivalent types; these return the provided
input with no conversion
- toString
char[] toString(const(wchar[]) input, char[] output, size_t* ate)
Encode Utf8 up to a maximum of 4 bytes long (five & six byte
variations are not supported).
- toString
char[] toString(const(dchar[]) input, char[] output, size_t* ate)
Encode Utf8 up to a maximum of 4 bytes long (five & six
byte variations are not supported). Throws an exception
where the input dchar is greater than 0x10ffff.
- toString16
inout(wchar[]) toString16(inout(wchar[]) src, wchar[] dst, size_t* ate)
Undocumented in source. Be warned that the author may not have intended to support it.
- toString16
wchar[] toString16(const(char[]) input, wchar[] output, size_t* ate)
Decode Utf8 produced by the above toString() method.
- toString16
wchar[] toString16(const(dchar[]) input, wchar[] output, size_t* ate)
Encode Utf16 up to a maximum of 2 bytes long. Throws an exception
where the input dchar is greater than 0x10ffff.
- toString32
inout(dchar[]) toString32(inout(dchar[]) src, dchar[] dst, size_t* ate)
Undocumented in source. Be warned that the author may not have intended to support it.
- toString32
dchar[] toString32(const(char[]) input, dchar[] output, size_t* ate)
Decode Utf8 produced by the above toString() method.
- toString32
dchar[] toString32(const(wchar[]) input, dchar[] output, size_t* ate)
Decode Utf16 produced by the above toString16() method.