Classes | Typedefs | Enumerations | Functions | Variables
absl::str_format_internal Namespace Reference

Classes

class  BoundConversion
 
class  BufferRawSink
 
struct  ConversionChar
 
class  ConversionSpec
 
struct  ConvertResult
 
class  ConvTag
 
class  ExtendedParsedFormat
 
class  FILERawSink
 
struct  Flags
 
class  FormatArgImpl
 
struct  FormatArgImplFriend
 
struct  FormatCountCaptureHelper
 
class  FormatRawSinkImpl
 
class  FormatSinkImpl
 
struct  FormatSpecDeductionBarrier
 
class  FormatSpecTemplate
 
struct  HasUserDefinedConvert
 
struct  HasUserDefinedConvert< T, void_t< decltype(AbslFormatConvert(std::declval< const T & >(), std::declval< ConversionSpec >(), std::declval< FormatSink * >()))> >
 
struct  LengthMod
 
struct  MakeDependent
 
class  ParsedFormatBase
 
class  Streamable
 
class  StreamedWrapper
 
struct  UnboundConversion
 
class  UntypedFormatSpecImpl
 
struct  VoidPtr
 

Typedefs

using CC = ConversionChar::Id
 
using FloatingConvertResult = ConvertResult< Conv::floating >
 
using IntegralConvertResult = ConvertResult< Conv::c|Conv::numeric|Conv::star >
 
using LM = LengthMod::Id
 

Enumerations

enum  Conv : uint64_t {
  Conv::CONV_SET_CASE, Conv::star = ConversionCharToConvValue('*'), Conv::integral = d | i | u | o | x | X, Conv::floating = a | e | f | g | A | E | F | G,
  Conv::numeric = integral | floating, Conv::string = s, Conv::pointer = p
}
 

Functions

 ABSL_INTERNAL_FORMAT_DISPATCH_OVERLOADS_EXPAND_ ()
 
 ABSL_INTERNAL_FORMAT_DISPATCH_OVERLOADS_EXPAND_ (extern)
 
void AbslFormatFlush (std::string *out, string_view s)
 
void AbslFormatFlush (std::ostream *out, string_view s)
 
template<class AbslCord , typename = typename std::enable_if< std::is_same<AbslCord, ::Cord>::value>::type>
void AbslFormatFlush (AbslCord *out, string_view s)
 
void AbslFormatFlush (FILERawSink *sink, string_view v)
 
void AbslFormatFlush (BufferRawSink *sink, string_view v)
 
constexpr bool AllOf ()
 
template<typename... T>
constexpr bool AllOf (bool b, T... t)
 
std::stringAppendPack (std::string *out, const UntypedFormatSpecImpl format, absl::Span< const FormatArgImpl > args)
 
template<typename Arg >
constexpr Conv ArgumentToConv ()
 
bool BindWithPack (const UnboundConversion *props, absl::Span< const FormatArgImpl > pack, BoundConversion *bound)
 
const char * ConsumeUnboundConversion (const char *p, const char *end, UnboundConversion *conv, int *next_arg)
 
constexpr bool Contains (Conv set, char c)
 
constexpr bool Contains (Conv set, Conv c)
 
constexpr Conv ConversionCharToConv (char c)
 
constexpr uint64_t ConversionCharToConvValue (char conv)
 
bool ConvertFloatImpl (long double v, const ConversionSpec &conv, FormatSinkImpl *sink)
 
bool ConvertFloatImpl (float v, const ConversionSpec &conv, FormatSinkImpl *sink)
 
bool ConvertFloatImpl (double v, const ConversionSpec &conv, FormatSinkImpl *sink)
 
constexpr bool EnsureConstexpr (string_view s)
 
size_t Excess (size_t used, size_t capacity)
 
template<class AbslCord , typename std::enable_if< std::is_same< AbslCord, ::Cord >::value >::type * = nullptr, class AbslCordReader = ::CordReader>
ConvertResult< Conv::s > FormatConvertImpl (const AbslCord &value, ConversionSpec conv, FormatSinkImpl *sink)
 
