openMSX
Typedefs | Functions
String32.hh File Reference
#include <cassert>
#include <cstdint>
#include <limits>
#include <type_traits>
Include dependency graph for String32.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using String32 = std::conditional_t<(sizeof(char *) > sizeof(uint32_t)), uint32_t, const char * >
 

Functions

void toString32 (const char *buffer, const char *str, uint32_t &result)
 
void toString32 (const char *, const char *str, const char *&result)
 
const char * fromString32 (const char *buffer, uint32_t str32)
 
const char * fromString32 (const char *, const char *str32)
 

Typedef Documentation

◆ String32

using String32 = std::conditional_t< (sizeof(char*) > sizeof(uint32_t)), uint32_t, const char*>

Definition at line 22 of file String32.hh.

Function Documentation

◆ fromString32() [1/2]

const char* fromString32 ( const char *  buffer,
uint32_t  str32 
)
inline

◆ fromString32() [2/2]

const char* fromString32 ( const char *  ,
const char *  str32 
)
inline

Definition at line 38 of file String32.hh.

◆ toString32() [1/2]

void toString32 ( const char *  buffer,
const char *  str,
uint32_t &  result 
)
inline

Definition at line 25 of file String32.hh.

References gl::max().

Referenced by openmsx::DBParser::start(), and openmsx::DBParser::text().

◆ toString32() [2/2]

void toString32 ( const char *  ,
const char *  str,
const char *&  result 
)
inline

Definition at line 30 of file String32.hh.