Lines Matching refs:Char
192 template <typename Impl, typename Char>
193 class BasicPrintfArgFormatter : public internal::ArgFormatterBase<Impl, Char> {
200 typedef internal::ArgFormatterBase<Impl, Char> Base;
210 BasicPrintfArgFormatter(BasicWriter<Char> &w, FormatSpec &s)
211 : internal::ArgFormatterBase<Impl, Char>(w, s) {}
225 BasicWriter<Char> &w = this->writer();
228 typedef typename BasicWriter<Char>::CharPtr CharPtr;
231 Char fill = ' ';
242 *out = static_cast<Char>(value);
265 BasicFormatter<Char> formatter(ArgList(), this->writer());
266 const Char format_str[] = {'}', 0};
267 const Char *format = format_str;
273 template <typename Char>
275 : public BasicPrintfArgFormatter<PrintfArgFormatter<Char>, Char> {
278 PrintfArgFormatter(BasicWriter<Char> &w, FormatSpec &s)
279 : BasicPrintfArgFormatter<PrintfArgFormatter<Char>, Char>(w, s) {}
283 template <typename Char, typename ArgFormatter = PrintfArgFormatter<Char> >
286 BasicWriter<Char> &writer_;
288 void parse_flags(FormatSpec &spec, const Char *&s);
293 const Char *s,
297 unsigned parse_header(const Char *&s, FormatSpec &spec);
307 explicit PrintfFormatter(const ArgList &al, BasicWriter<Char> &w)
311 FMT_API void format(BasicCStringRef<Char> format_str);
314 template <typename Char, typename AF>
315 void PrintfFormatter<Char, AF>::parse_flags(FormatSpec &spec, const Char *&s) {
340 template <typename Char, typename AF>
341 internal::Arg PrintfFormatter<Char, AF>::get_arg(const Char *s,
352 template <typename Char, typename AF>
353 unsigned PrintfFormatter<Char, AF>::parse_header(
354 const Char *&s, FormatSpec &spec) {
356 Char c = *s;
386 template <typename Char, typename AF>
387 void PrintfFormatter<Char, AF>::format(BasicCStringRef<Char> format_str) {
388 const Char *start = format_str.c_str();
389 const Char *s = start;
391 Char c = *s++;
486 template <typename Char>
487 void printf(BasicWriter<Char> &w, BasicCStringRef<Char> format, ArgList args) {
488 PrintfFormatter<Char>(args, w).format(format);