Home
last modified time | relevance | path

Searched refs:ParseFloat (Results 1 – 25 of 30) sorted by relevance

12

/third_party/protobuf/src/google/protobuf/io/
Dtokenizer_unittest.cc734 TEST_F(TokenizerTest, ParseFloat) { in TEST_F() argument
735 EXPECT_DOUBLE_EQ(1, Tokenizer::ParseFloat("1.")); in TEST_F()
736 EXPECT_DOUBLE_EQ(1e3, Tokenizer::ParseFloat("1e3")); in TEST_F()
737 EXPECT_DOUBLE_EQ(1e3, Tokenizer::ParseFloat("1E3")); in TEST_F()
738 EXPECT_DOUBLE_EQ(1.5e3, Tokenizer::ParseFloat("1.5e3")); in TEST_F()
739 EXPECT_DOUBLE_EQ(.1, Tokenizer::ParseFloat(".1")); in TEST_F()
740 EXPECT_DOUBLE_EQ(.25, Tokenizer::ParseFloat(".25")); in TEST_F()
741 EXPECT_DOUBLE_EQ(.1e3, Tokenizer::ParseFloat(".1e3")); in TEST_F()
742 EXPECT_DOUBLE_EQ(.25e3, Tokenizer::ParseFloat(".25e3")); in TEST_F()
743 EXPECT_DOUBLE_EQ(.1e+3, Tokenizer::ParseFloat(".1e+3")); in TEST_F()
[all …]
Dtokenizer.h205 static double ParseFloat(const std::string& text);
Dtokenizer.cc902 double Tokenizer::ParseFloat(const std::string& text) { in ParseFloat() function in google::protobuf::io::Tokenizer
/third_party/abseil-cpp/absl/strings/internal/
Dcharconv_parse_test.cc28 using absl::strings_internal::ParseFloat;
70 ParseFloat<base>(s.data(), s.data() + s.size(), format_flags); in ExpectParsedFloat()
123 ParseFloat<base>(s.data(), s.data() + s.size(), format_flags); in ExpectFailedParse()
127 TEST(ParseFloat, SimpleValue) { in TEST() argument
205 TEST(ParseFloat, LargeDecimalMantissa) { in TEST() argument
269 TEST(ParseFloat, LargeHexadecimalMantissa) { in TEST() argument
300 TEST(ParseFloat, ScientificVsFixed) { in TEST() argument
316 TEST(ParseFloat, Infinity) { in TEST() argument
329 TEST(ParseFloat, NaN) { in TEST() argument
Dcharconv_parse.h88 ParsedFloat ParseFloat(const char* begin, const char* end,
91 extern template ParsedFloat ParseFloat<10>(const char* begin, const char* end,
93 extern template ParsedFloat ParseFloat<16>(const char* begin, const char* end,
Dcharconv_parse.cc355 strings_internal::ParsedFloat ParseFloat(const char* begin, const char* end, in ParseFloat() function
497 template ParsedFloat ParseFloat<10>(const char* begin, const char* end,
499 template ParsedFloat ParseFloat<16>(const char* begin, const char* end,
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dcharconv_parse_test.cc28 using absl::strings_internal::ParseFloat;
70 ParseFloat<base>(s.data(), s.data() + s.size(), format_flags); in ExpectParsedFloat()
123 ParseFloat<base>(s.data(), s.data() + s.size(), format_flags); in ExpectFailedParse()
127 TEST(ParseFloat, SimpleValue) { in TEST() argument
205 TEST(ParseFloat, LargeDecimalMantissa) { in TEST() argument
269 TEST(ParseFloat, LargeHexadecimalMantissa) { in TEST() argument
300 TEST(ParseFloat, ScientificVsFixed) { in TEST() argument
316 TEST(ParseFloat, Infinity) { in TEST() argument
329 TEST(ParseFloat, NaN) { in TEST() argument
Dcharconv_parse.h88 ParsedFloat ParseFloat(const char* begin, const char* end,
91 extern template ParsedFloat ParseFloat<10>(const char* begin, const char* end,
93 extern template ParsedFloat ParseFloat<16>(const char* begin, const char* end,
Dcharconv_parse.cc355 strings_internal::ParsedFloat ParseFloat(const char* begin, const char* end, in ParseFloat() function
497 template ParsedFloat ParseFloat<10>(const char* begin, const char* end,
499 template ParsedFloat ParseFloat<16>(const char* begin, const char* end,
/third_party/abseil-cpp/absl/strings/
Dcharconv.cc616 strings_internal::ParseFloat<16>(hex_first, last, fmt_flags); in FromCharsImpl()
647 strings_internal::ParseFloat<16>(first, last, fmt_flags); in FromCharsImpl()
662 strings_internal::ParseFloat<10>(first, last, fmt_flags); in FromCharsImpl()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dcharconv.cc616 strings_internal::ParseFloat<16>(hex_first, last, fmt_flags); in FromCharsImpl()
647 strings_internal::ParseFloat<16>(first, last, fmt_flags); in FromCharsImpl()
662 strings_internal::ParseFloat<10>(first, last, fmt_flags); in FromCharsImpl()
/third_party/protobuf/csharp/src/Google.Protobuf/
DParsingPrimitivesWrappers.cs71 return ParsingPrimitives.ParseFloat(ref buffer, ref state); in ReadFloatWrapperLittleEndian()
93 result = ParsingPrimitives.ParseFloat(ref buffer, ref state); in ReadFloatWrapperSlow()
DParseContext.cs160 return ParsingPrimitives.ParseFloat(ref buffer, ref state); in ReadFloat()
DCodedInputStream.cs367 return ParsingPrimitives.ParseFloat(ref span, ref state); in ReadFloat()
DParsingPrimitives.cs397 public static float ParseFloat(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state) in ParseFloat() method in Google.Protobuf.ParsingPrimitives
/third_party/skia/third_party/externals/swiftshader/third_party/marl/tools/bench/
Dbench.go101 ns, err := strconv.ParseFloat(matches[2], 64)
/third_party/skia/third_party/externals/spirv-tools/test/
Dparse_number_test.cpp164 TEST(ParseFloat, Sample) { in TEST() argument
186 TEST(ParseFloat, Overflow) { in TEST() argument
/third_party/flutter/skia/third_party/externals/spirv-tools/test/
Dparse_number_test.cpp166 TEST(ParseFloat, Sample) { in TEST() argument
188 TEST(ParseFloat, Overflow) { in TEST() argument
/third_party/spirv-tools/test/
Dparse_number_test.cpp164 TEST(ParseFloat, Sample) { in TEST() argument
186 TEST(ParseFloat, Overflow) { in TEST() argument
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/
Dparse_number_test.cpp164 TEST(ParseFloat, Sample) { in TEST() argument
186 TEST(ParseFloat, Overflow) { in TEST() argument
/third_party/protobuf/python/google/protobuf/
Dtext_format.py1432 result = ParseFloat(self.token)
1731 def ParseFloat(text): function
/third_party/protobuf/src/google/protobuf/
Dtext_format.cc1044 *value = io::Tokenizer::ParseFloat(text); in ConsumeUnsignedDecimalAsDouble()
1070 *value = io::Tokenizer::ParseFloat(tokenizer_.current().text); in ConsumeDouble()
/third_party/protobuf/src/google/protobuf/compiler/
Dparser.cc294 *output = io::Tokenizer::ParseFloat(input_->current().text); in ConsumeNumber()
/third_party/skia/third_party/externals/abseil-cpp/
Dsymbols_arm64_rel.def75 ??$ParseFloat@$09@strings_internal@absl@@YA?AUParsedFloat@01@PEBD0W4chars_format@1@@Z
76 ??$ParseFloat@$0BA@@strings_internal@absl@@YA?AUParsedFloat@01@PEBD0W4chars_format@1@@Z
Dsymbols_x64_rel.def75 ??$ParseFloat@$09@strings_internal@absl@@YA?AUParsedFloat@01@PEBD0W4chars_format@1@@Z
76 ??$ParseFloat@$0BA@@strings_internal@absl@@YA?AUParsedFloat@01@PEBD0W4chars_format@1@@Z

12