Searched refs:ContainsOneFormatSpecifier (Results 1 – 2 of 2) sorted by relevance
/art/libarttools/ |
D | cmdline_builder_test.cc | 36 TEST_F(CmdlineBuilderTest, ContainsOneFormatSpecifier) { in TEST_F() argument 37 EXPECT_TRUE(internal::ContainsOneFormatSpecifier("--flag=%s", 's')); in TEST_F() 38 EXPECT_TRUE(internal::ContainsOneFormatSpecifier("--flag=[%s]", 's')); in TEST_F() 39 EXPECT_TRUE(internal::ContainsOneFormatSpecifier("--flag=%s%%", 's')); in TEST_F() 40 EXPECT_TRUE(internal::ContainsOneFormatSpecifier("--flag=[%s%%]", 's')); in TEST_F() 41 EXPECT_TRUE(internal::ContainsOneFormatSpecifier("--flag=%%%s", 's')); in TEST_F() 42 EXPECT_FALSE(internal::ContainsOneFormatSpecifier("--flag=", 's')); in TEST_F() 43 EXPECT_FALSE(internal::ContainsOneFormatSpecifier("--flag=%s%s", 's')); in TEST_F() 44 EXPECT_FALSE(internal::ContainsOneFormatSpecifier("--flag=%s%", 's')); in TEST_F() 45 EXPECT_FALSE(internal::ContainsOneFormatSpecifier("--flag=%d", 's')); in TEST_F() [all …]
|
/art/libarttools/include/tools/ |
D | cmdline_builder.h | 33 constexpr bool ContainsOneFormatSpecifier(std::string_view format, char specifier) { in ContainsOneFormatSpecifier() function 73 __attribute__((enable_if(internal::ContainsOneFormatSpecifier(arg_format, 's'), in Add() 80 __attribute__((enable_if(internal::ContainsOneFormatSpecifier(arg_format, 's'), in AddRuntime() 89 __attribute__((enable_if(internal::ContainsOneFormatSpecifier(arg_format, 'd'), in Add() 96 __attribute__((enable_if(internal::ContainsOneFormatSpecifier(arg_format, 'd'), in AddRuntime() 106 __attribute__((enable_if(internal::ContainsOneFormatSpecifier(arg_format, 's'), in AddIfNonEmpty() 116 __attribute__((enable_if(internal::ContainsOneFormatSpecifier(arg_format, 's'), in AddRuntimeIfNonEmpty()
|