#include "encoding_helpers.h"
Go to the source code of this file.
Functions | |
result_t | check_string (const unsigned char *string, const int length, const char check_utf8, const char check_null) |
static unsigned char | isLegalUTF8 (const unsigned char *source, int length) |
Variables | |
static const char | trailingBytesForUTF8 [256] |
result_t check_string | ( | const unsigned char * | string, | |
const int | length, | |||
const char | check_utf8, | |||
const char | check_null | |||
) |
Definition at line 90 of file encoding_helpers.c.
static unsigned char isLegalUTF8 | ( | const unsigned char * | source, | |
int | length | |||
) | [static] |
Definition at line 68 of file encoding_helpers.c.
const char trailingBytesForUTF8[256] [static] |
{ 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, 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, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5 }
Definition at line 45 of file encoding_helpers.c.