PLCnext API Documentation 25.0.2.69
Public Types | Static Public Member Functions | List of all members
Arp::Base::Core::BasicFormatter< C, A > Class Template Reference

This class encapsulates formatting operations which are based on the open source library libfmt formerly known as cppformat. More...

#include <BasicFormatter.hxx>

Public Types

using CharType = C
 The char type provided as template argument.
 
using StringType = BasicString< C, A >
 The string type determined by template argument.
 
using ExceptionHandler = void(*)(const char *, const char *)
 The exception handler signature.
 

Static Public Member Functions

template<typename... Args>
static StringType FormatCommon (ExceptionHandler exceptionHandler, const StringType &format, Args &&... args)
 Uses common CLR syntax (.Net) for the placeholders in the format string like '{0}'.
 
template<typename... Args>
static StringType FormatCommon (ExceptionHandler exceptionHandler, const CharType *format, Args &&... args)
 Uses common CLR syntax (.Net) for the placeholders in the format string like '{0}'.
 
template<typename... Args>
static StringType FormatPrintf (ExceptionHandler exceptionHandler, const StringType &format, Args &&... args)
 Uses Ansi-C printf syntax for the placeholders in the format string like 's'.
 
template<typename... Args>
static StringType FormatPrintf (ExceptionHandler exceptionHandler, const CharType *format, Args &&... args)
 Uses Ansi-C printf syntax for the placeholders in the format string like 's'.
 

Detailed Description

template<typename C, typename A = std::allocator<C>>
class Arp::Base::Core::BasicFormatter< C, A >

This class encapsulates formatting operations which are based on the open source library libfmt formerly known as cppformat.

Template Parameters
CThe char type
AThe characters allocator type

The documentation for this class was generated from the following file: