readDecNumber

Immediatly reads a decimal number.

readDecNumber
(
Range
)
(
auto ref Range range
)

Examples

1 auto text = "0123456 789";
2 assert(text.readDecNumber == "0123456");
3 text.popFront;
4 assert(text.readDecNumber == "789");
5 
6 string t = "456";
7 if (auto num = readDecNumber(t))
8     assert (num == "456");

Meta