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").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 …]
31 return ParseInt(api_level_str); in ParseApiLevel()
36 std::optional<int> ParseInt(const std::string &s);
75 std::optional<int> ParseInt(const std::string &s) { in ParseInt() function