template<typename T , enable_if_t< std::is_same< T, bool >::value, int > = 0>
IntegralConvertResult FormatConvertImpl (T v, ConversionSpec conv, FormatSinkImpl *sink)
 
template<typename T >
std::enable_if< std::is_enum< T >::value &&!HasUserDefinedConvert< T >::value, IntegralConvertResult >::type FormatConvertImpl (T v, ConversionSpec conv, FormatSinkImpl *sink)
 
template<typename T >
ConvertResult< Conv::s > FormatConvertImpl (const StreamedWrapper< T > &v, ConversionSpec conv, FormatSinkImpl *out)
 
template<class T = int>
ConvertResult< Conv::nFormatConvertImpl (const FormatCountCapture &v, ConversionSpec conv, FormatSinkImpl *sink)
 
ConvertResult< Conv::s > FormatConvertImpl (const std::string &v, const ConversionSpec conv, FormatSinkImpl *sink)
 
ConvertResult< Conv::s > FormatConvertImpl (string_view v, const ConversionSpec conv, FormatSinkImpl *sink)
 
ConvertResult< Conv::s|Conv::p > FormatConvertImpl (const char *v, const ConversionSpec conv, FormatSinkImpl *sink)
 
ConvertResult< Conv::p > FormatConvertImpl (VoidPtr v, const ConversionSpec conv, FormatSinkImpl *sink)
 
FloatingConvertResult FormatConvertImpl (float v, const ConversionSpec conv, FormatSinkImpl *sink)
 
FloatingConvertResult FormatConvertImpl (double v, const ConversionSpec conv, FormatSinkImpl *sink)
 
FloatingConvertResult FormatConvertImpl (long double v, const ConversionSpec conv, FormatSinkImpl *sink)
 
IntegralConvertResult FormatConvertImpl (char v, const ConversionSpec conv, FormatSinkImpl *sink)
 
IntegralConvertResult FormatConvertImpl (signed char v, const ConversionSpec conv, FormatSinkImpl *sink)
 
IntegralConvertResult FormatConvertImpl (unsigned char v, const ConversionSpec conv, FormatSinkImpl *sink)
 
IntegralConvertResult FormatConvertImpl (short v, const ConversionSpec conv, FormatSinkImpl *sink)
 
IntegralConvertResult FormatConvertImpl (unsigned short v, const ConversionSpec conv, FormatSinkImpl *sink)
 
IntegralConvertResult FormatConvertImpl (int v, const ConversionSpec conv, FormatSinkImpl *sink)
 
IntegralConvertResult FormatConvertImpl (unsigned v, const ConversionSpec conv, FormatSinkImpl *sink)
 
IntegralConvertResult FormatConvertImpl (long v, const ConversionSpec conv, FormatSinkImpl *sink)
 
IntegralConvertResult FormatConvertImpl (unsigned long v, const ConversionSpec conv, FormatSinkImpl *sink)
 
IntegralConvertResult FormatConvertImpl (long long v, const ConversionSpec conv, FormatSinkImpl *sink)
 
IntegralConvertResult FormatConvertImpl (unsigned long long v, const ConversionSpec conv, FormatSinkImpl *sink)
 
IntegralConvertResult FormatConvertImpl (absl::uint128 v, const ConversionSpec conv, FormatSinkImpl *sink)
 
std::string FormatPack (const UntypedFormatSpecImpl format, absl::Span< const FormatArgImpl > args)
 
bool FormatUntyped (FormatRawSinkImpl raw_sink, const UntypedFormatSpecImpl format, absl::Span< const FormatArgImpl > args)
 
int FprintF (std::FILE *output, const UntypedFormatSpecImpl format, absl::Span< const FormatArgImpl > args)
 
ConvTag GetTagForChar (char c)
 
template<typename T >
auto InvokeFlush (T *out, string_view s) -> decltype(str_format_internal::AbslFormatFlush(out, s))
 
constexpr Conv operator| (Conv a, Conv b)
 
template<typename Consumer >
bool ParseFormatString (string_view src, Consumer consumer)
 
