Home
last modified time | relevance | path

Searched refs:safe_strto32_base (Results 1 – 25 of 34) sorted by relevance

12

/external/abseil-cpp/absl/strings/
Dnumbers_test.cc49 using absl::numbers_internal::safe_strto32_base;
415 TEST(stringtest, safe_strto32_base) { in TEST() argument
417 EXPECT_TRUE(safe_strto32_base("0x34234324", &value, 16)); in TEST()
420 EXPECT_TRUE(safe_strto32_base("0X34234324", &value, 16)); in TEST()
423 EXPECT_TRUE(safe_strto32_base("34234324", &value, 16)); in TEST()
426 EXPECT_TRUE(safe_strto32_base("0", &value, 16)); in TEST()
429 EXPECT_TRUE(safe_strto32_base(" \t\n -0x34234324", &value, 16)); in TEST()
432 EXPECT_TRUE(safe_strto32_base(" \t\n -34234324", &value, 16)); in TEST()
435 EXPECT_TRUE(safe_strto32_base("7654321", &value, 8)); in TEST()
438 EXPECT_TRUE(safe_strto32_base("-01234", &value, 8)); in TEST()
[all …]
Dnumbers.h128 bool safe_strto32_base(absl::string_view text, int32_t* value, int base);
198 parsed = numbers_internal::safe_strto32_base(s, &val, base); in safe_strtoi_base()
Dnumbers_benchmark.cc60 absl::numbers_internal::safe_strto32_base(str, &value, base)); in BM_safe_strto32_string()
Dnumbers.cc943 bool safe_strto32_base(absl::string_view text, int32_t* value, int base) { in safe_strto32_base() function
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dnumbers_test.cc50 using absl::numbers_internal::safe_strto32_base;
422 TEST(stringtest, safe_strto32_base) { in TEST() argument
424 EXPECT_TRUE(safe_strto32_base("0x34234324", &value, 16)); in TEST()
427 EXPECT_TRUE(safe_strto32_base("0X34234324", &value, 16)); in TEST()
430 EXPECT_TRUE(safe_strto32_base("34234324", &value, 16)); in TEST()
433 EXPECT_TRUE(safe_strto32_base("0", &value, 16)); in TEST()
436 EXPECT_TRUE(safe_strto32_base(" \t\n -0x34234324", &value, 16)); in TEST()
439 EXPECT_TRUE(safe_strto32_base(" \t\n -34234324", &value, 16)); in TEST()
442 EXPECT_TRUE(safe_strto32_base("7654321", &value, 8)); in TEST()
445 EXPECT_TRUE(safe_strto32_base("-01234", &value, 8)); in TEST()
[all …]
Dnumbers.h128 bool safe_strto32_base(absl::string_view text, int32_t* value, int base);
198 parsed = numbers_internal::safe_strto32_base(s, &val, base); in safe_strtoi_base()
Dnumbers_benchmark.cc60 absl::numbers_internal::safe_strto32_base(str, &value, base)); in BM_safe_strto32_string()
Dnumbers.cc943 bool safe_strto32_base(absl::string_view text, int32_t* value, int base) { in safe_strto32_base() function
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dnumbers_test.cc49 using absl::numbers_internal::safe_strto32_base;
415 TEST(stringtest, safe_strto32_base) { in TEST() argument
417 EXPECT_TRUE(safe_strto32_base("0x34234324", &value, 16)); in TEST()
420 EXPECT_TRUE(safe_strto32_base("0X34234324", &value, 16)); in TEST()
423 EXPECT_TRUE(safe_strto32_base("34234324", &value, 16)); in TEST()
426 EXPECT_TRUE(safe_strto32_base("0", &value, 16)); in TEST()
429 EXPECT_TRUE(safe_strto32_base(" \t\n -0x34234324", &value, 16)); in TEST()
432 EXPECT_TRUE(safe_strto32_base(" \t\n -34234324", &value, 16)); in TEST()
435 EXPECT_TRUE(safe_strto32_base("7654321", &value, 8)); in TEST()
438 EXPECT_TRUE(safe_strto32_base("-01234", &value, 8)); in TEST()
[all …]
Dnumbers.h128 bool safe_strto32_base(absl::string_view text, int32_t* value, int base);
198 parsed = numbers_internal::safe_strto32_base(s, &val, base); in safe_strtoi_base()
Dnumbers_benchmark.cc60 absl::numbers_internal::safe_strto32_base(str, &value, base)); in BM_safe_strto32_string()
Dnumbers.cc943 bool safe_strto32_base(absl::string_view text, int32_t* value, int base) { in safe_strto32_base() function
/external/libtextclassifier/abseil-cpp/absl/strings/
Dnumbers_test.cc50 using absl::numbers_internal::safe_strto32_base;
422 TEST(stringtest, safe_strto32_base) { in TEST() argument
424 EXPECT_TRUE(safe_strto32_base("0x34234324", &value, 16)); in TEST()
427 EXPECT_TRUE(safe_strto32_base("0X34234324", &value, 16)); in TEST()
430 EXPECT_TRUE(safe_strto32_base("34234324", &value, 16)); in TEST()
433 EXPECT_TRUE(safe_strto32_base("0", &value, 16)); in TEST()
436 EXPECT_TRUE(safe_strto32_base(" \t\n -0x34234324", &value, 16)); in TEST()
439 EXPECT_TRUE(safe_strto32_base(" \t\n -34234324", &value, 16)); in TEST()
442 EXPECT_TRUE(safe_strto32_base("7654321", &value, 8)); in TEST()
445 EXPECT_TRUE(safe_strto32_base("-01234", &value, 8)); in TEST()
[all …]
Dnumbers.h128 bool safe_strto32_base(absl::string_view text, int32_t* value, int base);
198 parsed = numbers_internal::safe_strto32_base(s, &val, base); in safe_strtoi_base()
Dnumbers_benchmark.cc60 absl::numbers_internal::safe_strto32_base(str, &value, base)); in BM_safe_strto32_string()
Dnumbers.cc943 bool safe_strto32_base(absl::string_view text, int32_t* value, int base) { in safe_strto32_base() function
/external/angle/third_party/abseil-cpp/absl/strings/
Dnumbers_test.cc51 using absl::numbers_internal::safe_strto32_base;
471 TEST(stringtest, safe_strto32_base) { in TEST() argument
473 EXPECT_TRUE(safe_strto32_base("0x34234324", &value, 16)); in TEST()
476 EXPECT_TRUE(safe_strto32_base("0X34234324", &value, 16)); in TEST()
479 EXPECT_TRUE(safe_strto32_base("34234324", &value, 16)); in TEST()
482 EXPECT_TRUE(safe_strto32_base("0", &value, 16)); in TEST()
485 EXPECT_TRUE(safe_strto32_base(" \t\n -0x34234324", &value, 16)); in TEST()
488 EXPECT_TRUE(safe_strto32_base(" \t\n -34234324", &value, 16)); in TEST()
491 EXPECT_TRUE(safe_strto32_base("7654321", &value, 8)); in TEST()
494 EXPECT_TRUE(safe_strto32_base("-01234", &value, 8)); in TEST()
[all …]
Dnumbers.h128 bool safe_strto32_base(absl::string_view text, int32_t* value, int base);
200 parsed = numbers_internal::safe_strto32_base(s, &val, base); in safe_strtoi_base()
Dnumbers_benchmark.cc60 absl::numbers_internal::safe_strto32_base(str, &value, base)); in BM_safe_strto32_string()
/external/openscreen/third_party/abseil/src/absl/strings/
Dnumbers_test.cc50 using absl::numbers_internal::safe_strto32_base;
449 TEST(stringtest, safe_strto32_base) { in TEST() argument
451 EXPECT_TRUE(safe_strto32_base("0x34234324", &value, 16)); in TEST()
454 EXPECT_TRUE(safe_strto32_base("0X34234324", &value, 16)); in TEST()
457 EXPECT_TRUE(safe_strto32_base("34234324", &value, 16)); in TEST()
460 EXPECT_TRUE(safe_strto32_base("0", &value, 16)); in TEST()
463 EXPECT_TRUE(safe_strto32_base(" \t\n -0x34234324", &value, 16)); in TEST()
466 EXPECT_TRUE(safe_strto32_base(" \t\n -34234324", &value, 16)); in TEST()
469 EXPECT_TRUE(safe_strto32_base("7654321", &value, 8)); in TEST()
472 EXPECT_TRUE(safe_strto32_base("-01234", &value, 8)); in TEST()
[all …]
Dnumbers.h128 bool safe_strto32_base(absl::string_view text, int32_t* value, int base);
200 parsed = numbers_internal::safe_strto32_base(s, &val, base); in safe_strtoi_base()
Dnumbers_benchmark.cc60 absl::numbers_internal::safe_strto32_base(str, &value, base)); in BM_safe_strto32_string()
/external/dynamic_depth/internal/strings/
Dnumbers.h39 bool safe_strto32_base(const string& text, int32* value, int base);
47 return safe_strto32_base(text, value, 10); in safe_strto32()
Dnumbers.cc446 bool safe_strto32_base(const string& text, int32* value, int base) { in safe_strto32_base() function
/external/tensorflow/tensorflow/compiler/tf2xla/
Dside_effect_util.cc135 if (!absl::numbers_internal::safe_strto32_base(parts[1], &core, 10)) { in ParseHostComputeCoreList()

12