Clementine
Public Member Functions | List of all members
format_int Class Reference

Fast integer formatter. More...

#include <format.h>

Public Member Functions

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

Detailed Description

Fast integer formatter.

Member Function Documentation

◆ data()

const char* format_int::data ( ) const
inline

Returns a pointer to the output buffer content.

No terminating null character is appended.

◆ size()

size_t format_int::size ( ) const
inline

Returns the number of characters written to the output buffer.

◆ str()

std::string format_int::str ( ) const
inline

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


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