int SnprintF (char *output, size_t size, const UntypedFormatSpecImpl format, absl::Span< const FormatArgImpl > args)
 
std::string Summarize (const UntypedFormatSpecImpl format, absl::Span< const FormatArgImpl > args)
 

Variables

ABSL_CONST_INIT const ConvTag kTags [256]
 

Typedef Documentation

◆ CC

Definition at line 19 of file parser.cc.

◆ FloatingConvertResult

Definition at line 106 of file arg.h.

◆ IntegralConvertResult

Definition at line 105 of file arg.h.

◆ LM

Definition at line 20 of file parser.cc.

Enumeration Type Documentation

◆ Conv

enum absl::str_format_internal::Conv : uint64_t
strong
Enumerator
CONV_SET_CASE 
star 
integral 
floating 
numeric 
string 
pointer 

Definition at line 350 of file extension.h.

Function Documentation

◆ ABSL_INTERNAL_FORMAT_DISPATCH_OVERLOADS_EXPAND_() [1/2]

absl::str_format_internal::ABSL_INTERNAL_FORMAT_DISPATCH_OVERLOADS_EXPAND_ ( )

◆ ABSL_INTERNAL_FORMAT_DISPATCH_OVERLOADS_EXPAND_() [2/2]

absl::str_format_internal::ABSL_INTERNAL_FORMAT_DISPATCH_OVERLOADS_EXPAND_ ( extern  )

◆ AbslFormatFlush() [1/5]

void absl::str_format_internal::AbslFormatFlush ( std::string out,
string_view  s 
)
inline

Definition at line 71 of file output.h.

◆ AbslFormatFlush() [2/5]

void absl::str_format_internal::AbslFormatFlush ( std::ostream *  out,
string_view  s 
)
inline

Definition at line 74 of file output.h.

◆ AbslFormatFlush() [3/5]

template<class AbslCord , typename = typename std::enable_if< std::is_same<AbslCord, ::Cord>::value>::type>
void absl::str_format_internal::AbslFormatFlush ( AbslCord *  out,
string_view  s 
)
inline

Definition at line 80 of file output.h.

◆ AbslFormatFlush() [4/5]

void absl::str_format_internal::AbslFormatFlush ( FILERawSink sink,
string_view  v 
)
inline

Definition at line 84 of file output.h.

◆ AbslFormatFlush() [5/5]

void absl::str_format_internal::AbslFormatFlush ( BufferRawSink sink,
string_view  v 
)
inline

Definition at line 88 of file output.h.

◆ AllOf() [1/2]

constexpr bool absl::str_format_internal::AllOf ( )

Definition at line 20 of file checker.h.

◆ AllOf() [2/2]

template<typename... T>
constexpr bool absl::str_format_internal::AllOf ( bool  b,
T...  t 
)

Definition at line 23 of file checker.h.

◆ AppendPack()

std::string & absl::str_format_internal::AppendPack ( std::string out,
const UntypedFormatSpecImpl  format,
absl::Span< const FormatArgImpl args 
)

Definition at line 190 of file bind.cc.

◆ ArgumentToConv()

template<typename Arg >
constexpr Conv absl::str_format_internal::ArgumentToConv ( )

Definition at line 28 of file checker.h.

◆ BindWithPack()

bool absl::str_format_internal::BindWithPack ( const UnboundConversion props,
absl::Span< const FormatArgImpl pack,
BoundConversion bound 
)

Definition at line 156 of file bind.cc.

◆ ConsumeUnboundConversion()

const char * absl::str_format_internal::ConsumeUnboundConversion ( const char *  p,
const char *  end,
UnboundConversion conv,
int *  next_arg 
)

Definition at line 230 of file parser.cc.

◆ Contains() [1/2]

constexpr bool absl::str_format_internal::Contains ( Conv  set,
char  c 
)

Definition at line 381 of file extension.h.

◆ Contains() [2/2]

constexpr bool absl::str_format_internal::Contains ( Conv  set,
Conv  c 
)

Definition at line 386 of file extension.h.

◆ ConversionCharToConv()

