Searched refs:CStringToInt32 (Results 1 – 6 of 6) sorted by relevance
/aosp_15_r20/external/perfetto/src/base/ |
H A D | string_utils_unittest.cc | 61 TEST(StringUtilsTest, CStringToInt32) { in TEST() argument 62 EXPECT_EQ(CStringToInt32("0"), std::make_optional<int32_t>(0)); in TEST() 63 EXPECT_EQ(CStringToInt32("1"), std::make_optional<int32_t>(1)); in TEST() 64 EXPECT_EQ(CStringToInt32("-42"), std::make_optional<int32_t>(-42)); in TEST() 65 EXPECT_EQ(CStringToInt32(""), std::nullopt); in TEST() 66 EXPECT_EQ(CStringToInt32("!?"), std::nullopt); in TEST() 67 EXPECT_EQ(CStringToInt32("abc"), std::nullopt); in TEST() 68 EXPECT_EQ(CStringToInt32("123 abc"), std::nullopt); in TEST()
|
H A D | unix_socket.cc | 274 if (col && CStringToInt32(col + 1).has_value()) { in GetSockFamily()
|
/aosp_15_r20/prebuilts/runtime/mainline/platform/sdk/include/external/perfetto/include/perfetto/ext/base/ |
H A D | string_utils.h | 48 inline std::optional<int32_t> CStringToInt32(const char* s, int base = 10) { 85 return CStringToInt32(s.c_str(), base);
|
/aosp_15_r20/external/perfetto/include/perfetto/ext/base/ |
H A D | string_utils.h | 49 inline std::optional<int32_t> CStringToInt32(const char* s, int base = 10) { 86 return CStringToInt32(s.c_str(), base);
|
/aosp_15_r20/external/perfetto/src/traced_relay/ |
H A D | relay_service_main.cc | 130 auto opt_fd = base::CStringToInt32(env_prod); in RelayServiceMain()
|
/aosp_15_r20/external/perfetto/src/traced/probes/ps/ |
H A D | process_stats_data_source.cc | 67 auto int_value = base::CStringToInt32(dir_ent->d_name); in ReadNextNumericDir() 101 std::optional<int32_t> nstid = base::CStringToInt32(ss.cur_token()); in ParseNamespacedTids()
|