Home
last modified time | relevance | path

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

12

/external/webrtc/rtc_base/
Dstring_to_number_unittest.cc49 EXPECT_EQ(min_value, StringToNumber<T>(min_string)); in TYPED_TEST_P()
50 EXPECT_EQ(min_value, StringToNumber<T>(min_string.c_str())); in TYPED_TEST_P()
51 EXPECT_EQ(max_value, StringToNumber<T>(max_string)); in TYPED_TEST_P()
52 EXPECT_EQ(max_value, StringToNumber<T>(max_string.c_str())); in TYPED_TEST_P()
53 EXPECT_EQ(zero_value, StringToNumber<T>("0")); in TYPED_TEST_P()
54 EXPECT_EQ(zero_value, StringToNumber<T>("-0")); in TYPED_TEST_P()
55 EXPECT_EQ(zero_value, StringToNumber<T>(std::string("-0000000000000"))); in TYPED_TEST_P()
72 EXPECT_EQ(absl::nullopt, StringToNumber<T>(too_low_string)); in TYPED_TEST_P()
73 EXPECT_EQ(absl::nullopt, StringToNumber<T>(too_low_string.c_str())); in TYPED_TEST_P()
74 EXPECT_EQ(absl::nullopt, StringToNumber<T>(too_large_string)); in TYPED_TEST_P()
[all …]
Dstring_to_number.h60 StringToNumber(const char* str, int base = 10) {
81 StringToNumber(const char* str, int base = 10) {
98 StringToNumber(const char* str, int base = 10) {
109 auto StringToNumber(const std::string& str, int base = 10)
110 -> decltype(StringToNumber<T>(str.c_str(), base)) {
111 return StringToNumber<T>(str.c_str(), base);
Dunique_id_generator.cc56 absl::optional<uint32_t> int_value = StringToNumber<uint32_t>(value); in AddKnownId()
/external/webrtc/test/fuzzers/
Dstring_to_number_fuzzer.cc22 rtc::StringToNumber<int8_t>(number_to_parse); in FuzzOneInput()
23 rtc::StringToNumber<int16_t>(number_to_parse); in FuzzOneInput()
24 rtc::StringToNumber<int32_t>(number_to_parse); in FuzzOneInput()
25 rtc::StringToNumber<int64_t>(number_to_parse); in FuzzOneInput()
26 rtc::StringToNumber<uint8_t>(number_to_parse); in FuzzOneInput()
27 rtc::StringToNumber<uint16_t>(number_to_parse); in FuzzOneInput()
28 rtc::StringToNumber<uint32_t>(number_to_parse); in FuzzOneInput()
29 rtc::StringToNumber<uint64_t>(number_to_parse); in FuzzOneInput()
30 rtc::StringToNumber<float>(number_to_parse); in FuzzOneInput()
31 rtc::StringToNumber<double>(number_to_parse); in FuzzOneInput()
[all …]
/external/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc120 if (type_ == TYPE_STRING) return StringToNumber<int32>(safe_strto32); in ToInt32()
133 return StringToNumber<uint32>(safe_strtou32); in ToUint32()
145 if (type_ == TYPE_STRING) return StringToNumber<int64>(safe_strto64); in ToInt64()
158 return StringToNumber<uint64>(safe_strtou64); in ToUint64()
177 StatusOr<double> value = StringToNumber<double>(safe_strtod); in ToDouble()
199 return StringToNumber<float>(SafeStrToFloat); in ToFloat()
209 return StringToNumber<bool>(safe_strtob); in ToBool()
356 StatusOr<To> DataPiece::StringToNumber(bool (*func)(StringPiece, in StringToNumber() function in google::protobuf::util::converter::DataPiece
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/
DStringToNumber.pbtxt2 name: "StringToNumber"
26 name: "StringToNumber"
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v2/
DStringToNumber.pbtxt2 name: "StringToNumber"
26 name: "StringToNumber"
/external/webrtc/rtc_tools/
Dvideo_file_reader.cc158 width = rtc::StringToNumber<int>(suffix); in OpenY4mFile()
161 height = rtc::StringToNumber<int>(suffix); in OpenY4mFile()
177 rtc::StringToNumber<int>(fraction[0]); in OpenY4mFile()
179 rtc::StringToNumber<int>(fraction[1]); in OpenY4mFile()
Dvideo_replay.cc125 return rtc::StringToNumber<uint32_t>(ssrc_string).has_value(); in ValidateSsrc()
161 return rtc::StringToNumber<uint32_t>(absl::GetFlag(FLAGS_ssrc)).value(); in Ssrc()
165 return rtc::StringToNumber<uint32_t>(absl::GetFlag(FLAGS_ssrc_rtx)).value(); in SsrcRtx()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/
Dmark_ops_for_outside_compilation.mlir142 // CHECK: "tf.StringToNumber"
148 %2 = "tf.StringToNumber"(%arg0) {out_type = f32} : (tensor<!tf.string>) -> tensor<f32>
182 // CHECK: "tf.StringToNumber"
186 %3 = "tf.StringToNumber"(%arg1) {out_type = f32} : (tensor<!tf.string>) -> tensor<f32>
214 // CHECK-NEXT: "tf.StringToNumber"
217 %5 = "tf.StringToNumber"(%4) {out_type = f32} : (tensor<!tf.string>) -> tensor<f32>
247 // CHECK-NEXT: "tf.StringToNumber"
250 %7 = "tf.StringToNumber"(%6) {out_type = f32} : (tensor<!tf.string>) -> tensor<f32>
277 // CHECK: "tf.StringToNumber"
289 %3 = "tf.StringToNumber"(%arg1) {out_type = f32} : (tensor<!tf.string>) -> tensor<f32>
/external/tensorflow/tensorflow/core/api_def/python_api/
Dapi_def_StringToNumber.pbtxt2 graph_op_name: "StringToNumber"
/external/tensorflow/tensorflow/core/api_def/java_api/
Dapi_def_StringToNumber.pbtxt2 graph_op_name: "StringToNumber"
/external/tensorflow/tensorflow/core/kernels/fuzzing/
Dstring_to_number_fuzz.cc23 SINGLE_INPUT_OP_BUILDER(DT_STRING, StringToNumber);
/external/flatbuffers/include/flatbuffers/
Dutil.h325 template<typename T> inline bool StringToNumber(const char *s, T *val) { in StringToNumber() function
349 template<> inline bool StringToNumber<int64_t>(const char *str, int64_t *val) {
354 inline bool StringToNumber<uint64_t>(const char *str, uint64_t *val) {
375 template<> inline bool StringToNumber(const char *s, float *val) { in StringToNumber() function
379 template<> inline bool StringToNumber(const char *s, double *val) { in StringToNumber() function
/external/webrtc/media/base/
Dsdp_fmtp_utils.cc34 rtc::StringToNumber<int>(max_frame_rate_it->second); in ParsePositiveNumberFromParams()
Dvp9_profile.cc36 const absl::optional<int> i = rtc::StringToNumber<int>(str); in StringToVP9Profile()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_StringToNumber.pbtxt2 graph_op_name: "StringToNumber"
/external/webrtc/modules/audio_coding/codecs/opus/
Daudio_coder_opus_common.cc40 auto conv = rtc::StringToNumber<int>(substring_with_number); in GetFormatParameter()
Daudio_coder_opus_common.h31 return rtc::StringToNumber<T>(GetFormatParameter(format, param).value_or("")); in GetFormatParameter()
/external/webrtc/api/audio_codecs/isac/
Daudio_encoder_isac_fix.cc28 const auto ptime = rtc::StringToNumber<int>(ptime_iter->second); in SdpToConfig()
Daudio_encoder_isac_float.cc34 const auto ptime = rtc::StringToNumber<int>(ptime_iter->second); in SdpToConfig()
/external/webrtc/api/audio_codecs/ilbc/
Daudio_encoder_ilbc.cc50 auto ptime = rtc::StringToNumber<int>(ptime_iter->second); in SdpToConfig()
/external/webrtc/api/audio_codecs/g722/
Daudio_encoder_g722.cc35 auto ptime = rtc::StringToNumber<int>(ptime_iter->second); in SdpToConfig()
/external/webrtc/api/audio_codecs/L16/
Daudio_encoder_L16.cc34 const auto ptime = rtc::StringToNumber<int>(ptime_iter->second); in SdpToConfig()
/external/webrtc/api/audio_codecs/g711/
Daudio_encoder_g711.cc36 const auto ptime = rtc::StringToNumber<int>(ptime_iter->second); in SdpToConfig()

12