absl::FormatConversionCharSet

Specifies the accepted conversion types as a template parameter to FormatConvertResult for custom implementations of AbslFormatConvert.

Synopsis

Declared in <absl/strings/str_format.h>

enum class FormatConversionCharSet : uint64_t;

Description

Note the helper predefined alias definitions (kIntegral, etc.) below.

Members

NameDescription
c Accepts the c (character) conversion.
s Accepts the s (string) conversion.
d Accepts the d (signed decimal integer) conversion.
i Accepts the i (signed decimal integer) conversion.
o Accepts the o (unsigned octal integer) conversion.
u Accepts the u (unsigned decimal integer) conversion.
x Accepts the x (unsigned hexadecimal integer) conversion.
X Accepts the X (unsigned hexadecimal integer, uppercase) conversion.
f Accepts the f (decimal floating-point) conversion.
F Accepts the F (decimal floating-point, uppercase) conversion.
e Accepts the e (exponential floating-point) conversion.
E Accepts the E (exponential floating-point, uppercase) conversion.
g Accepts the g (general floating-point) conversion.
G Accepts the G (general floating-point, uppercase) conversion.
a Accepts the a (hexadecimal floating-point) conversion.
A Accepts the A (hexadecimal floating-point, uppercase) conversion.
n Accepts the n (character-count) conversion.
p Accepts the p (pointer) conversion.
v Accepts the v (default-for-deduced-type) conversion.
kStar Used for width/precision '*' specification.
kIntegral Accepts any integral conversion.
kFloating Accepts any floating-point conversion.
kNumeric Accepts any numeric conversion.
kString Accepts the string conversion.
kPointer Accepts the pointer conversion.

Non-Member Functions

NameDescription
operator|Type safe OR operator for FormatConversionCharSet to allow accepting multiple conversion chars in custom format converters.