Home
last modified time | relevance | path

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

12

/external/protobuf/src/google/protobuf/io/
Dtokenizer_unittest.cc757 TEST_F(TokenizerTest, ParseFloat) { in TEST_F() argument
758 EXPECT_DOUBLE_EQ(1 , Tokenizer::ParseFloat("1.")); in TEST_F()
759 EXPECT_DOUBLE_EQ(1e3 , Tokenizer::ParseFloat("1e3")); in TEST_F()
760 EXPECT_DOUBLE_EQ(1e3 , Tokenizer::ParseFloat("1E3")); in TEST_F()
761 EXPECT_DOUBLE_EQ(1.5e3, Tokenizer::ParseFloat("1.5e3")); in TEST_F()
762 EXPECT_DOUBLE_EQ(.1 , Tokenizer::ParseFloat(".1")); in TEST_F()
763 EXPECT_DOUBLE_EQ(.25 , Tokenizer::ParseFloat(".25")); in TEST_F()
764 EXPECT_DOUBLE_EQ(.1e3 , Tokenizer::ParseFloat(".1e3")); in TEST_F()
765 EXPECT_DOUBLE_EQ(.25e3, Tokenizer::ParseFloat(".25e3")); in TEST_F()
766 EXPECT_DOUBLE_EQ(.1e+3, Tokenizer::ParseFloat(".1e+3")); in TEST_F()
[all …]
Dtokenizer.h202 static double ParseFloat(const string& text);
Dtokenizer.cc900 double Tokenizer::ParseFloat(const 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::__anonf4005a1a0111::ValidationTestInputParser
/external/tensorflow/tensorflow/contrib/ignite/kernels/dataset/
Dignite_binary_object_parser.h38 float ParseFloat(uint8_t** ptr) const;
Dignite_binary_object_parser.cc61 out_tensors->back().scalar<float>()() = ParseFloat(ptr); in Parse()
240 float BinaryObjectParser::ParseFloat(uint8_t** ptr) const { in ParseFloat() function in tensorflow::BinaryObjectParser
/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/syzkaller/vendor/golang.org/x/oauth2/
Dtoken.go112 if f, err := strconv.ParseFloat(s, 64); err == nil {
/external/syzkaller/vendor/google.golang.org/api/googleapi/
Dtypes.go99 v, err := strconv.ParseFloat(s, 64)
/external/syzkaller/vendor/github.com/golang/protobuf/proto/
Dlib.go805 x, err := strconv.ParseFloat(prop.Default, 32)
811 x, err := strconv.ParseFloat(prop.Default, 64)
Dtext_parser.go804 if f, err := strconv.ParseFloat(v, fv.Type().Bits()); 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/protobuf/python/google/protobuf/
Dtext_format.py970 result = ParseFloat(self.token)
1134 def ParseFloat(text): function
/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/deqp-deps/SPIRV-Tools/test/
Dparse_number_test.cpp164 TEST(ParseFloat, Sample) { in TEST() argument
186 TEST(ParseFloat, Overflow) { in TEST() argument
/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/golang-protobuf/jsonpb/
Djsonpb.go854 } else if v, err := strconv.ParseFloat(ivStr, 0); err == nil {
/external/protobuf/src/google/protobuf/compiler/
Dparser.cc237 *output = io::Tokenizer::ParseFloat(input_->current().text); in ConsumeNumber()

12