Flutter Engine
The Flutter Engine
|
#include <double-to-string.h>
Public Types | |
enum | Flags { NO_FLAGS = 0 , EMIT_POSITIVE_EXPONENT_SIGN = 1 , EMIT_TRAILING_DECIMAL_POINT = 2 , EMIT_TRAILING_ZERO_AFTER_POINT = 4 , UNIQUE_ZERO = 8 , NO_TRAILING_ZERO = 16 , EMIT_TRAILING_DECIMAL_POINT_IN_EXPONENTIAL = 32 , EMIT_TRAILING_ZERO_AFTER_POINT_IN_EXPONENTIAL = 64 } |
enum | DtoaMode { SHORTEST , SHORTEST_SINGLE , FIXED , PRECISION } |
Public Member Functions | |
DoubleToStringConverter (int flags, const char *infinity_symbol, const char *nan_symbol, char exponent_character, int decimal_in_shortest_low, int decimal_in_shortest_high, int max_leading_padding_zeroes_in_precision_mode, int max_trailing_padding_zeroes_in_precision_mode, int min_exponent_width=0) | |
bool | ToShortest (double value, StringBuilder *result_builder) const |
bool | ToShortestSingle (float value, StringBuilder *result_builder) const |
bool | ToFixed (double value, int requested_digits, StringBuilder *result_builder) const |
bool | ToExponential (double value, int requested_digits, StringBuilder *result_builder) const |
bool | ToPrecision (double value, int precision, StringBuilder *result_builder) const |
Static Public Member Functions | |
static const DoubleToStringConverter & | EcmaScriptConverter () |
static void | DoubleToAscii (double v, DtoaMode mode, int requested_digits, char *buffer, int buffer_length, bool *sign, int *length, int *point) |
Static Public Attributes | |
static const int | kMaxFixedDigitsBeforePoint = 60 |
static const int | kMaxFixedDigitsAfterPoint = 100 |
static const int | kMaxExponentialDigits = 120 |
static const int | kMinPrecisionDigits = 1 |
static const int | kMaxPrecisionDigits = 120 |
static const int | kBase10MaximalLength = 17 |
static const int | kBase10MaximalLengthSingle = 9 |
static const int | kMaxCharsEcmaScriptShortest = 25 |
Definition at line 35 of file double-to-string.h.
Enumerator | |
---|---|
SHORTEST | |
SHORTEST_SINGLE | |
FIXED | |
PRECISION |
Definition at line 364 of file double-to-string.h.
Definition at line 75 of file double-to-string.h.
|
inline |
Definition at line 165 of file double-to-string.h.
|
static |
Definition at line 386 of file double-to-string.cc.
|
static |
Definition at line 42 of file double-to-string.cc.
bool double_conversion::DoubleToStringConverter::ToExponential | ( | double | value, |
int | requested_digits, | ||
StringBuilder * | result_builder | ||
) | const |
Definition at line 248 of file double-to-string.cc.
bool double_conversion::DoubleToStringConverter::ToFixed | ( | double | value, |
int | requested_digits, | ||
StringBuilder * | result_builder | ||
) | const |
Definition at line 212 of file double-to-string.cc.
bool double_conversion::DoubleToStringConverter::ToPrecision | ( | double | value, |
int | precision, | ||
StringBuilder * | result_builder | ||
) | const |
Definition at line 303 of file double-to-string.cc.
|
inline |
Definition at line 240 of file double-to-string.h.
|
inline |
Definition at line 245 of file double-to-string.h.
|
static |
Definition at line 59 of file double-to-string.h.
|
static |
Definition at line 65 of file double-to-string.h.
|
static |
Definition at line 73 of file double-to-string.h.
|
static |
Definition at line 45 of file double-to-string.h.
|
static |
Definition at line 41 of file double-to-string.h.
|
static |
Definition at line 40 of file double-to-string.h.
|
static |
Definition at line 51 of file double-to-string.h.
|
static |
Definition at line 50 of file double-to-string.h.