class FormatConversionSpec

Defined at line 707 of file ../../third_party/abseil-cpp/absl/strings/str_format.h

FormatConversionSpec

Specifies modifications to the conversion of the format string, through use

of one or more format flags in the source format string.

Public Methods

bool is_basic ()

FormatConversionSpec::is_basic()

Indicates that width and precision are not specified, and no additional

flags are set for this conversion character in the format string.

Defined at line 713 of file ../../third_party/abseil-cpp/absl/strings/str_format.h

bool has_left_flag ()

FormatConversionSpec::has_left_flag()

Indicates whether the result should be left justified for this conversion

character in the format string. This flag is set through use of a '-'

character in the format string. E.g. "%-s"

Defined at line 720 of file ../../third_party/abseil-cpp/absl/strings/str_format.h

bool has_show_pos_flag ()

FormatConversionSpec::has_show_pos_flag()

Indicates whether a sign column is prepended to the result for this

conversion character in the format string, even if the result is positive.

This flag is set through use of a '+' character in the format string.

E.g. "%+d"

Defined at line 728 of file ../../third_party/abseil-cpp/absl/strings/str_format.h

bool has_sign_col_flag ()

FormatConversionSpec::has_sign_col_flag()

Indicates whether a mandatory sign column is added to the result for this

conversion character. This flag is set through use of a space character

(' ') in the format string. E.g. "% i"

Defined at line 735 of file ../../third_party/abseil-cpp/absl/strings/str_format.h

bool has_alt_flag ()

FormatConversionSpec::has_alt_flag()

Indicates whether an "alternate" format is applied to the result for this

conversion character. Alternative forms depend on the type of conversion

character, and unallowed alternatives are undefined. This flag is set

through use of a '#' character in the format string. E.g. "%#h"

Defined at line 743 of file ../../third_party/abseil-cpp/absl/strings/str_format.h

bool has_zero_flag ()

FormatConversionSpec::has_zero_flag()

Indicates whether zeroes should be prepended to the result for this

conversion character instead of spaces. This flag is set through use of the

'0' character in the format string. E.g. "%0f"

Defined at line 750 of file ../../third_party/abseil-cpp/absl/strings/str_format.h

FormatConversionChar conversion_char ()

FormatConversionSpec::conversion_char()

Returns the underlying conversion character.

Defined at line 755 of file ../../third_party/abseil-cpp/absl/strings/str_format.h

int width ()

FormatConversionSpec::width()

Returns the specified width (indicated through use of a non-zero integer

value or '*' character) of the conversion character. If width is

unspecified, it returns a negative value.

Defined at line 764 of file ../../third_party/abseil-cpp/absl/strings/str_format.h

int precision ()

FormatConversionSpec::precision()

Returns the specified precision (through use of the '.' character followed

by a non-zero integer value or '*' character) of the conversion character.

If precision is unspecified, it returns a negative value.

Defined at line 771 of file ../../third_party/abseil-cpp/absl/strings/str_format.h

Friends

class FormatConversionSpecImpl