#include <wpi/double-conversion/double-to-string.h>
|
| 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
} |
|
| | 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 |
◆ DtoaMode
| Enumerator |
|---|
| SHORTEST | |
| SHORTEST_SINGLE | |
| FIXED | |
| PRECISION | |
◆ Flags
| Enumerator |
|---|
| NO_FLAGS | |
| EMIT_POSITIVE_EXPONENT_SIGN | |
| EMIT_TRAILING_DECIMAL_POINT | |
| EMIT_TRAILING_ZERO_AFTER_POINT | |
| UNIQUE_ZERO | |
| NO_TRAILING_ZERO | |
| EMIT_TRAILING_DECIMAL_POINT_IN_EXPONENTIAL | |
| EMIT_TRAILING_ZERO_AFTER_POINT_IN_EXPONENTIAL | |
◆ DoubleToStringConverter()
| wpi::double_conversion::DoubleToStringConverter::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 ) |
|
inline |
◆ DoubleToAscii()
| void wpi::double_conversion::DoubleToStringConverter::DoubleToAscii |
( |
double | v, |
|
|
DtoaMode | mode, |
|
|
int | requested_digits, |
|
|
char * | buffer, |
|
|
int | buffer_length, |
|
|
bool * | sign, |
|
|
int * | length, |
|
|
int * | point ) |
|
static |
◆ EcmaScriptConverter()
◆ ToExponential()
| bool wpi::double_conversion::DoubleToStringConverter::ToExponential |
( |
double | value, |
|
|
int | requested_digits, |
|
|
StringBuilder * | result_builder ) const |
◆ ToFixed()
| bool wpi::double_conversion::DoubleToStringConverter::ToFixed |
( |
double | value, |
|
|
int | requested_digits, |
|
|
StringBuilder * | result_builder ) const |
◆ ToPrecision()
| bool wpi::double_conversion::DoubleToStringConverter::ToPrecision |
( |
double | value, |
|
|
int | precision, |
|
|
StringBuilder * | result_builder ) const |
◆ ToShortest()
| bool wpi::double_conversion::DoubleToStringConverter::ToShortest |
( |
double | value, |
|
|
StringBuilder * | result_builder ) const |
|
inline |
◆ ToShortestSingle()
| bool wpi::double_conversion::DoubleToStringConverter::ToShortestSingle |
( |
float | value, |
|
|
StringBuilder * | result_builder ) const |
|
inline |
◆ kBase10MaximalLength
| const int wpi::double_conversion::DoubleToStringConverter::kBase10MaximalLength = 17 |
|
static |
◆ kBase10MaximalLengthSingle
| const int wpi::double_conversion::DoubleToStringConverter::kBase10MaximalLengthSingle = 9 |
|
static |
◆ kMaxCharsEcmaScriptShortest
| const int wpi::double_conversion::DoubleToStringConverter::kMaxCharsEcmaScriptShortest = 25 |
|
static |
◆ kMaxExponentialDigits
| const int wpi::double_conversion::DoubleToStringConverter::kMaxExponentialDigits = 120 |
|
static |
◆ kMaxFixedDigitsAfterPoint
| const int wpi::double_conversion::DoubleToStringConverter::kMaxFixedDigitsAfterPoint = 100 |
|
static |
◆ kMaxFixedDigitsBeforePoint
| const int wpi::double_conversion::DoubleToStringConverter::kMaxFixedDigitsBeforePoint = 60 |
|
static |
◆ kMaxPrecisionDigits
| const int wpi::double_conversion::DoubleToStringConverter::kMaxPrecisionDigits = 120 |
|
static |
◆ kMinPrecisionDigits
| const int wpi::double_conversion::DoubleToStringConverter::kMinPrecisionDigits = 1 |
|
static |
The documentation for this class was generated from the following file: