24 printf(
"Unable to read TXT file.\n");
62 printf(
"CODEPAGE not found.\n");
118 printf(
"CPINFO not found.\n");
148 printf(
"Memory allocation failure\n");
159 printf(
"Unable to read TXT file.\n");
191 printf(
"MBTABLE not found.\n");
208 if (!*
p ||
p[0] ==
';')
222 if (uni_char > 0xFFFF)
224 printf(
"Wrong unicode char value: %u (line: %u)\n", uni_char,
line);
262 printf(
"Memory allocation failure\n");
273 tmp[
index] = default_char;
279 tmp[
index] = default_char;
286 printf(
"Unable to read TXT file.\n");
318 printf(
"WCTABLE not found.\n");
335 if (!*
p ||
p[0] ==
';')
339 if (uni_char > 0xFFFF)
341 printf(
"Wrong unicode char value: %u (line: %u)\n", uni_char,
line);
349 if ((is_dbcs &&
cp_char > 0xFFFF) || (!is_dbcs &&
cp_char > 0xFF))
401 printf(
"Memory allocation failure\n");
412 printf(
"Unable to read TXT file.\n");
444 printf(
"GLYPHTABLE not found.\n");
461 if (!*
p ||
p[0] ==
';')
475 if (uni_char > 0xFFFF)
477 printf(
"Wrong unicode char value: %u (line: %u)\n", uni_char,
line);
UINT32 strtoul(const char *String, char **Terminator, UINT32 Base)
uint16_t * txt_get_wc_table(const char *file_path, uint16_t default_char, int is_dbcs)
char * strstr(char *String1, char *String2)
GLuint GLuint GLsizei count
GLenum GLsizei GLenum GLenum const GLvoid * table
unsigned short int uint16_t
struct _NLS_FILE_HEADER NLS_FILE_HEADER
GLenum GLuint GLenum GLsizei const GLchar * buf
uint16_t * txt_get_mb_table(const char *file_path, uint16_t uni_default_char)
int txt_get_header(const char *file_path, NLS_FILE_HEADER *header)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
static const WCHAR Cleanup[]
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
uint16_t * txt_get_glyph_table(const char *file_path, uint16_t uni_default_char)
TCHAR file_path[MAX_PATH]