WPILibC++ 2025.3.1
Loading...
Searching...
No Matches
format_int Class Reference

A fast integer formatter. More...

#include <fmt/format.h>

Public Member Functions

FMT_CONSTEXPR20 format_int (int value)
 
FMT_CONSTEXPR20 format_int (long value)
 
FMT_CONSTEXPR20 format_int (long long value)
 
FMT_CONSTEXPR20 format_int (unsigned value)
 
FMT_CONSTEXPR20 format_int (unsigned long value)
 
FMT_CONSTEXPR20 format_int (unsigned long long value)
 
FMT_CONSTEXPR20 auto size () const -> size_t
 Returns the number of characters written to the output buffer.
 
FMT_CONSTEXPR20 auto data () const -> const char *
 Returns a pointer to the output buffer content.
 
FMT_CONSTEXPR20 auto c_str () const -> const char *
 Returns a pointer to the output buffer content with terminating null character appended.
 
auto str () const -> std::string
 Returns the content of the output buffer as an std::string.
 

Detailed Description

A fast integer formatter.

Constructor & Destructor Documentation

◆ format_int() [1/6]

FMT_CONSTEXPR20 format_int::format_int ( int value)
inlineexplicit

◆ format_int() [2/6]

FMT_CONSTEXPR20 format_int::format_int ( long value)
inlineexplicit

◆ format_int() [3/6]

FMT_CONSTEXPR20 format_int::format_int ( long long value)
inlineexplicit

◆ format_int() [4/6]

FMT_CONSTEXPR20 format_int::format_int ( unsigned value)
inlineexplicit

◆ format_int() [5/6]

FMT_CONSTEXPR20 format_int::format_int ( unsigned long value)
inlineexplicit

◆ format_int() [6/6]

FMT_CONSTEXPR20 format_int::format_int ( unsigned long long value)
inlineexplicit

Member Function Documentation

◆ c_str()

FMT_CONSTEXPR20 auto format_int::c_str ( ) const -> const char*
inline

Returns a pointer to the output buffer content with terminating null character appended.

◆ data()

FMT_CONSTEXPR20 auto format_int::data ( ) const -> const char*
inline

Returns a pointer to the output buffer content.

No terminating null character is appended.

◆ size()

FMT_CONSTEXPR20 auto format_int::size ( ) const -> size_t
inline

Returns the number of characters written to the output buffer.

◆ str()

auto format_int::str ( ) const -> std::string
inline

Returns the content of the output buffer as an std::string.


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