RetroArch
Classes | Functions
itoatest.cpp File Reference
#include "unittest.h"
#include "rapidjson/internal/itoa.h"
Include dependency graph for itoatest.cpp:

Classes

struct  Traits< T >
 
struct  Traits< uint32_t >
 
struct  Traits< int32_t >
 
struct  Traits< uint64_t >
 
struct  Traits< int64_t >
 

Functions

template<typename T >
static void VerifyValue (T value, void(*f)(T, char *), char *(*g)(T, char *))
 
template<typename T >
static void Verify (void(*f)(T, char *), char *(*g)(T, char *))
 
static void u32toa_naive (uint32_t value, char *buffer)
 
static void i32toa_naive (int32_t value, char *buffer)
 
static void u64toa_naive (uint64_t value, char *buffer)
 
static void i64toa_naive (int64_t value, char *buffer)
 
 TEST (itoa, u32toa)
 
 TEST (itoa, i32toa)
 
 TEST (itoa, u64toa)
 
 TEST (itoa, i64toa)
 

Function Documentation

◆ i32toa_naive()

static void i32toa_naive ( int32_t  value,
char *  buffer 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ i64toa_naive()

static void i64toa_naive ( int64_t  value,
char *  buffer 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TEST() [1/4]

TEST ( itoa  ,
u32toa   
)
Here is the call graph for this function:

◆ TEST() [2/4]

TEST ( itoa  ,
i32toa   
)
Here is the call graph for this function:

◆ TEST() [3/4]

TEST ( itoa  ,
u64toa   
)
Here is the call graph for this function:

◆ TEST() [4/4]

TEST ( itoa  ,
i64toa   
)
Here is the call graph for this function:

◆ u32toa_naive()

static void u32toa_naive ( uint32_t  value,
char *  buffer 
)
static
Here is the caller graph for this function:

◆ u64toa_naive()

static void u64toa_naive ( uint64_t  value,
char *  buffer 
)
static
Here is the caller graph for this function:

◆ Verify()

template<typename T >
static void Verify ( void(*)(T, char *)  f,
char *(*)(T, char *)  g 
)
static
Here is the caller graph for this function:

◆ VerifyValue()

template<typename T >
static void VerifyValue ( T  value,
void(*)(T, char *)  f,
char *(*)(T, char *)  g 
)
static