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:

Go to the source code of this file.

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

#define UTF8_ACCEPT   0u

Definition at line 242 of file encodingstest.cpp.

Function Documentation

static unsigned decode ( unsigned *  state,
unsigned *  codep,
unsigned  byte 
)
inlinestatic

Definition at line 265 of file encodingstest.cpp.

TEST ( EncodingsTest  ,
UTF8   
)

Definition at line 285 of file encodingstest.cpp.

TEST ( EncodingsTest  ,
UTF16   
)

Definition at line 337 of file encodingstest.cpp.

TEST ( EncodingsTest  ,
UTF32   
)

Definition at line 397 of file encodingstest.cpp.

TEST ( EncodingsTest  ,
ASCII   
)

Definition at line 428 of file encodingstest.cpp.

Variable Documentation

const unsigned kCodepointRanges[]
static

Definition at line 26 of file encodingstest.cpp.

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,
}

Definition at line 244 of file encodingstest.cpp.



choreo_rapidjson
Author(s):
autogenerated on Thu Jul 18 2019 03:59:09