double_conversion::DoubleToStringConverter Class Reference

#include <double-conversion.h>

List of all members.

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
}
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)
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 = 60
static const int kMaxExponentialDigits = 120
static const int kMinPrecisionDigits = 1
static const int kMaxPrecisionDigits = 120
static const int kBase10MaximalLength = 17


Detailed Description

Definition at line 35 of file double-conversion.h.


Member Enumeration Documentation

Enumerator:
SHORTEST 
SHORTEST_SINGLE 
FIXED 
PRECISION 

Definition at line 274 of file double-conversion.h.

Enumerator:
NO_FLAGS 
EMIT_POSITIVE_EXPONENT_SIGN 
EMIT_TRAILING_DECIMAL_POINT 
EMIT_TRAILING_ZERO_AFTER_POINT 
UNIQUE_ZERO 

Definition at line 53 of file double-conversion.h.


Constructor & Destructor Documentation

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 
) [inline]


Member Function Documentation

void double_conversion::DoubleToStringConverter::DoubleToAscii ( double  v,
DtoaMode  mode,
int  requested_digits,
char *  buffer,
int  buffer_length,
bool *  sign,
int *  length,
int *  point 
) [static]

const DoubleToStringConverter & double_conversion::DoubleToStringConverter::EcmaScriptConverter (  )  [static]

bool double_conversion::DoubleToStringConverter::ToExponential ( double  value,
int  requested_digits,
StringBuilder result_builder 
) const

bool double_conversion::DoubleToStringConverter::ToFixed ( double  value,
int  requested_digits,
StringBuilder result_builder 
) const

bool double_conversion::DoubleToStringConverter::ToPrecision ( double  value,
int  precision,
StringBuilder result_builder 
) const

bool double_conversion::DoubleToStringConverter::ToShortest ( double  value,
StringBuilder result_builder 
) const [inline]

Definition at line 157 of file double-conversion.h.

References SHORTEST.

bool double_conversion::DoubleToStringConverter::ToShortestSingle ( float  value,
StringBuilder result_builder 
) const [inline]

Definition at line 162 of file double-conversion.h.

References SHORTEST_SINGLE.


Member Data Documentation

Definition at line 295 of file double-conversion.h.

Referenced by ToExponential().

Definition at line 45 of file double-conversion.h.

Referenced by ToExponential().

Definition at line 41 of file double-conversion.h.

Referenced by ToFixed().

Definition at line 40 of file double-conversion.h.

Referenced by ToFixed().

Definition at line 51 of file double-conversion.h.

Referenced by ToPrecision().

Definition at line 50 of file double-conversion.h.


The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:32:38 2017 for Moses by  doxygen 1.5.9