Home
last modified time | relevance | path

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

1234

/external/cronet/third_party/protobuf/src/google/protobuf/io/
Dtokenizer_unittest.cc845 TEST_F(TokenizerTest, ParseFloat) { in TEST_F() argument
846 EXPECT_DOUBLE_EQ(1, Tokenizer::ParseFloat("1.")); in TEST_F()
847 EXPECT_DOUBLE_EQ(1e3, Tokenizer::ParseFloat("1e3")); in TEST_F()
848 EXPECT_DOUBLE_EQ(1e3, Tokenizer::ParseFloat("1E3")); in TEST_F()
849 EXPECT_DOUBLE_EQ(1.5e3, Tokenizer::ParseFloat("1.5e3")); in TEST_F()
850 EXPECT_DOUBLE_EQ(.1, Tokenizer::ParseFloat(".1")); in TEST_F()
851 EXPECT_DOUBLE_EQ(.25, Tokenizer::ParseFloat(".25")); in TEST_F()
852 EXPECT_DOUBLE_EQ(.1e3, Tokenizer::ParseFloat(".1e3")); in TEST_F()
853 EXPECT_DOUBLE_EQ(.25e3, Tokenizer::ParseFloat(".25e3")); in TEST_F()
854 EXPECT_DOUBLE_EQ(.1e+3, Tokenizer::ParseFloat(".1e+3")); in TEST_F()
[all …]
/external/protobuf/src/google/protobuf/io/
Dtokenizer_unittest.cc947 TEST_F(TokenizerTest, ParseFloat) { in TEST_F() argument
948 EXPECT_DOUBLE_EQ(1, Tokenizer::ParseFloat("1.")); in TEST_F()
949 EXPECT_DOUBLE_EQ(1e3, Tokenizer::ParseFloat("1e3")); in TEST_F()
950 EXPECT_DOUBLE_EQ(1e3, Tokenizer::ParseFloat("1E3")); in TEST_F()
951 EXPECT_DOUBLE_EQ(1.5e3, Tokenizer::ParseFloat("1.5e3")); in TEST_F()
952 EXPECT_DOUBLE_EQ(.1, Tokenizer::ParseFloat(".1")); in TEST_F()
953 EXPECT_DOUBLE_EQ(.25, Tokenizer::ParseFloat(".25")); in TEST_F()
954 EXPECT_DOUBLE_EQ(.1e3, Tokenizer::ParseFloat(".1e3")); in TEST_F()
955 EXPECT_DOUBLE_EQ(.25e3, Tokenizer::ParseFloat(".25e3")); in TEST_F()
956 EXPECT_DOUBLE_EQ(.1e+3, Tokenizer::ParseFloat(".1e+3")); in TEST_F()
[all …]
/external/dynamic_depth/internal/dynamic_depth/
Dpose.cc144 if (deserializer.ParseFloat(prefix, kPositionX, &x)) { in ParsePoseFields()
145 if (!deserializer.ParseFloat(prefix, kPositionY, &y)) { in ParsePoseFields()
148 if (!deserializer.ParseFloat(prefix, kPositionZ, &z)) { in ParsePoseFields()
155 if (deserializer.ParseFloat(prefix, kRotationX, &x)) { in ParsePoseFields()
156 if (!deserializer.ParseFloat(prefix, kRotationY, &y)) { in ParsePoseFields()
159 if (!deserializer.ParseFloat(prefix, kRotationZ, &z)) { in ParsePoseFields()
162 if (!deserializer.ParseFloat(prefix, kRotationW, &w)) { in ParsePoseFields()
Dlight_estimate.cc78 if (!deserializer->ParseFloat(DynamicDepthConst::LightEstimate(), in FromDeserializer()
87 if (deserializer->ParseFloat(DynamicDepthConst::LightEstimate(), in FromDeserializer()
89 deserializer->ParseFloat(DynamicDepthConst::LightEstimate(), in FromDeserializer()
91 deserializer->ParseFloat(DynamicDepthConst::LightEstimate(), in FromDeserializer()
Dearth_pose.cc165 if (deserializer.ParseFloat(DynamicDepthConst::EarthPose(), kRotationX, &x)) { in ParseEarthPoseFields()
166 if (!deserializer.ParseFloat(DynamicDepthConst::EarthPose(), kRotationY, in ParseEarthPoseFields()
170 if (!deserializer.ParseFloat(DynamicDepthConst::EarthPose(), kRotationZ, in ParseEarthPoseFields()
174 if (!deserializer.ParseFloat(DynamicDepthConst::EarthPose(), kRotationW, in ParseEarthPoseFields()
/external/angle/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,
/external/webrtc/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,
/external/tensorflow/third_party/absl/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,
/external/rust/crates/grpcio-sys/grpc/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,
/external/libtextclassifier/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,
/external/openscreen/third_party/abseil/src/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,
/external/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,
/external/cronet/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,
/external/python/setuptools/setuptools/_vendor/tomli/
D_parser.py20 from ._types import Key, ParseFloat, Pos
57 def load(__fp: BinaryIO, *, parse_float: ParseFloat = float) -> dict[str, Any]: argument
69 def loads(__s: str, *, parse_float: ParseFloat = float) -> dict[str, Any]: # noqa: C901 argument
324 src: str, pos: Pos, out: Output, header: Key, parse_float: ParseFloat argument
358 src: str, pos: Pos, parse_float: ParseFloat argument
412 def parse_array(src: str, pos: Pos, parse_float: ParseFloat) -> tuple[Pos, list]: argument
436 def parse_inline_table(src: str, pos: Pos, parse_float: ParseFloat) -> tuple[Pos, dict]: argument
585 src: str, pos: Pos, parse_float: ParseFloat argument
673 def make_safe_parse_float(parse_float: ParseFloat) -> ParseFloat: argument
D_re.py12 from ._types import ParseFloat
104 def match_to_number(match: re.Match, parse_float: ParseFloat) -> Any: argument

1234