undead ~master (2024-04-17T22:51:33Z)
Home
Dub
Repo
parseInteger.value
undead
metastrings
parseInteger
Undocumented in source.
enum
value
;
enum
value
;
enum
value
;
template
parseInteger
(const(char)[] s)
static if
(!(
s.length == 0
))
static if
(!(
s[0] >= '0' && s[0] <= '9'
))
static if
(
s.length >= 2 && s[0] == '-' && s[1] >= '0' && s[1] <= '9'
)
enum
value
=
s
[
0
..
2
] ~
parseUinteger
!(
s
[
2
..$]).
value
;
enum
value
;
Meta
Source
See Source File
undead
metastrings
parseInteger
manifest constants
rest
value