Home
last modified time | relevance | path

Searched refs:ParseInt (Results 1 – 4 of 4) sorted by relevance

/development/vndk/tools/header-checker/src/utils/
Dstring_utils_test.cpp80 TEST(StringUtilsTest, ParseInt) { in TEST() argument
81 EXPECT_FALSE(ParseInt("")); in TEST()
82 EXPECT_FALSE(ParseInt("a")); in TEST()
83 EXPECT_FALSE(ParseInt("0xa")); in TEST()
84 EXPECT_FALSE(ParseInt("16h")); in TEST()
86 EXPECT_TRUE(ParseInt("0").has_value()); in TEST()
87 EXPECT_EQ(0, ParseInt("0").value()); in TEST()
89 EXPECT_TRUE(ParseInt("16").has_value()); in TEST()
90 EXPECT_EQ(16, ParseInt("16").value()); in TEST()
92 EXPECT_TRUE(ParseInt("-16").has_value()); in TEST()
[all …]
Dapi_level.cpp31 return ParseInt(api_level_str); in ParseApiLevel()
Dstring_utils.h36 std::optional<int> ParseInt(const std::string &s);
Dstring_utils.cpp75 std::optional<int> ParseInt(const std::string &s) { in ParseInt() function