TextConversions (FSharp.Data)
Attempts to parse the string as a boolean. Accepts "true", "false", "yes", "no", "1", "0" (case-insensitive).
Attempts to parse the string as a boolean. Accepts "true", "false", "yes", "no", "1", "0" (case-insensitive).
-
text
:
string -
The string to parse.
-
Returns:
bool option
Attempts to parse the string as a DateTime using ISO 8601 format or MSFT JSON date format.
Attempts to parse the string as a DateTime using ISO 8601 format or MSFT JSON date format.
-
cultureInfo
:
IFormatProvider -
The culture to use for parsing.
-
text
:
string -
The string to parse. Accepts e.g.
2013-01-28T00:37Zor/Date(1234567890)/.
-
Returns:
DateTime option
Attempts to parse the string as a DateTimeOffset using ISO 8601 format or MSFT JSON date with offset.
Attempts to parse the string as a DateTimeOffset using ISO 8601 format or MSFT JSON date with offset.
-
cultureInfo
:
IFormatProvider -
The culture to use for parsing.
-
text
:
string -
The string to parse. The timezone offset must be present.
-
Returns:
DateTimeOffset option
Attempts to parse the string as a decimal using the given culture.
Attempts to parse the string as a decimal using the given culture.
-
cultureInfo
:
IFormatProvider -
The culture to use for parsing.
-
text
:
string -
The string to parse. Currency and percentage adorners are removed before parsing.
-
Returns:
decimal option
Attempts to parse the string as a float using the given culture.
Attempts to parse the string as a float using the given culture.
-
missingValues
:
string[] -
Values to treat as missing. If matched, returns None or Some NaN depending on useNoneForMissingValues.
-
useNoneForMissingValues
:
bool -
If true, missing values and NaN are returned as None; otherwise Some Double.NaN is used.
-
cultureInfo
:
IFormatProvider -
The culture to use for parsing.
-
text
:
string -
The string to parse.
-
Returns:
float option
Attempts to parse the string as a Guid.
Attempts to parse the string as a Guid.
-
text
:
string -
The string to parse. Leading and trailing whitespace is trimmed before parsing.
-
Returns:
Guid option
Attempts to parse the string as an integer using the given culture.
Attempts to parse the string as an integer using the given culture.
-
cultureInfo
:
IFormatProvider -
The culture to use for parsing.
-
text
:
string -
The string to parse. Currency and percentage adorners are removed before parsing.
-
Returns:
int option
Attempts to parse the string as a 64-bit integer using the given culture.
Attempts to parse the string as a 64-bit integer using the given culture.
-
cultureInfo
:
IFormatProvider -
The culture to use for parsing.
-
text
:
string -
The string to parse. Currency and percentage adorners are removed before parsing.
-
Returns:
int64 option
Turns empty or null string value into None, otherwise returns Some
Turns empty or null string value into None, otherwise returns Some
-
str
:
string
-
Returns:
string option
Attempts to parse the string as a TimeSpan using the given culture.
Attempts to parse the string as a TimeSpan using the given culture.
-
cultureInfo
:
CultureInfo -
The culture to use for parsing.
-
text
:
string -
The string to parse.
-
Returns:
TimeSpan option
`¤` `$` `¢` `£` `¥` `₱` `﷼` `₤` `₭` `₦` `₨` `₩` `₮` `€` `฿` `₡` `៛` `؋` `₴` `₪` `₫` `₹` `ƒ`
`¤` `$` `¢` `£` `¥` `₱` `﷼` `₤` `₭` `₦` `₨` `₩` `₮` `€` `฿` `₡` `៛` `؋` `₴` `₪` `₫` `₹` `ƒ`
-
Returns:
Set<char>
`NaN` `NA` `N/A` `#N/A` `:` `-` `TBA` `TBD`
`NaN` `NA` `N/A` `#N/A` `:` `-` `TBA` `TBD`
-
Returns:
string[]
-
Returns:
Set<char>