dedent

Alternative implementation of std.string.outdent that differs in:

* meant for dedent string literals in CT * if first line is not indented, other lines are dedented still (std.string.outdent returns original text in that case) * empty lines at the text start are removed

Members

Manifest constants

dedent
enum dedent;
Undocumented in source.
dedent
enum dedent;
Undocumented in source.
dedent
enum dedent;
Undocumented in source.
dedent
enum dedent;
Undocumented in source.
line
enum line;
Undocumented in source.
shortest
enum shortest;
Undocumented in source.
stripped
enum stripped;
Undocumented in source.

Static functions

getLine
S getLine(S str)
Undocumented in source. Be warned that the author may not have intended to support it.
stripWS
S stripWS(S str)
Undocumented in source. Be warned that the author may not have intended to support it.

Templates

dedentNext
template dedentNext(alias str, size_t indent)
Undocumented in source.
shortestIndent
template shortestIndent(alias str, size_t prev = size_t.max)
Undocumented in source.

Meta