Skip to main content

numeric_token_len

Function numeric_token_len 

Source
fn numeric_token_len(s: &str) -> usize
Expand description

Returns the byte length of a numeric token starting at the beginning of s. A numeric token is one or more ASCII digits optionally followed by a single '.' and one or more additional ASCII digits (e.g. "4", "4.5"). A trailing dot with no digits after it (e.g. "4.") is not included.