bc-string v1.4.0 (2023-05-15T21:45:08Z)
Dub
Repo
dedent.shortest
bc
string
string
dedent
Undocumented in source.
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')
))
enum
shortest
=
shortestIndent
!(
str
[
line.length
..$],
stripped.length
==
line.length
?
size_t.max
: (
line.length
-
stripped.length
))
;
Meta
Source
See Source File
bc
string
string
dedent
manifest constants
dedent
line
shortest
stripped
static functions
getLine
stripWS
templates
dedentNext
shortestIndent