Lines Matching defs:absl

17 namespace absl
21 } // namespace absl
30 return absl::StrFormat("Hello");
36 return absl::StrFormat("'%s'='%f'", name, value);
42 return absl::StrFormat("int:%d int:%d char:%c char:%c", 65, 'A', 66, 'B');
50 return absl::StrFormat("a line\n");
58 return absl::StrFormat("%s %s %s %s", s1.c_str(), s1.data(), s2->c_str(), s2->data());
65 return absl::StrFormat("Integer %hhd from unsigned char\n", uc);
71 auto s1 = absl::StrFormat("width only:%*d width and precision:%*.*f precision only:%.*f", 3, 42, 4, 2, 3.14159265358979323846, 5, 2.718);
75 auto s2 = absl::StrFormat("width and precision positional:%1$*2$.*3$f after", 3.14159265358979323846, 4, 2);
81 auto s3 = absl::StrFormat("casts width only:%*d width and precision:%*.*d precision only:%.*d\n", 3, ui1, 4, 2, ui2, 5, ui3);
86 auto s4 = absl::StrFormat("c_str removal width only:%*s width and precision:%*.*s precision only:%.*s", 3, s1.c_str(), 4, 2, s2.c_str(), 5, s3.c_str());
91 auto s5 = absl::StrFormat("c_str() removal pointer width only:%-*s width and precision:%-*.*s precision only:%-.*s", 3, ps1->c_str(), 4, 2, ps2->c_str(), 5, ps3->c_str());
96 auto s6 = absl::StrFormat("c_str() removal iterator width only:%-*s width and precision:%-*.*s precision only:%-.*s", 3, is1->c_str(), 4, 2, is2->c_str(), 5, is3->c_str());
105 #define FORMAT absl::StrFormat
114 auto s3 = absl::StrFormat("Hello %*.*f", WIDTH, PRECISION, VALUE);
122 auto s4 = absl::StrFormat("Replaceable macro at end %" PRIu64, u64);
126 auto s5 = absl::StrFormat("Replaceable macros in middle %" PRIu64 " %" PRIu32 "\n", u64, u32);
135 auto s6 = absl::StrFormat("Unreplaceable macro at end %" PRI_FMT_MACRO, s.c_str());
138 auto s7 = absl::StrFormat(__PRI_FMT_MACRO " Unreplaceable macro at beginning %s", s);
141 auto s8 = absl::StrFormat("Unreplacemable macro %" PRI_FMT_MACRO " in the middle", s);
144 auto s9 = absl::StrFormat("First macro is replaceable %" PRIu64 " but second one is not %" __PRI_FMT_MACRO, u64, s);
148 auto s10 = absl::StrFormat(" macro from command line %" PRI_CMDLINE_MACRO, s);
152 auto s11 = absl::StrFormat(" macro from command line %" __PRI_CMDLINE_MACRO, s);
159 auto s12 = SURROUND_ALL(absl::StrFormat("Macro surrounding entire invocation %" PRIu64, u64));
165 auto s13 = SURROUND_ALL(absl::StrFormat("Macro surrounding entire invocation with unreplaceable macro %" PRI_FMT_MACRO, s));
170 #define SURROUND_FUNCTION_NAME(x) absl:: x
178 auto s15 = absl::StrFormat(SURROUND_FORMAT("Hello %d"), 4443);