Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
fmt Namespace Reference

Namespaces

 internal
 

Classes

struct  AlignSpec
 
struct  AlignTypeSpec
 
class  ArgFormatter
 
class  ArgList
 
class  ArgVisitor
 
class  BasicArgFormatter
 
class  BasicArrayWriter
 
class  BasicCStringRef
 
class  BasicFormatter
 
class  BasicMemoryWriter
 
class  BasicStringRef
 
class  BasicWriter
 
class  Buffer
 
class  BufferedFile
 
struct  EmptySpec
 
class  ErrorCode
 
class  File
 
class  FormatError
 
class  FormatInt
 
struct  FormatSpec
 
class  IntFormatSpec
 
class  StrFormatSpec
 
class  SystemError
 
struct  TypeSpec
 
struct  WidthSpec
 

Typedefs

typedef BasicArrayWriter< char > ArrayWriter
 
typedef BasicCStringRef< char > CStringRef
 
typedef BasicMemoryWriter< char > MemoryWriter
 
typedef BasicStringRef< char > StringRef
 
typedef BasicArrayWriter< wchar_t > WArrayWriter
 
typedef BasicCStringRef< wchar_t > WCStringRef
 
typedef BasicMemoryWriter< wchar_t > WMemoryWriter
 
typedef BasicWriter< char > Writer
 
typedef BasicStringRef< wchar_t > WStringRef
 
typedef BasicWriter< wchar_t > WWriter
 

Enumerations

enum  {
  SIGN_FLAG = 1, PLUS_FLAG = 2, MINUS_FLAG = 4, HASH_FLAG = 8,
  CHAR_FLAG = 0x10
}
 
enum  Alignment {
  ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_CENTER,
  ALIGN_NUMERIC
}
 
enum  Color {
  BLACK, RED, GREEN, YELLOW,
  BLUE, MAGENTA, CYAN, WHITE
}
 

Functions

template<typename T >
internal::NamedArg< char > arg (StringRef name, const T &arg)
 
template<typename T >
internal::NamedArg< wchar_t > arg (WStringRef name, const T &arg)
 
template<typename Char >
void arg (StringRef, const internal::NamedArg< Char > &) FMT_DELETED_OR_UNDEFINED
 
template<typename Char >
void arg (WStringRef, const internal::NamedArg< Char > &) FMT_DELETED_OR_UNDEFINED
 
IntFormatSpec< int, TypeSpec<'b'> > bin (int value)
 
template<typename ArgFormatter >
void format (BasicFormatter< char, ArgFormatter > &f, const char *&format_str, const std::tm &tm)
 
template<typename Char , typename ArgFormatter , typename T >
void format (BasicFormatter< Char, ArgFormatter > &f, const Char *&format_str, const T &value)
 
std::string format (CStringRef format_str, ArgList args)
 
std::wstring format (WCStringRef format_str, ArgList args)
 
template<typename T >
void format_decimal (char *&buffer, T value)
 
FMT_FUNC int fprintf (std::ostream &os, CStringRef format, ArgList args)
 
FMT_API int fprintf (std::FILE *f, CStringRef format, ArgList args)
 
long getpagesize ()
 
IntFormatSpec< int, TypeSpec<'x'> > hex (int value)
 
IntFormatSpec< int, TypeSpec<'X'> > hexu (int value)
 
IntFormatSpec< int, TypeSpec<'o'> > oct (int value)
 
template<char TYPE_CODE, typename Char >
IntFormatSpec< int, AlignTypeSpec< TYPE_CODE >, Char > pad (int value, unsigned width, Char fill= ' ')
 
template<typename Char >
StrFormatSpec< Char > pad (const Char *str, unsigned width, Char fill= ' ')
 
StrFormatSpec< wchar_t > pad (const wchar_t *str, unsigned width, char fill= ' ')
 
FMT_FUNC void print (std::ostream &os, CStringRef format_str, ArgList args)
 
FMT_API void print (std::FILE *f, CStringRef format_str, ArgList args)
 
FMT_API void print (CStringRef format_str, ArgList args)
 
