- bomCodeOf
immutable(ubyte)[] bomCodeOf(BOM bom)
Undocumented in source. Be warned that the author may not have intended to support it.
- bomOf
BOM bomOf(const(ubyte)[] str)
Undocumented in source. Be warned that the author may not have intended to support it.
- contains
bool contains(T1 haystack, T2 needle)
Undocumented in source. Be warned that the author may not have intended to support it.
- endianOf
Endian endianOf(BOM bom)
Undocumented in source. Be warned that the author may not have intended to support it.
- escape
T escape(T str, EscapeSequence type)
Note:
For the escape and unescape functions, chaining one with the other
(ex: "unescape(escape(str))") will result in a string that is
semantically equivalent to the original, but it is *not* necessarily
guaranteed to be exactly identical to the original string.
- escapeDDQS
T escapeDDQS(T str)
Undocumented in source. Be warned that the author may not have intended to support it.
- escapeHTML
T escapeHTML(T str)
Undocumented in source. Be warned that the author may not have intended to support it.
- formatln
string formatln(T args)
Suggested usage:
"Hello %s!".formatln("World");
- indent
T indent(T str, T indentStr)
T[] indent(T[] lines, T indentStr)
Indents every line with indentStr
- is16Bit
bool is16Bit(BOM bom)
Undocumented in source. Be warned that the author may not have intended to support it.
- is32Bit
bool is32Bit(BOM bom)
Undocumented in source. Be warned that the author may not have intended to support it.
- is8Bit
bool is8Bit(BOM bom)
Undocumented in source. Be warned that the author may not have intended to support it.
- isNativeEndian
bool isNativeEndian(BOM bom)
Undocumented in source. Be warned that the author may not have intended to support it.
- isNonNativeEndian
bool isNonNativeEndian(BOM bom)
Undocumented in source. Be warned that the author may not have intended to support it.
- locate
size_t locate(Char[] s, dchar c, size_t start, CaseSensitive cs)
size_t locate(Char1[] s, Char2[] sub, size_t start, CaseSensitive cs)
- locatePrior
size_t locatePrior(Char[] s, dchar c, size_t start, CaseSensitive cs)
size_t locatePrior(Char1[] s, Char2[] sub, size_t start, CaseSensitive cs)
Like std.string.indexOf, but with an optional 'start' parameter,
and returns s.length when not found (instead of -1).
- nextCodePointSize
size_t nextCodePointSize(T str)
Return value is number of code units
- normalize
T normalize(T str)
T[] normalize(T[] lines)
Unindents, strips whitespace-only lines from top and bottom,
and strips trailing whitespace from eash line.
(Also converts Windows "\r\n" line endings to Unix "\n" line endings.)
- stripLinesBottom
T stripLinesBottom(T str)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripLinesBottom
T[] stripLinesBottom(T[] lines)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripLinesBox
T stripLinesBox(T str)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripLinesBox
T[] stripLinesBox(T[] str)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripLinesLeft
T stripLinesLeft(T str)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripLinesLeft
T[] stripLinesLeft(T[] lines)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripLinesLeftRight
T stripLinesLeftRight(T str)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripLinesLeftRight
T[] stripLinesLeftRight(T[] lines)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripLinesRight
T stripLinesRight(T str)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripLinesRight
T[] stripLinesRight(T[] lines)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripLinesTop
T stripLinesTop(T str)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripLinesTop
T[] stripLinesTop(T[] lines)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripLinesTopBottom
T stripLinesTopBottom(T str)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripLinesTopBottom
T[] stripLinesTopBottom(T[] lines)
Undocumented in source. Be warned that the author may not have intended to support it.
- stripNonPrintable
T stripNonPrintable(T str)
Undocumented in source. Be warned that the author may not have intended to support it.
- toHexString
string toHexString(ubyte[] arr)
Undocumented in source. Be warned that the author may not have intended to support it.
- toMac9EOL
void toMac9EOL(T[] str)
- toNativeEOL
T[] toNativeEOL(T[] str)
Undocumented in source. Be warned that the author may not have intended to support it.
- toNativeEOLFromMac9
T[] toNativeEOLFromMac9(T[] str)
Undocumented in source. Be warned that the author may not have intended to support it.
- toNativeEOLFromUnix
T[] toNativeEOLFromUnix(T[] str)
Undocumented in source. Be warned that the author may not have intended to support it.
- toNativeEOLFromWin
T[] toNativeEOLFromWin(T[] str)
Undocumented in source. Be warned that the author may not have intended to support it.
- toUnixEOL
void toUnixEOL(T[] str)
- toWinEOL
void toWinEOL(T[] str)
- unescape
T unescape(T str, EscapeSequence type)
Undocumented in source. Be warned that the author may not have intended to support it.
- unescapeChar
T unescapeChar(T str, T escapeSequence)
Undocumented in source. Be warned that the author may not have intended to support it.
- unescapeDDQS
T unescapeDDQS(T str)
Warning: This doesn't unescape all escape sequences yet.
- unescapeHTML
T unescapeHTML(T str)
Warning: This doesn't unescape all escape sequences yet.
- unindent
T unindent(T str)
T[] unindent(T[] lines)
Unindents the lines of text as much as possible while preserving
all relative indentation.