OpenTAP 9.27
API Reference
|
Parser / back parser for numbers and sequences of numbers. More...
Public Member Functions | |
NumberFormatter (CultureInfo culture) | |
NumberFormatter (CultureInfo culture, UnitAttribute unit) | |
Creates a number parser based on a UnitAttribute. More... | |
ICombinedNumberSequence< double > | Parse (string value) |
Parses a string to a sequence of doubles. supports ranges, sequences, units and prefixes. More... | |
string | FormatNumber (object value) |
Parses a number back to a string. More... | |
object | ParseNumber (string str, Type t) |
Parses a single number from a string. More... | |
bool | TryParseNumber (string str, Type t, out object val) |
Try to parse a single number from a string. More... | |
string | FormatRange (IEnumerable values) |
Parses a sequence of numbers back into a string. More... | |
Parser / back parser for numbers and sequences of numbers.
|
inline |
culture | The culture used to parse/write numbers. |
|
inline |
Creates a number parser based on a UnitAttribute.
culture | |
unit |
|
inline |
Parses a number back to a string.
value |
|
inline |
Parses a sequence of numbers back into a string.
values |
|
inline |
Parses a string to a sequence of doubles. supports ranges, sequences, units and prefixes.
value |
|
inline |
Parses a single number from a string.
str | |
t |
|
inline |
Try to parse a single number from a string.
str | the string to parse. |
t | the return type of value. must be numeric. |
val | resulting value. Null if parsing failed. |
OpenTAP 9.27 API built Wed Nov 27 2024 13:14:46