Home
last modified time | relevance | path

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

/external/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.h204 static double ParseFloat(const std::string& text);
Dtokenizer.cc901 double Tokenizer::ParseFloat(const std::string& text) { in ParseFloat() function in google::protobuf::io::Tokenizer
/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()
Ddepth_map.cc161 !deserializer.ParseFloat(prefix, kNear, &near) || in ParseFields()
162 !deserializer.ParseFloat(prefix, kFar, &far) || in ParseFields()
/external/libchrome/mojo/public/cpp/bindings/tests/
Dvalidation_test_input_parser.cc66 bool ParseFloat(const DataType& type, const std::string& value_string);
136 DATA_TYPE("[f]", 4, &ValidationTestInputParser::ParseFloat),
281 bool ValidationTestInputParser::ParseFloat(const DataType& type, in ParseFloat() function in mojo::test::__anon367ee79c0111::ValidationTestInputParser
/external/dynamic_depth/internal/xmpmeta/xml/
Ddeserializer.h47 virtual bool ParseFloat(const string& prefix, const string& name,
Ddeserializer_impl.h62 bool ParseFloat(const string& prefix, const string& name,
Ddeserializer_impl.cc247 bool DeserializerImpl::ParseFloat(const string& prefix, const string& name, in ParseFloat() function in dynamic_depth::xmpmeta::xml::DeserializerImpl
/external/swiftshader/third_party/marl/tools/bench/
Dbench.go102 ns, err := strconv.ParseFloat(matches[2], 64)
/external/toolchain-utils/compiler_wrapper/
Drusage_flag_test.go104 if _, err := strconv.ParseFloat(logParts[i], 64); err != nil {
/external/golang-protobuf/proto/
Dlib.go843 x, err := strconv.ParseFloat(prop.Default, 32)
849 x, err := strconv.ParseFloat(prop.Default, 64)
Dtext_parser.go804 if f, err := strconv.ParseFloat(v, fv.Type().Bits()); err == nil {
/external/golang-protobuf/protoc-gen-go/generator/
Dgenerator.go1508 if f, err := strconv.ParseFloat(defaultValue, 32); err == nil {
1514 if f, err := strconv.ParseFloat(defaultValue, 64); err == nil {
2021 if f, err := strconv.ParseFloat(def, 32); err == nil {
2025 if f, err := strconv.ParseFloat(def, 64); err == nil {
/external/protobuf/python/google/protobuf/
Dtext_format.py1387 result = ParseFloat(self.token)
1686 def ParseFloat(text): function
/external/swiftshader/third_party/SPIRV-Tools/test/
Dparse_number_test.cpp164 TEST(ParseFloat, Sample) { in TEST() argument
186 TEST(ParseFloat, Overflow) { in TEST() argument
/external/deqp-deps/SPIRV-Tools/test/
Dparse_number_test.cpp164 TEST(ParseFloat, Sample) { in TEST() argument
186 TEST(ParseFloat, Overflow) { in TEST() argument
/external/angle/third_party/spirv-tools/src/test/
Dparse_number_test.cpp164 TEST(ParseFloat, Sample) { in TEST() argument
186 TEST(ParseFloat, Overflow) { in TEST() argument
/external/golang-protobuf/jsonpb/
Djsonpb.go867 } else if v, err := strconv.ParseFloat(ivStr, 0); err == nil {
/external/protobuf/src/google/protobuf/
Dtext_format.cc1045 *value = io::Tokenizer::ParseFloat(text); in ConsumeUnsignedDecimalAsDouble()
1071 *value = io::Tokenizer::ParseFloat(tokenizer_.current().text); in ConsumeDouble()
/external/protobuf/src/google/protobuf/compiler/
Dparser.cc293 *output = io::Tokenizer::ParseFloat(input_->current().text); in ConsumeNumber()