bc-string ~master (2021-10-17T08:40:59Z)
Dub
Repo
dedent.shortestIndent
bc
string
string
dedent
Undocumented in source.
template
dedent
(alias str)
nothrow @
nogc
template
shortestIndent (
alias
str
size_t
prev
=
size_t
.
max
) {
nothrow @
nogc
enum
line
;
nothrow @
nogc
enum
stripped
;
nothrow @
nogc
static if
(
line.length == 0
)
enum
shortestIndent
;
nothrow @
nogc
static if
(!(
line.length == 0
))
static if
(
line.length == stripped.length
)
enum
shortestIndent
;
nothrow @
nogc
static if
(!(
line.length == 0
))
static if
(!(
line.length == stripped.length
))
enum
cur
;
nothrow @
nogc
static if
(!(
line.length == 0
))
static if
(!(
line.length == stripped.length
))
enum
next
;
nothrow @
nogc
static if
(!(
line.length == 0
))
static if
(!(
line.length == stripped.length
))
enum
shortestIndent
;
}
Members
Manifest constants
cur
enum
cur
;
Undocumented in source.
line
enum
line
;
Undocumented in source.
next
enum
next
;
Undocumented in source.
shortestIndent
enum
shortestIndent
;
Undocumented in source.
shortestIndent
enum
shortestIndent
;
Undocumented in source.
shortestIndent
enum
shortestIndent
;
Undocumented in source.
stripped
enum
stripped
;
Undocumented in source.
Meta
Source
See Implementation
bc
string
string
dedent
manifest constants
dedent
line
shortest
stripped
static functions
getLine
stripWS
templates
dedentNext
shortestIndent