RetroArch
Macros | Functions | Variables
encodingstest.cpp File Reference
#include "unittest.h"
#include "rapidjson/filereadstream.h"
#include "rapidjson/filewritestream.h"
#include "rapidjson/encodedstream.h"
#include "rapidjson/stringbuffer.h"
Include dependency graph for encodingstest.cpp:

Macros

#define UTF8_ACCEPT   0u
 

Functions

static unsigned decode (unsigned *state, unsigned *codep, unsigned byte)
 
 TEST (EncodingsTest, UTF8)
 
 TEST (EncodingsTest, UTF16)
 
 TEST (EncodingsTest, UTF32)
 
 TEST (EncodingsTest, ASCII)
 

Variables

static const unsigned kCodepointRanges []
 
static const unsigned char utf8d []
 

Macro Definition Documentation

◆ UTF8_ACCEPT

#define UTF8_ACCEPT   0u

Function Documentation

◆ decode()

static unsigned decode ( unsigned *  state,
unsigned *  codep,
unsigned  byte 
)
inlinestatic
Here is the caller graph for this function:

◆ TEST() [1/4]

TEST ( EncodingsTest  ,
UTF8   
)
Here is the call graph for this function:

◆ TEST() [2/4]

TEST ( EncodingsTest  ,
UTF16   
)
Here is the call graph for this function:

◆ TEST() [3/4]

TEST ( EncodingsTest  ,
UTF32   
)
Here is the call graph for this function:

◆ TEST() [4/4]

TEST ( EncodingsTest  ,
ASCII   
)
Here is the call graph for this function:

Variable Documentation

◆ kCodepointRanges

const unsigned kCodepointRanges[]
static

◆ utf8d

const unsigned char utf8d[]
static
Initial value:
= {
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
8,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
10,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3, 11,6,6,6,5,8,8,8,8,8,8,8,8,8,8,8,
0,12,24,36,60,96,84,12,12,12,48,72, 12,12,12,12,12,12,12,12,12,12,12,12,
12, 0,12,12,12,12,12, 0,12, 0,12,12, 12,24,12,12,12,12,12,24,12,24,12,12,
12,12,12,12,12,12,12,24,12,12,12,12, 12,24,12,12,12,12,12,12,12,24,12,12,
12,12,12,12,12,12,12,36,12,36,12,12, 12,36,12,12,12,12,12,36,12,36,12,12,
12,36,12,12,12,12,12,12,12,12,12,12,
}