mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Comments
This commit is contained in:
parent
ec1aea34e6
commit
93b314d3ab
9
format.h
9
format.h
@ -509,7 +509,7 @@ inline unsigned count_digits(uint32_t n) {
|
||||
}
|
||||
# endif
|
||||
#else
|
||||
// Slower version of count_digits used when __builtin_clz is not available.
|
||||
// Fallback version of count_digits used when __builtin_clz is not available.
|
||||
inline unsigned count_digits(uint64_t n) {
|
||||
unsigned count = 1;
|
||||
for (;;) {
|
||||
@ -553,7 +553,7 @@ inline void format_decimal(Char *buffer, UInt value, unsigned num_digits) {
|
||||
|
||||
#ifdef _WIN32
|
||||
// A converter from UTF-8 to UTF-16.
|
||||
// It is only provided for Windows since other systems use UTF-8.
|
||||
// It is only provided for Windows since other systems support UTF-8 natively.
|
||||
class UTF8ToUTF16 {
|
||||
private:
|
||||
Array<wchar_t, INLINE_BUFFER_SIZE> buffer_;
|
||||
@ -567,7 +567,7 @@ class UTF8ToUTF16 {
|
||||
};
|
||||
|
||||
// A converter from UTF-16 to UTF-8.
|
||||
// It is only provided for Windows since other systems use UTF-8.
|
||||
// It is only provided for Windows since other systems support UTF-8 natively.
|
||||
class UTF16ToUTF8 {
|
||||
private:
|
||||
Array<char, INLINE_BUFFER_SIZE> buffer_;
|
||||
@ -1204,7 +1204,8 @@ inline StrFormatSpec<wchar_t> pad(
|
||||
return StrFormatSpec<wchar_t>(str, width, fill);
|
||||
}
|
||||
|
||||
// Generates a comma-separated list with results of applying f to numbers 0..n-1.
|
||||
// Generates a comma-separated list with results of applying f to
|
||||
// numbers 0..n-1.
|
||||
# define FMT_GEN(n, f) FMT_GEN##n(f)
|
||||
# define FMT_GEN1(f) f(0)
|
||||
# define FMT_GEN2(f) FMT_GEN1(f), f(1)
|
||||
|
Loading…
Reference in New Issue
Block a user