Skip to main content

Crate alphanumeric

Crate alphanumeric 

Source

Enums§

CharType
Defines character group types with special custom types (Char, Chars, Range, Between)
DecimalSeparator
Specifies how to interpret decimal separators when extracting numbers

Traits§

CharGroupMatch
Methods to validate strings with character classes
IsNumeric
Method to check if the string may be parsed to an integer or float
StripCharacters
Set of methods to strip unwanted characters by type or extract vectors of numeric strings, integers or floats
ToSegments
Methods to split a longer string on a separator and return a vector of strings, a tuple of two strings or single optional string segment

Functions§

uses_decimal_comma
Detect if a numeric string uses the European format with , as the decimal separator and dots as thousand separators If only one comma is present, enforce_euro_mode will treat the comma as a decimal separator. Otherwise it will be assumed to be a thousand separator