Lines Matching +refs:clang +refs:format +refs:buffer
110 # pragma clang diagnostic push
111 # pragma clang diagnostic ignored "-Wdocumentation-unknown-command"
112 # pragma clang diagnostic ignored "-Wpadded"
407 char buffer[2]; // The buffer size must be >= 2 or _ecvt_s will fail. in isnegative() local
408 _ecvt_s(buffer, sizeof(buffer), x, 0, &dec, &sign); in isnegative()
837 FMT_API static int format_float(char *buffer, std::size_t size,
838 const char *format, unsigned width, int precision, T value);
843 (char *buffer, std::size_t size,
844 const char* format, unsigned width, int precision, double value);
846 (char *buffer, std::size_t size,
847 const char* format, unsigned width, int precision, long double value);
857 FMT_API static int format_float(wchar_t *buffer, std::size_t size,
858 const wchar_t *format, unsigned width, int precision, T value);
863 (wchar_t *buffer, std::size_t size,
864 const wchar_t* format, unsigned width, int precision, double value);
866 (wchar_t *buffer, std::size_t size,
867 const wchar_t* format, unsigned width, int precision, long double value);
975 void operator()(Char *&buffer) {
978 buffer -= sep_.size();
980 internal::make_ptr(buffer, sep_.size()));
988 inline void format_decimal(Char *buffer, UInt value, unsigned num_digits,
990 buffer += num_digits;
997 *--buffer = Data::DIGITS[index + 1];
998 thousands_sep(buffer);
999 *--buffer = Data::DIGITS[index];
1000 thousands_sep(buffer);
1003 *--buffer = static_cast<char>('0' + value);
1007 *--buffer = Data::DIGITS[index + 1];
1008 thousands_sep(buffer);
1009 *--buffer = Data::DIGITS[index];
1013 inline void format_decimal(Char *buffer, UInt value, unsigned num_digits) {
1014 format_decimal(buffer, value, num_digits, NoThousandsSep());
1078 FormatFunc format;
1381 custom.format = &format_custom_arg<T>;
2111 c.format(&formatter_, c.value, &format_);
2165 void format(BasicCStringRef<Char> format_str);
2168 const Char *format(const Char *&format_str, const internal::Arg &arg);
2211 (void)result.custom.format;
2453 static CharPtr fill_padding(CharPtr buffer,
2608 void write(BasicCStringRef<Char> format, ArgList args) {
2609 BasicFormatter<Char>(args, *this).format(format);
2705 Buffer<Char> &buffer() FMT_NOEXCEPT { return buffer_; }
2755 CharPtr buffer, unsigned total_size,
2760 std::uninitialized_fill_n(buffer, left_padding, fill_char);
2761 buffer += left_padding;
2762 CharPtr content = buffer;
2763 std::uninitialized_fill_n(buffer + content_size,
3002 Char format[MAX_FORMAT_SIZE];
3003 Char *format_ptr = format;
3042 start, buffer_size, format, width_for_sprintf, spec.precision(), value);
3260 FMT_API void print_colored(Color c, CStringRef format, ArgList args);
3271 inline std::string format(CStringRef format_str, ArgList args) {
3277 inline std::wstring format(WCStringRef format_str, ArgList args) {
3388 inline void format_decimal(char *&buffer, T value) {
3392 *buffer++ = '-';
3397 *buffer++ = static_cast<char>('0' + abs_value);
3401 *buffer++ = internal::Data::DIGITS[index];
3402 *buffer++ = internal::Data::DIGITS[index + 1];
3406 internal::format_decimal(buffer, abs_value, num_digits);
3407 buffer += num_digits;
3565 FMT_VARIADIC(std::string, format, CStringRef)
3566 FMT_VARIADIC_W(std::wstring, format, WCStringRef)
3602 fmt::format("format specifier '{}' requires numeric argument", spec);
3612 FMT_THROW(FormatError(fmt::format(
3660 const Char *BasicFormatter<Char, ArgFormatter>::format(
3667 arg.custom.format(this, arg.custom.value, &s);
3811 fmt::format("precision not allowed in {} format specifier",
3830 void BasicFormatter<Char, AF>::format(BasicCStringRef<Char> format_str) {
3846 start = s = format(s, arg);
3862 -> decltype(format(str, std::forward<Args>(args)...)) {
3863 return format(str, std::forward<Args>(args)...);
3921 # pragma clang diagnostic pop