Searched refs:parse_func (Results 1 – 5 of 5) sorted by relevance
/third_party/ltp/lib/ |
D | random_range.c | 102 int (*parse_func)(), char **rangeptr, char **errptr) in parse_ranges() argument 119 if (parse_func == NULL) { in parse_ranges() 120 parse_func = str_to_int; in parse_ranges() 154 if ((*parse_func) (n1str, &rp->min) < 0) { in parse_ranges() 174 if ((*parse_func) (n2str, &rp->max) < 0) { in parse_ranges() 192 if ((*parse_func) (multstr, &rp->mult) < 0) { in parse_ranges()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
D | numbers_test.cc | 689 void test_random_integer_parse_base(bool (*parse_func)(absl::string_view, in test_random_integer_parse_base() 706 EXPECT_TRUE(parse_func(str_value, &parsed_value, base)); in test_random_integer_parse_base() 711 parse_func(absl::StrCat(std::numeric_limits<IntType>::max(), value), in test_random_integer_parse_base() 717 parse_func(absl::StrCat(std::numeric_limits<IntType>::min(), value), in test_random_integer_parse_base() 720 EXPECT_FALSE(parse_func(absl::StrCat("-", value), &parsed_value, base)); in test_random_integer_parse_base() 745 constexpr auto parse_func = &absl::numbers_internal::safe_strtou128_base; in TEST() local 762 EXPECT_TRUE(parse_func(str_value, &parsed_value, base)); in TEST() 769 EXPECT_FALSE(parse_func(s, &parsed_value, base)); in TEST() 774 EXPECT_FALSE(parse_func(s, &parsed_value, base)); in TEST() 785 constexpr auto parse_func = &absl::numbers_internal::safe_strto128_base; in TEST() local [all …]
|
/third_party/abseil-cpp/absl/strings/ |
D | numbers_test.cc | 640 void test_random_integer_parse_base(bool (*parse_func)(absl::string_view, in test_random_integer_parse_base() 657 EXPECT_TRUE(parse_func(str_value, &parsed_value, base)); in test_random_integer_parse_base() 662 parse_func(absl::StrCat(std::numeric_limits<IntType>::max(), value), in test_random_integer_parse_base() 668 parse_func(absl::StrCat(std::numeric_limits<IntType>::min(), value), in test_random_integer_parse_base() 671 EXPECT_FALSE(parse_func(absl::StrCat("-", value), &parsed_value, base)); in test_random_integer_parse_base() 696 constexpr auto parse_func = &absl::numbers_internal::safe_strtou128_base; in TEST() local 713 EXPECT_TRUE(parse_func(str_value, &parsed_value, base)); in TEST() 720 EXPECT_FALSE(parse_func(s, &parsed_value, base)); in TEST() 725 EXPECT_FALSE(parse_func(s, &parsed_value, base)); in TEST()
|
/third_party/abseil-cpp/absl/debugging/internal/ |
D | demangle.cc | 337 static bool OneOrMore(ParseFunc parse_func, State *state) { in OneOrMore() argument 338 if (parse_func(state)) { in OneOrMore() 339 while (parse_func(state)) { in OneOrMore() 350 static bool ZeroOrMore(ParseFunc parse_func, State *state) { in ZeroOrMore() argument 351 while (parse_func(state)) { in ZeroOrMore()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/internal/ |
D | demangle.cc | 337 static bool OneOrMore(ParseFunc parse_func, State *state) { in OneOrMore() argument 338 if (parse_func(state)) { in OneOrMore() 339 while (parse_func(state)) { in OneOrMore() 350 static bool ZeroOrMore(ParseFunc parse_func, State *state) { in ZeroOrMore() argument 351 while (parse_func(state)) { in ZeroOrMore()
|