Searched refs:ParseFloat (Results 1 – 7 of 7) sorted by relevance
/external/protobuf/src/google/protobuf/io/ |
D | tokenizer_unittest.cc | 762 TEST_F(TokenizerTest, ParseFloat) { in TEST_F() argument 763 EXPECT_DOUBLE_EQ(1 , Tokenizer::ParseFloat("1.")); in TEST_F() 764 EXPECT_DOUBLE_EQ(1e3 , Tokenizer::ParseFloat("1e3")); in TEST_F() 765 EXPECT_DOUBLE_EQ(1e3 , Tokenizer::ParseFloat("1E3")); in TEST_F() 766 EXPECT_DOUBLE_EQ(1.5e3, Tokenizer::ParseFloat("1.5e3")); in TEST_F() 767 EXPECT_DOUBLE_EQ(.1 , Tokenizer::ParseFloat(".1")); in TEST_F() 768 EXPECT_DOUBLE_EQ(.25 , Tokenizer::ParseFloat(".25")); in TEST_F() 769 EXPECT_DOUBLE_EQ(.1e3 , Tokenizer::ParseFloat(".1e3")); in TEST_F() 770 EXPECT_DOUBLE_EQ(.25e3, Tokenizer::ParseFloat(".25e3")); in TEST_F() 771 EXPECT_DOUBLE_EQ(.1e+3, Tokenizer::ParseFloat(".1e+3")); in TEST_F() [all …]
|
D | tokenizer.h | 194 static double ParseFloat(const string& text);
|
D | tokenizer.cc | 888 double Tokenizer::ParseFloat(const string& text) { in ParseFloat() function in google::protobuf::io::Tokenizer
|
/external/protobuf/python/google/protobuf/ |
D | text_format.py | 635 result = ParseFloat(self.token) 788 def ParseFloat(text): function
|
/external/nanopb-c/generator/google/protobuf/ |
D | text_format.py | 469 result = ParseFloat(self.token) 654 def ParseFloat(text): function
|
/external/protobuf/src/google/protobuf/compiler/ |
D | parser.cc | 210 *output = io::Tokenizer::ParseFloat(input_->current().text); in ConsumeNumber()
|
/external/protobuf/src/google/protobuf/ |
D | text_format.cc | 919 *value = io::Tokenizer::ParseFloat(tokenizer_.current().text); in ConsumeDouble()
|