constexpr Conv absl::str_format_internal::ConversionCharToConv ( char  c)

Definition at line 376 of file extension.h.

◆ ConversionCharToConvValue()

constexpr uint64_t absl::str_format_internal::ConversionCharToConvValue ( char  conv)

Definition at line 339 of file extension.h.

◆ ConvertFloatImpl() [1/3]

bool absl::str_format_internal::ConvertFloatImpl ( long double  v,
const ConversionSpec conv,
FormatSinkImpl sink 
)

Definition at line 467 of file float_conversion.cc.

◆ ConvertFloatImpl() [2/3]

bool absl::str_format_internal::ConvertFloatImpl ( float  v,
const ConversionSpec conv,
FormatSinkImpl sink 
)

Definition at line 472 of file float_conversion.cc.

◆ ConvertFloatImpl() [3/3]

bool absl::str_format_internal::ConvertFloatImpl ( double  v,
const ConversionSpec conv,
FormatSinkImpl sink 
)

Definition at line 477 of file float_conversion.cc.

◆ EnsureConstexpr()

constexpr bool absl::str_format_internal::EnsureConstexpr ( string_view  s)

Definition at line 173 of file parser.h.

◆ Excess()

size_t absl::str_format_internal::Excess ( size_t  used,
size_t  capacity 
)
inline

Definition at line 403 of file extension.h.

◆ FormatConvertImpl() [1/24]

