bc-string ~master (2021-10-17T08:40:59Z)
Dub
Repo
dedent.dedent
bc
string
string
dedent
Undocumented in source.
enum
dedent
;
enum
dedent
;
enum
dedent
;
enum
dedent
;
template
dedent
(alias str)
nothrow @
nogc
static if
(!(
!line.length
))
static if
(!(
(stripped.length == 1 && stripped[0] == '\n') || (stripped.length == 2 && stripped[0] == '\r' && stripped[1] == '\n')
))
static if
(!(
shortest == 0
))
enum
dedent
=
stripped
~
dedentNext
!(
str
[
line.length
..$],
shortest
)
;
Meta
Source
See Source File
bc
string
string
dedent
manifest constants
dedent
line
shortest
stripped
static functions
getLine
stripWS
templates
dedentNext
shortestIndent