Asposecpplib

Contains methods to work with the 8-bit integer. More...

Static Public Member Functions

static int8_t Parse (const String &value)
 Converts the specified string containing the string representation of a number to the equivalent 8-bit signed integer. More...
 
static int8_t Parse (const String &value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified string containing the string representation of a number to the equivalent 8-bit signed integer using the provided formatting information. More...
 
static int8_t Parse (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static int8_t Parse (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static int8_t Parse (const String &value, std::nullptr_t)
 
static int8_t Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider)
 Converts the specified string containing the string representation of a number to the equivalent 8-bit signed integer using the provided formatting information and number style. More...
 
static int8_t Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
 
static int8_t Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static int8_t Parse (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
 
static bool TryParse (const String &value, int8_t &result)
 Converts the specified string containing the string representation of a number to the equivalent 8-bit signed integer. More...
 
static bool TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider, int8_t &result)
 Converts the specified string containing the string representation of a number to the equivalent 8-bit signed integer using the provided formatting information and number style. More...
 
static bool TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture, int8_t &result)
 
static bool TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi, int8_t &result)
 
static bool TryParse (const String &value, Globalization::NumberStyles styles, std::nullptr_t, int8_t &result)
 

Static Public Attributes

static constexpr int8_t MinValue = (std::numeric_limits<int8_t>::min)()
 Smallest possible value. More...
 
static constexpr int8_t MaxValue = (std::numeric_limits<int8_t>::max)()
 Largest possible value. More...
 

Detailed Description

Contains methods to work with the 8-bit integer.

Member Function Documentation

◆ Parse() [1/9]

static int8_t System::SByte::Parse ( const String value)
static

Converts the specified string containing the string representation of a number to the equivalent 8-bit signed integer.

Parameters
valueThe string to convert.
Returns
The 8-bit signed integer equal to the number represented by the specified string.

◆ Parse() [2/9]

static int8_t System::SByte::Parse ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ Parse() [3/9]

static int8_t System::SByte::Parse ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ Parse() [4/9]

static int8_t System::SByte::Parse ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent 8-bit signed integer using the provided formatting information.

Parameters
valueThe string to convert.
providerA pointer to an object that contains the string format information.
Returns
The 8-bit signed integer equal to the number represented by the specified string.

◆ Parse() [5/9]

static int8_t System::SByte::Parse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ Parse() [6/9]

static int8_t System::SByte::Parse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ Parse() [7/9]

static int8_t System::SByte::Parse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent 8-bit signed integer using the provided formatting information and number style.

Parameters
valueThe string to convert.
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number.
providerA pointer to an object that contains the string format information.
Returns
The 8-bit signed integer equal to the number represented by the specified string.

◆ Parse() [8/9]

static int8_t System::SByte::Parse ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  = nullptr 
)
static

◆ Parse() [9/9]

static int8_t System::SByte::Parse ( const String value,
std::nullptr_t   
)
inlinestatic

◆ TryParse() [1/5]

static bool System::SByte::TryParse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture,
int8_t &  result 
)
static

◆ TryParse() [2/5]

static bool System::SByte::TryParse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi,
int8_t &  result 
)
static

◆ TryParse() [3/5]

static bool System::SByte::TryParse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider,
int8_t &  result 
)
static

Converts the specified string containing the string representation of a number to the equivalent 8-bit signed integer using the provided formatting information and number style.

Parameters
valueThe string to convert.
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number.
providerA pointer to an object that contains the string format information.
resultThe reference to a 8-bit signed integer variable where the result of the conversion is put.
Returns
True if the conversion succeeded, otherwise - false.

◆ TryParse() [4/5]

static bool System::SByte::TryParse ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  ,
int8_t &  result 
)
static

◆ TryParse() [5/5]

static bool System::SByte::TryParse ( const String value,
int8_t &  result 
)
static

Converts the specified string containing the string representation of a number to the equivalent 8-bit signed integer.

Parameters
valueThe string to convert.
resultThe reference to a 8-bit signed integer variable where the result of the conversion is put.
Returns
True if the conversion succeeded, otherwise - false.

Member Data Documentation

◆ MaxValue

constexpr int8_t System::SByte::MaxValue = (std::numeric_limits<int8_t>::max)()
staticconstexpr

Largest possible value.

◆ MinValue

constexpr int8_t System::SByte::MinValue = (std::numeric_limits<int8_t>::min)()
staticconstexpr

Smallest possible value.