System::Globalization::Number Class Reference

Static Public Member Functions

static ASPOSECPP_SHARED_API char_t ParseFormatSpecifier (const String &str, int &digits)
 
static ASPOSECPP_SHARED_API int64_t ParseInt64 (const String &value, NumberStyles style, NumberFormatInfoPtr numberFormatInfo)
 
static ASPOSECPP_SHARED_API bool TryParseInt64 (const String &value, NumberStyles style, NumberFormatInfoPtr numberFormatInfo, int64_t &result)
 
static ASPOSECPP_SHARED_API double ParseDouble (const String &value, NumberStyles style, NumberFormatInfoPtr numberFormatInfo)
 
static ASPOSECPP_SHARED_API bool TryParseDouble (const String &value, NumberStyles style, NumberFormatInfoPtr numberFormatInfo, double &result)
 
static ASPOSECPP_SHARED_API void ValidateParseStyleInteger (NumberStyles style)
 
static ASPOSECPP_SHARED_API void ValidateParseStyleFloatingPoint (NumberStyles style)
 

Detailed Description

Number-related algorithms. This is a static type with no instance services. You should never create instances of it by any means.

Member Function Documentation

◆ ParseDouble()

static ASPOSECPP_SHARED_API double System::Globalization::Number::ParseDouble ( const String value,
NumberStyles  style,
NumberFormatInfoPtr  numberFormatInfo 
)
static

Parses floating point value.

Parameters
valueValue to parse.
styleNumber parsing style.
numberFormatInfoInformation on number format to use.
Returns
Parsed value.

◆ ParseFormatSpecifier()

static ASPOSECPP_SHARED_API char_t System::Globalization::Number::ParseFormatSpecifier ( const String str,
int &  digits 
)
static

Parses format specifier into ICU-friendly format. Not implemented.

Parameters
strString to parse format specifier from.
digitsReference to variable to store number of digits in.

◆ ParseInt64()

static ASPOSECPP_SHARED_API int64_t System::Globalization::Number::ParseInt64 ( const String value,
NumberStyles  style,
NumberFormatInfoPtr  numberFormatInfo 
)
static

Parses long integer value.

Parameters
valueValue to parse.
styleNumber parsing style.
numberFormatInfoInformation on number format to use.
Returns
Parsed value.

◆ TryParseDouble()

static ASPOSECPP_SHARED_API bool System::Globalization::Number::TryParseDouble ( const String value,
NumberStyles  style,
NumberFormatInfoPtr  numberFormatInfo,
double &  result 
)
static

Parses floating point value.

Parameters
valueValue to parse.
styleNumber parsing style.
numberFormatInfoInformation on number format to use.
resultVariable to store parsed value.
Returns
True if parsing succeeded, false otherwise.

◆ TryParseInt64()

static ASPOSECPP_SHARED_API bool System::Globalization::Number::TryParseInt64 ( const String value,
NumberStyles  style,
NumberFormatInfoPtr  numberFormatInfo,
int64_t &  result 
)
static

Parses long integer value.

Parameters
valueValue to parse.
styleNumber parsing style.
numberFormatInfoInformation on number format to use.
resultVariable to store parsed value.
Returns
True if parsing succeeded, false otherwise.

◆ ValidateParseStyleFloatingPoint()

static ASPOSECPP_SHARED_API void System::Globalization::Number::ValidateParseStyleFloatingPoint ( NumberStyles  style)
static

Checks if floating point style value is acceptable.

Parameters
styleStyle to check.
Exceptions
ArgumentExceptionIf style is inacceptable.

◆ ValidateParseStyleInteger()

static ASPOSECPP_SHARED_API void System::Globalization::Number::ValidateParseStyleInteger ( NumberStyles  style)
static

Checks if integer style value is acceptable.

Parameters
styleStyle to check.
Exceptions
ArgumentExceptionIf style is inacceptable.