template<class AbslCord , typename std::enable_if< std::is_same< AbslCord, ::Cord >::value >::type * = nullptr, class AbslCordReader = ::CordReader>
ConvertResult<Conv::s> absl::str_format_internal::FormatConvertImpl ( const AbslCord &  value,
ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 72 of file arg.h.

◆ FormatConvertImpl() [2/24]

template<typename T , enable_if_t< std::is_same< T, bool >::value, int > = 0>
IntegralConvertResult absl::str_format_internal::FormatConvertImpl ( v,
ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 150 of file arg.h.

◆ FormatConvertImpl() [3/24]

template<typename T >
std::enable_if<std::is_enum<T>::value && !HasUserDefinedConvert<T>::value, IntegralConvertResult>::type absl::str_format_internal::FormatConvertImpl ( v,
ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 150 of file arg.h.

◆ FormatConvertImpl() [4/24]

template<typename T >
ConvertResult<Conv::s> absl::str_format_internal::FormatConvertImpl ( const StreamedWrapper< T > &  v,
ConversionSpec  conv,
FormatSinkImpl out 
)

Definition at line 164 of file arg.h.

◆ FormatConvertImpl() [5/24]

template<class T = int>
ConvertResult<Conv::n> absl::str_format_internal::FormatConvertImpl ( const FormatCountCapture v,
ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 190 of file arg.h.

◆ FormatConvertImpl() [6/24]

ConvertResult< Conv::s > absl::str_format_internal::FormatConvertImpl ( const std::string v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 255 of file arg.cc.

◆ FormatConvertImpl() [7/24]

ConvertResult< Conv::s > absl::str_format_internal::FormatConvertImpl ( string_view  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 261 of file arg.cc.

◆ FormatConvertImpl() [8/24]

ConvertResult< Conv::s|Conv::p > absl::str_format_internal::FormatConvertImpl ( const char *  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 267 of file arg.cc.

◆ FormatConvertImpl() [9/24]

ConvertResult< Conv::p > absl::str_format_internal::FormatConvertImpl ( VoidPtr  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 285 of file arg.cc.

◆ FormatConvertImpl() [10/24]

FloatingConvertResult absl::str_format_internal::FormatConvertImpl ( float  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 297 of file arg.cc.

◆ FormatConvertImpl() [11/24]

FloatingConvertResult absl::str_format_internal::FormatConvertImpl ( double  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 301 of file arg.cc.

◆ FormatConvertImpl() [12/24]

FloatingConvertResult absl::str_format_internal::FormatConvertImpl ( long double  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 305 of file arg.cc.

◆ FormatConvertImpl() [13/24]

IntegralConvertResult absl::str_format_internal::FormatConvertImpl ( char  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 312 of file arg.cc.

◆ FormatConvertImpl() [14/24]

IntegralConvertResult absl::str_format_internal::FormatConvertImpl ( signed char  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 316 of file arg.cc.

◆ FormatConvertImpl() [15/24]

IntegralConvertResult absl::str_format_internal::FormatConvertImpl ( unsigned char  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 321 of file arg.cc.

◆ FormatConvertImpl() [16/24]

IntegralConvertResult absl::str_format_internal::FormatConvertImpl ( short  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 328 of file arg.cc.

◆ FormatConvertImpl() [17/24]

IntegralConvertResult absl::str_format_internal::FormatConvertImpl ( unsigned short  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 333 of file arg.cc.

◆ FormatConvertImpl() [18/24]

IntegralConvertResult absl::str_format_internal::FormatConvertImpl ( int  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 338 of file arg.cc.

◆ FormatConvertImpl() [19/24]

IntegralConvertResult absl::str_format_internal::FormatConvertImpl ( unsigned  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 342 of file arg.cc.

◆ FormatConvertImpl() [20/24]

IntegralConvertResult absl::str_format_internal::FormatConvertImpl ( long  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 346 of file arg.cc.

◆ FormatConvertImpl() [21/24]

IntegralConvertResult absl::str_format_internal::FormatConvertImpl ( unsigned long  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 351 of file arg.cc.

◆ FormatConvertImpl() [22/24]

IntegralConvertResult absl::str_format_internal::FormatConvertImpl ( long long  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 356 of file arg.cc.

◆ FormatConvertImpl() [23/24]

IntegralConvertResult absl::str_format_internal::FormatConvertImpl ( unsigned long long  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 361 of file arg.cc.

◆ FormatConvertImpl() [24/24]

IntegralConvertResult absl::str_format_internal::FormatConvertImpl ( absl::uint128  v,
const ConversionSpec  conv,
FormatSinkImpl sink 
)

Definition at line 366 of file arg.cc.

◆ FormatPack()

std::string absl::str_format_internal::FormatPack ( const UntypedFormatSpecImpl  format,
absl::Span< const FormatArgImpl args 
)
inline

Definition at line 167 of file bind.h.

◆ FormatUntyped()

bool absl::str_format_internal::FormatUntyped ( FormatRawSinkImpl  raw_sink,
const UntypedFormatSpecImpl  format,
absl::Span< const FormatArgImpl args 
)

Definition at line 177 of file bind.cc.

◆ FprintF()

int absl::str_format_internal::FprintF ( std::FILE *  output,
const UntypedFormatSpecImpl  format,
absl::Span< const FormatArgImpl args 
)

Definition at line 199 of file bind.cc.

◆ GetTagForChar()

ConvTag absl::str_format_internal::GetTagForChar ( char  c)
inline

Definition at line 102 of file parser.h.

◆ InvokeFlush()

template<typename T >
auto absl::str_format_internal::InvokeFlush ( T *  out,
string_view  s 
) -> decltype(str_format_internal::AbslFormatFlush(out, s))

Definition at line 93 of file output.h.

◆ operator|()

constexpr Conv absl::str_format_internal::operator| ( Conv  a,
Conv  b 
)

Definition at line 371 of file extension.h.

◆ ParseFormatString()

template<typename Consumer >
bool absl::str_format_internal::ParseFormatString ( string_view  src,
Consumer  consumer 
)

Definition at line 117 of file parser.h.

◆ SnprintF()

int absl::str_format_internal::SnprintF ( char *  output,
size_t  size,
const UntypedFormatSpecImpl  format,
absl::Span< const FormatArgImpl args 
)

Definition at line 217 of file bind.cc.

◆ Summarize()

std::string absl::str_format_internal::Summarize ( const UntypedFormatSpecImpl  format,
absl::Span< const FormatArgImpl args 
)

Definition at line 162 of file bind.cc.

Variable Documentation

◆ kTags

const ConvTag absl::str_format_internal::kTags

Definition at line 21 of file parser.cc.



abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:23