Searched refs:ParseInt (Results 1 – 4 of 4) sorted by relevance
80 TEST(StringUtilsTest, ParseInt) { in TEST() argument81 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 …]
33 return ParseInt(api_level_str); in ParseApiLevel()
37 llvm::Optional<int> ParseInt(const std::string &s);
77 llvm::Optional<int> ParseInt(const std::string &s) { in ParseInt() function