Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
fmt::FormatInt Class Reference

#include <format.h>

Public Member Functions

 FormatInt (int value)
 
 FormatInt (long value)
 
 FormatInt (LongLong value)
 
 FormatInt (unsigned value)
 
 FormatInt (unsigned long value)
 
 FormatInt (ULongLong value)
 
std::size_t size () const
 
const char * data () const
 
const char * c_str () const
 
std::string str () const
 

Private Types

enum  { BUFFER_SIZE = std::numeric_limits<ULongLong>::digits10 + 3 }
 

Private Member Functions

char * format_decimal (ULongLong value)
 
void FormatSigned (LongLong value)
 

Private Attributes

char buffer_ [BUFFER_SIZE]
 
char * str_
 

Detailed Description

Fast integer formatter.

Definition at line 3480 of file format.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
BUFFER_SIZE 

Definition at line 3484 of file format.h.

Constructor & Destructor Documentation

◆ FormatInt() [1/6]

fmt::FormatInt::FormatInt ( int value)
inlineexplicit

Definition at line 3521 of file format.h.

+ Here is the call graph for this function:

◆ FormatInt() [2/6]

fmt::FormatInt::FormatInt ( long value)
inlineexplicit

Definition at line 3522 of file format.h.

+ Here is the call graph for this function:

◆ FormatInt() [3/6]

fmt::FormatInt::FormatInt ( LongLong value)
inlineexplicit

Definition at line 3523 of file format.h.

+ Here is the call graph for this function:

◆ FormatInt() [4/6]

fmt::FormatInt::FormatInt ( unsigned value)
inlineexplicit

Definition at line 3524 of file format.h.

+ Here is the call graph for this function:

◆ FormatInt() [5/6]

fmt::FormatInt::FormatInt ( unsigned long value)
inlineexplicit

Definition at line 3525 of file format.h.

+ Here is the call graph for this function:

◆ FormatInt() [6/6]

fmt::FormatInt::FormatInt ( ULongLong value)
inlineexplicit

Definition at line 3526 of file format.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ c_str()

const char * fmt::FormatInt::c_str ( ) const
inline

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

Definition at line 3543 of file format.h.

◆ data()

const char * fmt::FormatInt::data ( ) const
inline

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

Definition at line 3537 of file format.h.

◆ format_decimal()

char * fmt::FormatInt::format_decimal ( ULongLong value)
inlineprivate

Definition at line 3489 of file format.h.

+ Here is the caller graph for this function:

◆ FormatSigned()

void fmt::FormatInt::FormatSigned ( LongLong value)
inlineprivate

Definition at line 3510 of file format.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ size()

std::size_t fmt::FormatInt::size ( ) const
inline

Returns the number of characters written to the output buffer.

Definition at line 3529 of file format.h.

+ Here is the call graph for this function:

◆ str()

std::string fmt::FormatInt::str ( ) const
inline

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

Definition at line 3553 of file format.h.

Member Data Documentation

◆ buffer_

char fmt::FormatInt::buffer_[BUFFER_SIZE]
mutableprivate

Definition at line 3485 of file format.h.

◆ str_

char* fmt::FormatInt::str_
private

Definition at line 3486 of file format.h.


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