Enumerations
enum class Flags : uint8_t
| Name | Value | Comments |
|---|---|---|
| kBasic | 0 | -- |
| kLeft | 1 << 0 | -- |
| kShowPos | 1 << 1 | -- |
| kSignCol | 1 << 2 | -- |
| kAlt | 1 << 3 | -- |
| kZero | 1 << 4 | -- |
| kNonBasic | 1 << 5 |
This is not a real flag. It just exists to turn off kBasic when no other |
Defined at line 133 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
Records
-
class ArgConvertResult -
class BoundConversion -
class BufferRawSink -
class ConvTag -
class ConvTagHolder -
class ExtendedParsedFormat -
class FILERawSink -
class FormatArgImpl -
class FormatArgImplFriend -
class FormatConversionCharInternal -
class FormatConversionCharSetInternal -
class FormatConversionSpecImpl -
class FormatConversionSpecImplFriend -
class FormatCountCaptureHelper -
class FormatRawSinkImpl -
class FormatSinkImpl -
class FormatSpecTemplate -
class HasUserDefinedConvert -
class HasUserDefinedConvert -
class MakeDependent -
class ParsedFormatBase -
class Streamable -
class StreamedWrapper -
class UnboundConversion -
class UntypedFormatSpecImpl -
class VoidPtr
Functions
-
void AbslFormatConvert ()These declarations prevent ADL lookup from continuing in absl namespaces,
we are deliberately using these as ADL hooks and want them to consider
non-absl namespaces only.
-
void AbslFormatFlush (std::ostream * out, string_view s)Defined at line 74 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/output.h
-
void AbslFormatFlush (FILERawSink * sink, string_view v)Defined at line 78 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/output.h
-
void AbslFormatFlush (BufferRawSink * sink, string_view v)Defined at line 82 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/output.h
-
const char * ConsumeUnboundConversionNoInline (const char *p,const char *end,UnboundConversion *conv,int *next_arg) -
void AbslStringify () -
template <typename T>bool ConvertIntArg (Tv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
bool ConvertBoolArg (bool v, FormatSinkImpl * sink) -
template <typename T>decltype(AbslFormatFlush(out, s)) InvokeFlush (T * out, string_view s)This is a SFINAE to get a better compiler error message when the type
is not supported.
Defined at line 89 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/output.h
-
Flags operator| (Flags a, Flags b)Defined at line 146 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
bool FlagsContains (Flags haystack, Flags needle)Defined at line 150 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
std::string FlagsToString (Flags v) -
bool BindWithPack (const UnboundConversion *props,absl::Span<const FormatArgImpl>pack,BoundConversion *bound) -
std::string & AppendPack (std::string *out,UntypedFormatSpecImplformat,absl::Span<const FormatArgImpl>args) -
template <FormatConversionCharSet... C>bool ValidFormatImpl (string_view format)Defined at line 45 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/checker.h
-
template <typename Consumer>bool ParseFormatString (string_view src, Consumer consumer)Parse the format string provided in 'src' and pass the identified items into
'consumer'.
Text runs will be passed by calling
Consumer::Append(string_view);
ConversionItems will be passed by calling
Consumer::ConvertOne(UnboundConversion, string_view);
In the case of ConvertOne, the string_view that is passed is the
portion of the format string corresponding to the conversion, not including
the leading %. On success, it returns true. On failure, it stops and returns
false.
Defined at line 57 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/parser.h
-
void AbslFormatFlush (std::string * out, string_view s)Provide RawSink integration with common types from the STL.
Defined at line 71 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/output.h
-
bool EnsureConstexpr (string_view s)Always returns true, or fails to compile in a constexpr context if s does not
point to a constexpr char array.
Defined at line 116 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/parser.h
-
template <typename T>decltype(AbslFormatConvert(v, std::declval<const FormatConversionSpec &>(), std::declval<FormatSink *>())) FormatConvertImpl (const T &v,FormatConversionSpecImplconv,FormatSinkImpl *sink)Defined at line 133 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/arg.h
-
template <typename T>std::enable_if_t<std::is_enum<T>::value && std::is_void<decltype(AbslStringify(std::declval<FormatSink &>(), v))>::value, IntegralConvertResult> FormatConvertImpl (const T &v,FormatConversionSpecImplconv,FormatSinkImpl *sink)Defined at line 148 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/arg.h
-
std::ostream & operator<< (std::ostream & os, Flags v)Defined at line 157 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
template <typename T>std::enable_if_t<! std::is_enum<T>::value && ! std::is_same<T, absl::Cord>::value && std::is_void<decltype(AbslStringify(std::declval<FormatSink &>(), v))>::value, ArgConvertResult<FormatConversionCharSetInternal::v>> FormatConvertImpl (const T &v,FormatConversionSpecImpl,FormatSinkImpl *sink)Defined at line 167 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/arg.h
-
ConvTag GetTagForChar (char c)Keep a single table for all the conversion chars and length modifiers.
Defined at line 169 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/constexpr_parser.h
-
bool CheckFastPathSetting (const UnboundConversion & conv)Defined at line 173 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/constexpr_parser.h
-
std::ostream & operator<< (std::ostream & os, const Streamable & l)Defined at line 188 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/bind.h
-
int ParseDigits (char &c,const char *&pos,const char *constend)Defined at line 196 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/constexpr_parser.h
-
template <FormatConversionCharSet C>FormatConversionCharSet ExtractCharSet (FormatConvertResult<C> )Defined at line 206 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/arg.h
-
FormatConversionChar FormatConversionCharFromChar (char c)clang-format on
Defined at line 209 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
template <FormatConversionCharSet C>FormatConversionCharSet ExtractCharSet (ArgConvertResult<C> )Defined at line 211 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/arg.h
-
template <bool is_positional>const char * ConsumeConversion (const char *pos,const char *constend,UnboundConversion *conv,int *next_arg)Defined at line 214 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/constexpr_parser.h
-
bool FormatConversionCharIsUpper (FormatConversionChar c)Defined at line 220 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
bool FormatConversionCharIsFloat (FormatConversionChar c)Defined at line 232 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
char FormatConversionCharToChar (FormatConversionChar c)Defined at line 247 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
template <class AbslCord, typename std::enable_if<std::is_same< AbslCord, absl::Cord>::value>::type* = nullptr>StringConvertResult FormatConvertImpl (const AbslCord &value,FormatConversionSpecImplconv,FormatSinkImpl *sink)Defined at line 261 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/arg.h
-
size_t Excess (size_t used, size_t capacity)Return capacity - used, clipped to a minimum of 0.
Defined at line 447 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
ArgConvertResult<FormatConversionCharSetInternal::p> FormatConvertImpl (VoidPtrv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
StringConvertResult FormatConvertImpl (const std::string &v,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
StringConvertResult FormatConvertImpl (const std::wstring &v,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
int SnprintF (char *output,size_tsize,UntypedFormatSpecImplformat,absl::Span<const FormatArgImpl>args) -
int FprintF (std::FILE *output,UntypedFormatSpecImplformat,absl::Span<const FormatArgImpl>args) -
std::string FormatPack (UntypedFormatSpecImpl format, absl::Span<const FormatArgImpl> args) -
bool FormatUntyped (FormatRawSinkImplraw_sink,UntypedFormatSpecImplformat,absl::Span<const FormatArgImpl>args) -
FormatConversionCharSet FormatConversionCharSetUnion (FormatConversionCharSet a)Type safe OR operator.
We need this for two reasons:
1. operator| on enums makes them decay to integers and the result is an
integer. We need the result to stay as an enum.
2. We use "enum class" which would not work even if we accepted the decay.
Defined at line 347 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
bool Contains (FormatConversionCharSet set, FormatConversionChar c)Checks whether all the characters in `c` are contained in `set`
Defined at line 442 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
bool Contains (FormatConversionCharSet set, FormatConversionCharSet c)Checks whether all the characters in `c` are contained in `set`
Defined at line 435 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
std::string Summarize (UntypedFormatSpecImpl format, absl::Span<const FormatArgImpl> args)for testing
-
template <typename... CharSet>FormatConversionCharSet FormatConversionCharSetUnion (FormatConversionCharSet a, CharSet... rest)Defined at line 353 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
uint64_t FormatConversionCharToConvInt (FormatConversionChar c)Defined at line 360 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
uint64_t FormatConversionCharToConvInt (char conv)Defined at line 364 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
FormatConversionCharSet FormatConversionCharToConvValue (char conv)Defined at line 377 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
std::string LengthModToString (LengthMod v) -
const char * ConsumeUnboundConversion (const char *p,const char *end,UnboundConversion *conv,int *next_arg)Consume conversion spec prefix (not including '%') of [p, end) if valid.
Examples of valid specs would be e.g.: "s", "d", "-12.6f".
If valid, it returns the first character following the conversion spec,
and the spec part is broken down and returned in 'conv'.
If invalid, returns nullptr.
Defined at line 346 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/constexpr_parser.h
-
bool Contains (FormatConversionCharSet set, char c)Checks whether `c` exists in `set`.
Defined at line 429 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
template <typename Arg>FormatConversionCharSet ArgumentToConv ()Defined at line 430 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/arg.h
-
template <class T = int>ArgConvertResult<FormatConversionCharSetInternal::n> FormatConvertImpl (const FormatCountCapture &v,FormatConversionSpecImplconv,FormatSinkImpl *sink)Defined at line 401 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/arg.h
-
template <typename T>StringConvertResult FormatConvertImpl (const StreamedWrapper<T> &v,FormatConversionSpecImplconv,FormatSinkImpl *out)Defined at line 373 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/arg.h
-
template <typename T, enable_if_t<std::is_same<T, bool>::value, int> = 0>IntegralConvertResult FormatConvertImpl (Tv,FormatConversionSpecImplconv,FormatSinkImpl *sink)This function needs to be a template due to ambiguity regarding type
conversions.
Defined at line 354 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/arg.h
-
template <typename S>ArgConvertResult<FormatConversionCharSetUnion(FormatConversionCharSetInternal::s, FormatConversionCharSetInternal::v)> FormatConvertImpl (const StreamedWrapper<S> &v,FormatConversionSpecImplconv,FormatSinkImpl *out) -
StringConvertResult FormatConvertImpl (string_viewv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
StringConvertResult FormatConvertImpl (std::wstring_viewv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
StringPtrConvertResult FormatConvertImpl (const char *v,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
StringPtrConvertResult FormatConvertImpl (const wchar_t *v,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
StringPtrConvertResult FormatConvertImpl (std::nullptr_t,FormatConversionSpecImplconv,FormatSinkImpl *sink)This overload is needed to disambiguate, since `nullptr` could match either
of the other overloads equally well.
-
FloatingConvertResult FormatConvertImpl (floatv,FormatConversionSpecImplconv,FormatSinkImpl *sink)Floats.
-
FloatingConvertResult FormatConvertImpl (doublev,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
FloatingConvertResult FormatConvertImpl (long doublev,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
CharConvertResult FormatConvertImpl (charv,FormatConversionSpecImplconv,FormatSinkImpl *sink)Chars.
-
CharConvertResult FormatConvertImpl (wchar_tv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
IntegralConvertResult FormatConvertImpl (signed charv,FormatConversionSpecImplconv,FormatSinkImpl *sink)Ints.
-
IntegralConvertResult FormatConvertImpl (unsigned charv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
IntegralConvertResult FormatConvertImpl (shortv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
IntegralConvertResult FormatConvertImpl (unsigned shortv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
IntegralConvertResult FormatConvertImpl (intv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
IntegralConvertResult FormatConvertImpl (unsigned intv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
IntegralConvertResult FormatConvertImpl (longv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
IntegralConvertResult FormatConvertImpl (unsigned longv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
IntegralConvertResult FormatConvertImpl (long longv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
IntegralConvertResult FormatConvertImpl (unsigned long longv,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
IntegralConvertResult FormatConvertImpl (int128v,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
IntegralConvertResult FormatConvertImpl (uint128v,FormatConversionSpecImplconv,FormatSinkImpl *sink) -
template <typename T>typename std::enable_if<std::is_enum<T>::value && ! HasUserDefinedConvert<T>::value && ! HasAbslStringify<T>::value, IntegralConvertResult>::type FormatConvertImpl (Tv,FormatConversionSpecImplconv,FormatSinkImpl *sink)We provide this function to help the checker, but it is never defined.
FormatArgImpl will use the underlying Convert functions instead.
-
std::ostream & operator<< (std::ostream & os, FormatConversionChar v)The associated char.
Defined at line 266 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
FormatConversionCharSet operator| (FormatConversionCharSet a, FormatConversionCharSet b)Type safe OR operator.
We need this for two reasons:
1. operator| on enums makes them decay to integers and the result is an
integer. We need the result to stay as an enum.
2. We use "enum class" which would not work even if we accepted the decay.
Defined at line 407 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
FormatConversionCharSet ToFormatConversionCharSet (char c)Overloaded conversion functions to support absl::ParsedFormat.
Get a conversion with a single character in it.
Defined at line 414 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
FormatConversionCharSet ToFormatConversionCharSet (FormatConversionCharSet c)Get a conversion with a single character in it.
Defined at line 420 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h
-
template <typename T>void ToFormatConversionCharSet (T )Defined at line 426 of file ../../third_party/abseil-cpp/src/absl/strings/internal/str_format/extension.h