Flutter Engine
The Flutter Engine
|
#include <string-to-double.h>
Public Types | |
enum | Flags { NO_FLAGS = 0 , ALLOW_HEX = 1 , ALLOW_OCTALS = 2 , ALLOW_TRAILING_JUNK = 4 , ALLOW_LEADING_SPACES = 8 , ALLOW_TRAILING_SPACES = 16 , ALLOW_SPACES_AFTER_SIGN = 32 , ALLOW_CASE_INSENSITIVITY = 64 , ALLOW_CASE_INSENSIBILITY = 64 , ALLOW_HEX_FLOATS = 128 } |
Public Member Functions | |
StringToDoubleConverter (int flags, double empty_string_value, double junk_string_value, const char *infinity_symbol, const char *nan_symbol, uc16 separator=kNoSeparator) | |
double | StringToDouble (const char *buffer, int length, int *processed_characters_count) const |
double | StringToDouble (const uc16 *buffer, int length, int *processed_characters_count) const |
float | StringToFloat (const char *buffer, int length, int *processed_characters_count) const |
float | StringToFloat (const uc16 *buffer, int length, int *processed_characters_count) const |
template<typename T > | |
T | StringTo (const char *buffer, int length, int *processed_characters_count) const |
template<typename T > | |
T | StringTo (const uc16 *buffer, int length, int *processed_characters_count) const |
template<> | |
double | StringTo (const char *buffer, int length, int *processed_characters_count) const |
template<> | |
float | StringTo (const char *buffer, int length, int *processed_characters_count) const |
template<> | |
double | StringTo (const uc16 *buffer, int length, int *processed_characters_count) const |
template<> | |
float | StringTo (const uc16 *buffer, int length, int *processed_characters_count) const |
Static Public Attributes | |
static const uc16 | kNoSeparator = '\0' |
Definition at line 35 of file string-to-double.h.
Enumerator | |
---|---|
NO_FLAGS | |
ALLOW_HEX | |
ALLOW_OCTALS | |
ALLOW_TRAILING_JUNK | |
ALLOW_LEADING_SPACES | |
ALLOW_TRAILING_SPACES | |
ALLOW_SPACES_AFTER_SIGN | |
ALLOW_CASE_INSENSITIVITY | |
ALLOW_CASE_INSENSIBILITY | |
ALLOW_HEX_FLOATS |
Definition at line 39 of file string-to-double.h.
|
inline |
Definition at line 167 of file string-to-double.h.
double double_conversion::StringToDoubleConverter::StringTo | ( | const char * | buffer, |
int | length, | ||
int * | processed_characters_count | ||
) | const |
Definition at line 784 of file string-to-double.cc.
float double_conversion::StringToDoubleConverter::StringTo | ( | const char * | buffer, |
int | length, | ||
int * | processed_characters_count | ||
) | const |
Definition at line 793 of file string-to-double.cc.
T double_conversion::StringToDoubleConverter::StringTo | ( | const char * | buffer, |
int | length, | ||
int * | processed_characters_count | ||
) | const |
double double_conversion::StringToDoubleConverter::StringTo | ( | const uc16 * | buffer, |
int | length, | ||
int * | processed_characters_count | ||
) | const |
Definition at line 802 of file string-to-double.cc.
float double_conversion::StringToDoubleConverter::StringTo | ( | const uc16 * | buffer, |
int | length, | ||
int * | processed_characters_count | ||
) | const |
Definition at line 811 of file string-to-double.cc.
T double_conversion::StringToDoubleConverter::StringTo | ( | const uc16 * | buffer, |
int | length, | ||
int * | processed_characters_count | ||
) | const |
double double_conversion::StringToDoubleConverter::StringToDouble | ( | const char * | buffer, |
int | length, | ||
int * | processed_characters_count | ||
) | const |
Definition at line 749 of file string-to-double.cc.
double double_conversion::StringToDoubleConverter::StringToDouble | ( | const uc16 * | buffer, |
int | length, | ||
int * | processed_characters_count | ||
) | const |
Definition at line 757 of file string-to-double.cc.
float double_conversion::StringToDoubleConverter::StringToFloat | ( | const char * | buffer, |
int | length, | ||
int * | processed_characters_count | ||
) | const |
Definition at line 765 of file string-to-double.cc.
float double_conversion::StringToDoubleConverter::StringToFloat | ( | const uc16 * | buffer, |
int | length, | ||
int * | processed_characters_count | ||
) | const |
Definition at line 774 of file string-to-double.cc.
|
static |
Definition at line 52 of file string-to-double.h.