Home
last modified time | relevance | path

Searched refs:safe_strtou32 (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/lib/strings/
Dnumbers_test.cc154 TEST(safe_strtou32, UInt32s) { in TEST() argument
157 EXPECT_TRUE(safe_strtou32("0", &result)); in TEST()
159 EXPECT_TRUE(safe_strtou32("1", &result)); in TEST()
161 EXPECT_TRUE(safe_strtou32("123", &result)); in TEST()
163 EXPECT_TRUE(safe_strtou32("4294967295", &result)); in TEST()
167 EXPECT_FALSE(safe_strtou32(" 132as ", &result)); in TEST()
168 EXPECT_FALSE(safe_strtou32(" 132.2 ", &result)); in TEST()
169 EXPECT_FALSE(safe_strtou32(" -", &result)); in TEST()
170 EXPECT_FALSE(safe_strtou32("", &result)); in TEST()
171 EXPECT_FALSE(safe_strtou32(" ", &result)); in TEST()
[all …]
Dnumbers.h102 bool safe_strtou32(StringPiece str, uint32* value);
131 return safe_strtou32(s, value); in ProtoParseNumeric()
Dnumbers.cc315 bool safe_strtou32(StringPiece str, uint32* value) { in safe_strtou32() function
/external/protobuf/src/google/protobuf/stubs/
Dstrutil.h395 LIBPROTOBUF_EXPORT bool safe_strtou32(const string& str, uint32* value);
402 inline bool safe_strtou32(const char* str, uint32* value) { in safe_strtou32() function
403 return safe_strtou32(string(str), value); in safe_strtou32()
405 inline bool safe_strtou32(StringPiece str, uint32* value) { in safe_strtou32() function
406 return safe_strtou32(str.ToString(), value); in safe_strtou32()
Dstrutil.cc1349 bool safe_strtou32(const string& str, uint32* value) { in safe_strtou32() function
/external/tensorflow/tensorflow/contrib/ffmpeg/default/
Dffmpeg_lib.cc264 if (strings::safe_strtou32(rgb24_width, &width_value) && in ReadInfoFile()
265 strings::safe_strtou32(rgb24_height, &height_value)) { in ReadInfoFile()
281 if (strings::safe_strtou32(number, &frames_value)) { in ReadInfoFile()
/external/dynamic_depth/internal/strings/
Dnumbers.h54 inline bool safe_strtou32(const string& text, uint32* value) { in safe_strtou32() function
/external/tensorflow/tensorflow/core/platform/cloud/
Dgcs_file_system.cc763 if (GetEnvVar(kRequestConnectionTimeout, strings::safe_strtou32, in GcsFileSystem()
767 if (GetEnvVar(kRequestIdleTimeout, strings::safe_strtou32, &timeout_value)) { in GcsFileSystem()
770 if (GetEnvVar(kMetadataRequestTimeout, strings::safe_strtou32, in GcsFileSystem()
774 if (GetEnvVar(kReadRequestTimeout, strings::safe_strtou32, &timeout_value)) { in GcsFileSystem()
777 if (GetEnvVar(kWriteRequestTimeout, strings::safe_strtou32, &timeout_value)) { in GcsFileSystem()
/external/tensorflow/tensorflow/core/profiler/rpc/client/
Dcapture_profile.cc52 if (parts.size() != 2 || !strings::safe_strtou32(parts[1], &port) || in ValidateHostPortPair()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_channel.cc49 if (!strings::safe_strtou32(host_port.substr(colon_index + 1), &port) || in ValidateHostPortPair()
/external/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc128 if (type_ == TYPE_STRING) return StringToNumber<uint32>(safe_strtou32); in ToUint32()