Home
last modified time | relevance | path

Searched refs:StringToNumber (Results 1 – 10 of 10) sorted by relevance

/third_party/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc118 if (type_ == TYPE_STRING) return StringToNumber<int32>(safe_strto32); in ToInt32()
131 return StringToNumber<uint32>(safe_strtou32); in ToUint32()
143 if (type_ == TYPE_STRING) return StringToNumber<int64>(safe_strto64); in ToInt64()
156 return StringToNumber<uint64>(safe_strtou64); in ToUint64()
175 StatusOr<double> value = StringToNumber<double>(safe_strtod); in ToDouble()
197 return StringToNumber<float>(SafeStrToFloat); in ToFloat()
207 return StringToNumber<bool>(safe_strtob); in ToBool()
356 StatusOr<To> DataPiece::StringToNumber(bool (*func)(StringPiece, in StringToNumber() function in google::protobuf::util::converter::DataPiece
Ddatapiece.h183 util::StatusOr<To> StringToNumber(bool (*func)(StringPiece,
/third_party/flatbuffers/include/flatbuffers/
Dutil.h337 template<typename T> inline bool StringToNumber(const char *s, T *val) { in StringToNumber() function
364 template<> inline bool StringToNumber<int64_t>(const char *str, int64_t *val) {
369 inline bool StringToNumber<uint64_t>(const char *str, uint64_t *val) {
390 template<> inline bool StringToNumber(const char *s, float *val) { in StringToNumber() function
394 template<> inline bool StringToNumber(const char *s, double *val) { in StringToNumber() function
Dflexbuffers.h497 flatbuffers::StringToNumber(AsString().c_str(), &d); in AsDouble()
/third_party/flatbuffers/src/
Didl_parser.cpp194 return StringToNumber(s, val); in atot_scalar()
200 if (false == StringToNumber(s, val)) return false; in atot_scalar()
695 bool check = StringToNumber(attribute_.c_str(), &fixed_length); in ParseType()
1416 if (!a || !b) { StringToNumber(key.value.constant.c_str(), &def); } \ in CompareSerializedScalars()
1499 if (StringToNumber(align_constant.c_str(), &align_value) && in ParseAlignAttribute()
2137 done = StringToNumber(constant.c_str(), &u64); in FindByValue()
2140 done = StringToNumber(constant.c_str(), &i64); in FindByValue()
2227 fit = StringToNumber(value.c_str(), &u64); in AssignEnumeratorValue()
2231 fit = StringToNumber(value.c_str(), &i64); in AssignEnumeratorValue()
3033 if (!StringToNumber(attribute_.c_str(), &d)) in ParseFlexBufferNumericConstant()
[all …]
Dreflection.cpp61 StringToNumber(s->c_str(), &d); in GetAnyValueF()
160 StringToNumber(val, &d); in SetAnyValueS()
Dcode_generators.cpp205 auto done = StringToNumber(constant.c_str(), &v); in GenFloatConstantImpl()
Didl_gen_text.cpp241 auto check = StringToNumber(fd.value.constant.c_str(), &val); in GetFieldDefault()
/third_party/flatbuffers/tests/
Dtest.cpp2206 TEST_EQ(flatbuffers::StringToNumber("1q", &x), false); in NumericUtilsTestInteger()
2208 TEST_EQ(flatbuffers::StringToNumber(upper, &x), false); in NumericUtilsTestInteger()
2210 TEST_EQ(flatbuffers::StringToNumber(lower, &x), false); in NumericUtilsTestInteger()
2220 TEST_EQ(flatbuffers::StringToNumber("", &f), false); in NumericUtilsTestFloat()
2221 TEST_EQ(flatbuffers::StringToNumber("1q", &f), false); in NumericUtilsTestFloat()
2223 TEST_EQ(flatbuffers::StringToNumber(upper, &f), true); in NumericUtilsTestFloat()
2225 TEST_EQ(flatbuffers::StringToNumber(lower, &f), true); in NumericUtilsTestFloat()
/third_party/chromium/patch/
D0003-3.2-Beta3-1115.patch74293 if (!StringToNumber(optarg,