36 const char *data = w.data();
38 UnsignedStreamSize size = w.size();
39 UnsignedStreamSize max_size =
42 UnsignedStreamSize n = size <= max_size ? size : max_size;
43 os.write(data,
static_cast<std::streamsize
>(n));
52 w.
write(format_str, args);
60 return static_cast<int>(w.
size());
void write(BasicCStringRef< Char > format, ArgList args)
MakeUnsigned< Int >::Type to_unsigned(Int value)
void printf(BasicWriter< Char > &w, BasicCStringRef< Char > format, ArgList args)
FMT_FUNC int fprintf(std::ostream &os, CStringRef format, ArgList args)
BasicWriter< char > Writer
std::string format(CStringRef format_str, ArgList args)
FMT_API void print(std::FILE *f, CStringRef format_str, ArgList args)
void write(const mValue &value, std::ostream &os, unsigned int options=0)