Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/platform/
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.h398 PROTOBUF_EXPORT bool safe_strtou32(const string& str, uint32* value);
405 inline bool safe_strtou32(const char* str, uint32* value) { in safe_strtou32() function
406 return safe_strtou32(string(str), value); in safe_strtou32()
408 inline bool safe_strtou32(StringPiece str, uint32* value) { in safe_strtou32() function
409 return safe_strtou32(str.ToString(), value); in safe_strtou32()
Dstrutil.cc1368 bool safe_strtou32(const string& str, uint32* value) { in safe_strtou32() function
/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.cc839 if (GetEnvVar(kRequestConnectionTimeout, strings::safe_strtou32, in GcsFileSystem()
843 if (GetEnvVar(kRequestIdleTimeout, strings::safe_strtou32, &timeout_value)) { in GcsFileSystem()
846 if (GetEnvVar(kMetadataRequestTimeout, strings::safe_strtou32, in GcsFileSystem()
850 if (GetEnvVar(kReadRequestTimeout, strings::safe_strtou32, &timeout_value)) { in GcsFileSystem()
853 if (GetEnvVar(kWriteRequestTimeout, strings::safe_strtou32, &timeout_value)) { in GcsFileSystem()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_channel.cc55 if (!strings::safe_strtou32(host_port.substr(colon_index + 1), &port) || in ValidateHostPortPair()
/external/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc133 return StringToNumber<uint32>(safe_strtou32); in ToUint32()