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").hasValue()); in TEST()
87 EXPECT_EQ(0, ParseInt("0").getValue()); in TEST()
89 EXPECT_TRUE(ParseInt("16").hasValue()); in TEST()
90 EXPECT_EQ(16, ParseInt("16").getValue()); in TEST()
92 EXPECT_TRUE(ParseInt("-16").hasValue()); in TEST()
[all …]
Dapi_level.cpp33 return ParseInt(api_level_str); in ParseApiLevel()
Dstring_utils.h37 llvm::Optional<int> ParseInt(const std::string &s);
Dstring_utils.cpp77 llvm::Optional<int> ParseInt(const std::string &s) { in ParseInt() function