absl::chars_format

Workalike compatibility version of std::chars_format from C++17.

Synopsis

Declared in <absl/strings/charconv.h>

enum class chars_format : int;

Description

This is an bitfield enumerator which can be passed to absl::from_chars to configure the string-to-float conversion.

Members

NameDescription
scientific A matching number must contain an exponent.
fixed An exponent will never match.
hex A hexadecimal float is parsed, without a "0x" prefix.
general Either fixed or scientific notation may match.

Non-Member Functions

NameDescription
operator&Computes the bitwise AND of two chars_format values.
operator&=Assigns to lhs the bitwise AND of lhs and rhs.
operator^Computes the bitwise XOR of two chars_format values.
operator^=Assigns to lhs the bitwise XOR of lhs and rhs.
operator|Computes the bitwise OR of two chars_format values.
operator|=Assigns to lhs the bitwise OR of lhs and rhs.
operator~Computes the bitwise complement of a chars_format value.