|
|
|
@ -1003,11 +1003,12 @@ bool Tokenizer::ParseInteger(const std::string& text, uint64_t max_value, |
|
|
|
|
|
|
|
|
|
double Tokenizer::ParseFloat(const std::string& text) { |
|
|
|
|
double result; |
|
|
|
|
GOOGLE_LOG_IF(DFATAL, |
|
|
|
|
!TryParseFloat(text, &result)) |
|
|
|
|
<< " Tokenizer::ParseFloat() passed text that could not have been" |
|
|
|
|
" tokenized as a float: " |
|
|
|
|
<< absl::CEscape(text); |
|
|
|
|
if (!TryParseFloat(text, &result)) { |
|
|
|
|
LOG(DFATAL) |
|
|
|
|
<< " Tokenizer::ParseFloat() passed text that could not have been" |
|
|
|
|
" tokenized as a float: " |
|
|
|
|
<< absl::CEscape(text); |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|