Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
absl::str_format_internal::ConversionChar Struct Reference

#include <extension.h>

Classes

struct  Spec
 

Public Types

enum  Id : uint8_t {
  c, C, s, S,
  d, i, o, u,
  x, X, f, F,
  e, E, g, G,
  a, A, n, p,
  none
}
 

Public Member Functions

char Char () const
 
 ConversionChar ()
 
Id id () const
 
bool is_float () const
 
bool is_integral () const
 
bool is_signed () const
 
bool IsValid () const
 
int radix () const
 
bool upper () const
 

Static Public Member Functions

static ConversionChar FromChar (char c)
 
static ConversionChar FromId (Id id)
 
static ConversionChar FromIndex (size_t i)
 

Static Public Attributes

static const size_t kNumValues = none + 1
 

Private Member Functions

 ConversionChar (Id id)
 

Private Attributes

Id id_
 

Static Private Attributes

static const Spec kSpecs []
 

Friends

bool operator!= (const ConversionChar &a, const ConversionChar &b)
 
std::ostream & operator<< (std::ostream &os, const ConversionChar &v)
 
bool operator== (const ConversionChar &a, const ConversionChar &b)
 

Detailed Description

Definition at line 201 of file extension.h.

Member Enumeration Documentation

◆ Id

Enumerator
none 

Definition at line 203 of file extension.h.

Constructor & Destructor Documentation

◆ ConversionChar() [1/2]

absl::str_format_internal::ConversionChar::ConversionChar ( )
inline

Definition at line 212 of file extension.h.

◆ ConversionChar() [2/2]

absl::str_format_internal::ConversionChar::ConversionChar ( Id  id)
inlineexplicitprivate

Definition at line 301 of file extension.h.

Member Function Documentation

◆ Char()

char absl::str_format_internal::ConversionChar::Char ( ) const
inline

Definition at line 280 of file extension.h.

◆ FromChar()

static ConversionChar absl::str_format_internal::ConversionChar::FromChar ( char  c)
inlinestatic

Definition at line 221 of file extension.h.

◆ FromId()

static ConversionChar absl::str_format_internal::ConversionChar::FromId ( Id  id)
inlinestatic

Definition at line 236 of file extension.h.

◆ FromIndex()

static ConversionChar absl::str_format_internal::ConversionChar::FromIndex ( size_t  i)
inlinestatic

Definition at line 217 of file extension.h.

◆ id()

Id absl::str_format_internal::ConversionChar::id ( ) const
inline

Definition at line 237 of file extension.h.

◆ is_float()

bool absl::str_format_internal::ConversionChar::is_float ( ) const
inline

Definition at line 269 of file extension.h.

◆ is_integral()

bool absl::str_format_internal::ConversionChar::is_integral ( ) const
inline

Definition at line 261 of file extension.h.

◆ is_signed()

bool absl::str_format_internal::ConversionChar::is_signed ( ) const
inline

Definition at line 254 of file extension.h.

◆ IsValid()

bool absl::str_format_internal::ConversionChar::IsValid ( ) const
inline

Definition at line 277 of file extension.h.

◆ radix()

int absl::str_format_internal::ConversionChar::radix ( ) const
inline

Definition at line 239 of file extension.h.

◆ upper()

bool absl::str_format_internal::ConversionChar::upper ( ) const
inline

Definition at line 247 of file extension.h.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const ConversionChar a,
const ConversionChar b 
)
friend

Definition at line 285 of file extension.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const ConversionChar v 
)
friend

Definition at line 288 of file extension.h.

◆ operator==

bool operator== ( const ConversionChar a,
const ConversionChar b 
)
friend

Definition at line 282 of file extension.h.

Member Data Documentation

◆ id_

Id absl::str_format_internal::ConversionChar::id_
private

Definition at line 303 of file extension.h.

◆ kNumValues

const size_t absl::str_format_internal::ConversionChar::kNumValues = none + 1
static

Definition at line 210 of file extension.h.

◆ kSpecs

const ConversionChar::Spec absl::str_format_internal::ConversionChar::kSpecs
staticprivate
Initial value:
= {
#define X_VAL(id)
#define X_SEP
}

Definition at line 299 of file extension.h.


The documentation for this struct was generated from the following files:


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