#include "textfile.h"
Go to the source code of this file.
Defines | |
| #define | DB_SIG 'GSDB' |
Functions | |
| void * | alloc_block (void *current_block, int datalen) |
| char * | AtoA (const char *a) |
| static bool | check_bom (TCHAR *filename, HANDLE hFile, char *bom) |
| void * | copy_block (const void *block) |
| TCHAR * | copy_string (const TCHAR *s) |
| static void | flip_words (WCHAR *w, int nchars) |
| TCHAR *_cdecl | FormatPString (const TCHAR *message,...) |
| void | free_block (void *block) |
| int | get_blocklen (const void *block) |
| int | get_buflen (const void *block) |
| int | linebuf_AtoU (const char *a, int len, WCHAR **u, int code_page, const char *unknown_char, BOOL *data_lost) |
| int | linebuf_UtoA (const WCHAR *u, int len, char **a, int code_page, const char *unknown_char, BOOL *data_lost) |
| static int | read_1_byte (TCHAR *filename, HANDLE hFile) |
| WCHAR * | t_memchr (WCHAR *p, int c, size_t n) |
| BYTE * | t_memchr (BYTE *p, int c, size_t n) |
| template<typename T > | |
| int | TReadChar (TextFileReader *tf, int strip_cr) |
| template<typename T > | |
| int | TReadLine (TextFileReader *tf, T **line_buf, bool BE) |
| static int | UtoUTF8 (int ch, BYTE b[4]) |
| TCHAR * | vFormatPString (const TCHAR *message, va_list ap) |
Variables | |
| HMODULE | ghResInst |
| #define DB_SIG 'GSDB' |
Definition at line 64 of file textfile.cpp.
| void* alloc_block | ( | void * | current_block, | |
| int | datalen | |||
| ) |
Definition at line 76 of file textfile.cpp.
| char* AtoA | ( | const char * | a | ) |
Definition at line 54 of file textfile.cpp.
| static bool check_bom | ( | TCHAR * | filename, | |
| HANDLE | hFile, | |||
| char * | bom | |||
| ) | [static] |
Definition at line 1408 of file textfile.cpp.
| void* copy_block | ( | const void * | block | ) |
Definition at line 116 of file textfile.cpp.
| TCHAR* copy_string | ( | const TCHAR * | s | ) |
Definition at line 39 of file textfile.cpp.
| static void flip_words | ( | WCHAR * | w, | |
| int | nchars | |||
| ) | [inline, static] |
Definition at line 163 of file textfile.cpp.
| TCHAR* _cdecl FormatPString | ( | const TCHAR * | message, | |
| ... | ||||
| ) |
Definition at line 28 of file textfile.cpp.
| void free_block | ( | void * | block | ) |
Definition at line 102 of file textfile.cpp.
| int get_blocklen | ( | const void * | block | ) |
Definition at line 135 of file textfile.cpp.
| int get_buflen | ( | const void * | block | ) |
Definition at line 148 of file textfile.cpp.
| int linebuf_AtoU | ( | const char * | a, | |
| int | len, | |||
| WCHAR ** | u, | |||
| int | code_page, | |||
| const char * | unknown_char, | |||
| BOOL * | data_lost | |||
| ) |
Definition at line 194 of file textfile.cpp.
| int linebuf_UtoA | ( | const WCHAR * | u, | |
| int | len, | |||
| char ** | a, | |||
| int | code_page, | |||
| const char * | unknown_char, | |||
| BOOL * | data_lost | |||
| ) |
Definition at line 178 of file textfile.cpp.
| static int read_1_byte | ( | TCHAR * | filename, | |
| HANDLE | hFile | |||
| ) | [static] |
Definition at line 1390 of file textfile.cpp.
| WCHAR* t_memchr | ( | WCHAR * | p, | |
| int | c, | |||
| size_t | n | |||
| ) | [inline] |
Definition at line 301 of file textfile.cpp.
| BYTE* t_memchr | ( | BYTE * | p, | |
| int | c, | |||
| size_t | n | |||
| ) | [inline] |
Definition at line 300 of file textfile.cpp.
| int TReadChar | ( | TextFileReader * | tf, | |
| int | strip_cr | |||
| ) |
Definition at line 356 of file textfile.cpp.
| int TReadLine | ( | TextFileReader * | tf, | |
| T ** | line_buf, | |||
| bool | BE | |||
| ) |
Definition at line 303 of file textfile.cpp.
| static int UtoUTF8 | ( | int | ch, | |
| BYTE | b[4] | |||
| ) | [inline, static] |
Definition at line 1044 of file textfile.cpp.
| TCHAR* vFormatPString | ( | const TCHAR * | message, | |
| va_list | ap | |||
| ) |
Definition at line 18 of file textfile.cpp.
| HMODULE ghResInst |
Definition at line 14 of file textfile.cpp.