FMT_API void print_colored (Color c, CStringRef format, ArgList args)
 
template<typename Char >
void printf (BasicWriter< Char > &w, BasicCStringRef< Char > format, ArgList args)
 
int printf (CStringRef format, ArgList args)
 
FMT_API void report_system_error (int error_code, StringRef message) FMT_NOEXCEPT
 
std::string sprintf (CStringRef format, ArgList args)
 
std::wstring sprintf (WCStringRef format, ArgList args)
 

Variables

FMT_GCC_EXTENSION typedef long long LongLong
 
FMT_GCC_EXTENSION typedef unsigned long long ULongLong
 

Typedef Documentation

Definition at line 3608 of file format.h.

Definition at line 600 of file format.h.

Definition at line 3558 of file format.h.

Definition at line 548 of file format.h.

Definition at line 3609 of file format.h.

Definition at line 601 of file format.h.

Definition at line 3559 of file format.h.

typedef BasicWriter<char> fmt::Writer

Definition at line 426 of file format.h.

typedef BasicStringRef<wchar_t> fmt::WStringRef

Definition at line 549 of file format.h.

typedef BasicWriter<wchar_t> fmt::WWriter

Definition at line 429 of file format.h.

Enumeration Type Documentation

anonymous enum
Enumerator
SIGN_FLAG 
PLUS_FLAG 
MINUS_FLAG 
HASH_FLAG 
CHAR_FLAG 

Definition at line 1832 of file format.h.

Enumerator
ALIGN_DEFAULT 
ALIGN_LEFT 
ALIGN_RIGHT 
ALIGN_CENTER 
ALIGN_NUMERIC 

Definition at line 1826 of file format.h.

enum fmt::Color
Enumerator
BLACK 
RED 
GREEN 
YELLOW 
BLUE 
MAGENTA 
CYAN 
WHITE 

Definition at line 3667 of file format.h.

Function Documentation

template<typename T >
internal::NamedArg<char> fmt::arg ( StringRef  name,
const T &  arg 
)
inline

Returns a named argument for formatting functions.

Example**::

print("Elapsed time: {s:.2f} seconds", arg("s", 1.23));

Definition at line 3918 of file format.h.

template<typename T >
internal::NamedArg<wchar_t> fmt::arg ( WStringRef  name,
const T &  arg 
)
inline

Definition at line 3924 of file format.h.

template<typename Char >
void fmt::arg ( StringRef  ,
const internal::NamedArg< Char > &   
)
template<typename Char >
void fmt::arg ( WStringRef  ,
const internal::NamedArg< Char > &   
)
IntFormatSpec<int, TypeSpec<'b'> > fmt::bin ( int  value)

Returns an integer format specifier to format the value in base 2.

template<typename ArgFormatter >
void fmt::format ( BasicFormatter< char, ArgFormatter > &  f,
const char *&  format_str,
const std::tm &  tm 
)

Definition at line 19 of file time.h.

template<typename Char , typename ArgFormatter , typename T >
void fmt::format ( BasicFormatter< Char, ArgFormatter > &  f,
const Char *&  format_str,
const T &  value 
)

Definition at line 83 of file ostream.h.

std::string fmt::format ( CStringRef  format_str,
ArgList  args 
)
inline

Formats arguments and returns the result as a string.

Example**::

std::string message = format("The answer is {}", 42);

Definition at line 3686 of file format.h.

std::wstring fmt::format ( WCStringRef  format_str,
ArgList  args 
)
inline

Definition at line 3693 of file format.h.

template<typename T >
void fmt::format_decimal ( char *&  buffer,
value 
)
inline

Definition at line 3881 of file format.h.

FMT_API int fmt::fprintf ( std::ostream &  os,
CStringRef  format_str,
ArgList  args 
)

Prints formatted data to the stream os.

Example**::

fprintf(cerr, "Don't %s!", "panic");

Definition at line 37 of file ostream.cc.

FMT_FUNC int fmt::fprintf ( std::FILE *  f,
CStringRef  format,
ArgList  args 
)

Prints formatted data to the file f.

Example**::

fmt::fprintf(stderr, "Don't %s!", "panic");

Definition at line 891 of file format.cc.

long fmt::getpagesize ( )

Definition at line 227 of file posix.cc.

IntFormatSpec<int, TypeSpec<'x'> > fmt::hex ( int  value)

Returns an integer format specifier to format the value in base 16 using lower-case letters for the digits above 9.

IntFormatSpec<int, TypeSpec<'X'> > fmt::hexu ( int  value)

Returns an integer formatter format specifier to format in base 16 using upper-case letters for the digits above 9.

IntFormatSpec<int, TypeSpec<'o'> > fmt::oct ( int  value)

Returns an integer format specifier to format the value in base 8.

template<char TYPE_CODE, typename Char >
IntFormatSpec<int, AlignTypeSpec<TYPE_CODE>, Char> fmt::pad ( int  value,
unsigned  width,
Char  fill = ' ' 
)

Returns an integer format specifier to pad the formatted argument with the fill character to the specified width using the default (right) numeric alignment.

Example**::

MemoryWriter out; out << pad(hex(0xcafe), 8, '0'); out.str() == "0000cafe"

template<typename Char >
StrFormatSpec<Char> fmt::pad ( const Char *  str,
unsigned  width,
Char  fill = ' ' 
)
inline

Returns a string formatter that pads the formatted argument with the fill character to the specified width using the default (left) string alignment.

Example**::

std::string s = str(MemoryWriter() << pad("abc", 8)); s == "abc "

Definition at line 2098 of file format.h.

StrFormatSpec<wchar_t> fmt::pad ( const wchar_t *  str,
unsigned  width,
char  fill = ' ' 
)
inline

Definition at line 2104 of file format.h.

FMT_API void fmt::print ( std::ostream &  os,
CStringRef  format_str,
ArgList  args 
)

Prints formatted data to the stream os.

Example**::

print(cerr, "Don't {}!", "panic");

Definition at line 31 of file ostream.cc.

FMT_FUNC void fmt::print ( std::FILE *  f,
CStringRef  format_str,
ArgList  args 
)

Prints formatted data to the file f.

Example**::

print(stderr, "Don't {}!", "panic");

Definition at line 873 of file format.cc.

FMT_FUNC void fmt::print ( CStringRef  format_str,
ArgList  args 
)

Prints formatted data to stdout.

Example**::

print("Elapsed time: {0:.2f} seconds", 1.23);

Definition at line 879 of file format.cc.

FMT_FUNC void fmt::print_colored ( Color  c,
CStringRef  format,
ArgList  args 
)

Formats a string and prints it to stdout using ANSI escape sequences to specify color (experimental). Example: print_colored(fmt::RED, "Elapsed time: {0:.2f} seconds", 1.23);

Definition at line 883 of file format.cc.

template<typename Char >
void fmt::printf ( BasicWriter< Char > &  w,
BasicCStringRef< Char >  format,
ArgList  args 
)

Definition at line 3723 of file format.h.

int fmt::printf ( CStringRef  format,
ArgList  args 
)
inline

Prints formatted data to stdout.

Example**::

fmt::printf("Elapsed time: %.2f seconds", 1.23);

Definition at line 3771 of file format.h.

FMT_FUNC void fmt::report_system_error ( int  error_code,
fmt::StringRef  message 
)

Definition at line 859 of file format.cc.

std::string fmt::sprintf ( CStringRef  format,
ArgList  args 
)
inline

Formats arguments and returns the result as a string.

Example**::

std::string message = fmt::sprintf("The answer is %d", 42);

Definition at line 3737 of file format.h.

std::wstring fmt::sprintf ( WCStringRef  format,
ArgList  args 
)
inline

Definition at line 3744 of file format.h.

Variable Documentation

FMT_GCC_EXTENSION typedef long long fmt::LongLong

Definition at line 418 of file format.h.

FMT_GCC_EXTENSION typedef unsigned long long fmt::ULongLong

Definition at line 419 of file format.h.



ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:09