Chromium Code Reviews| Index: src/conversions.h |
| =================================================================== |
| --- src/conversions.h (revision 8559) |
| +++ src/conversions.h (working copy) |
| @@ -44,9 +44,12 @@ |
| // we don't need to preserve all the digits. |
| const int kMaxSignificantDigits = 772; |
| -static const double JUNK_STRING_VALUE = |
| - std::numeric_limits<double>::quiet_NaN(); |
| +static double JunkStringValue() { |
| + return std::numeric_limits<double>::quiet_NaN(); |
| +} |
|
Lasse Reichstein
2011/07/07 13:33:01
You can move this function to conversions-inl.h.
I
Sven Panne
2011/07/07 13:55:46
Done.
|
| + |
| + |
| static bool isDigit(int x, int radix) { |
| return (x >= '0' && x <= '9' && x < '0' + radix) |
| || (radix > 10 && x >= 'a' && x < 'a' + radix - 10) |