28 #ifndef V8_CONVERSIONS_H_
29 #define V8_CONVERSIONS_H_
49 return (x >=
'0' && x <=
'9' && x <
'0' + radix)
50 || (radix > 10 && x >=
'a' && x <
'a' + radix - 10)
51 || (radix > 10 && x >=
'A' && x <
'A' + radix - 10);
56 return negative ? -0.0 : 0.0;
67 return static_cast<int>(x);
70 inline unsigned int FastD2UI(
double x);
77 return static_cast<double>(x);
85 return static_cast<double>(x);
115 Vector<const char> str,
117 double empty_string_val = 0);
119 Vector<const uc16> str,
121 double empty_string_val = 0);
126 double empty_string_val = 0);
148 #endif // V8_CONVERSIONS_H_
double DoubleToInteger(double x)
bool isDigit(int x, int radix)
double StringToDouble(UnicodeCache *unicode_cache, const char *str, int flags, double empty_string_val)
double SignedZero(bool negative)
const int kDoubleToCStringMinBufferSize
const char * IntToCString(int n, Vector< char > buffer)
const char * DoubleToCString(double v, Vector< char > buffer)
unsigned int FastD2UI(double x)
double FastUI2D(unsigned x)
const int kMaxSignificantDigits
uint32_t DoubleToUint32(double x)
char * DoubleToPrecisionCString(double value, int p)
int32_t DoubleToInt32(double x)
char * DoubleToExponentialCString(double value, int f)
char * DoubleToRadixCString(double value, int radix)
char * DoubleToFixedCString(double value, int f)