ParsingUtils.parseNumber
long parseNumber(string str) @safe pureParses a number from a string, skipping non-numeric characters.
This is optimized for parsing /proc files where values may be surrounded by parentheses or other characters.
Parameters
str | String to parse |
Returns
Parsed number