Parse an exponent
exponent.matches('e123') // true
Parse a floating point number
floatingPoint.parseToEnd('1.2e3') // 1200
Parse a fraction
fraction.matches('.123') // true
Parse an integer
integer.parseToEnd('123') // 123
Parse a floating point number with optional separators
separatedFloatingPoint.parseToEnd('1_000.2e3') // 1000200
Parse an integer which may be separated with underscores
separatedInteger.parseToEnd('1_000') // 1000
Parse a numerical sign
sign.parseToEnd('+') // '+'
Parse a floating point number with an optional sign
signedFloatingPoint.parseToEnd('-1.2e3') // -1200
Parse an integer, optionally preceded with a sign
signedInteger.parseToEnd('-123') // -123
Parse a floating point number with optional sign and separators
signedSeparatedFloatingPoint.parseToEnd('-1_000.2e3') // -1000200
Parse an integer with an optional sign and separators
signedSeparatedInteger.parseToEnd('-1_000') // -1000
Generated using TypeDoc
Parse a single digit
digit.matches('1') // true