Apycom jQuery Menus

textfile.h File Reference

#include "windows.h"
#include "tchar.h"
#include "wchar.h"
#include "malloc.h"
#include "string.h"
#include "assert.h"
Include dependency graph for textfile.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TextFile

Defines

#define _CRT_SECURE_NO_WARNINGS
#define base_strlen(s)   strlen (s)
#define C_TO_LEAD(c)   (LEAD_OFFSET + ((c) >> 10))
#define C_TO_TRAIL(c)   (0xDC00 + ((c) & 0x3FF))
#define Hnew   new
#define IDS_CANNOT_OPEN_FILE   20003
#define IDS_CANNOT_OPEN_FILE_FOR_WRITING   20004
#define IDS_FILE_READ_ERROR   20001
#define IDS_FILE_WRITE_ERROR   20002
#define LEAD_OFFSET   (0xD800 - (0x10000 >> 10))
#define SP_TO_C(lead, trail)   (((lead) << 10) + (trail) + SURROGATE_OFFSET)
#define SURROGATE_OFFSET   (0x10000 - (0xD800 << 10) - 0xDC00)
#define T2B(x)   ((x) * sizeof (TCHAR))
#define TF_ANSI   1
#define TF_APPEND   3
#define TF_EOF   -1
#define TF_ERROR   -2
#define TF_NO_BOM_CHECK   0x200
#define TF_READ   1
#define TF_UNIX   0x100
#define TF_UTF16BE   3
#define TF_UTF16LE   2
#define TF_UTF8   4
#define TF_WRITE   2
#define tsizeof(x)   (sizeof (x) / sizeof (TCHAR))
#define WIN32_LEAN_AND_MEAN

Functions

void * alloc_block (void *current_block, int datalen)
char * AtoA (const char *a)
void * copy_block (const void *block)
TCHAR * copy_string (const TCHAR *s)
TCHAR *_cdecl FormatPString (const TCHAR *message,...)
void free_block (void *block)
int get_blocklen (const void *block)
int get_buflen (const void *block)
TCHAR * vFormatPString (const TCHAR *message, va_list ap)

Define Documentation

#define _CRT_SECURE_NO_WARNINGS

Definition at line 9 of file textfile.h.

#define base_strlen (   s  )     strlen (s)

Definition at line 22 of file textfile.h.

#define C_TO_LEAD (   c  )     (LEAD_OFFSET + ((c) >> 10))

Definition at line 86 of file textfile.h.

#define C_TO_TRAIL (   c  )     (0xDC00 + ((c) & 0x3FF))

Definition at line 87 of file textfile.h.

#define Hnew   new

Definition at line 23 of file textfile.h.

#define IDS_CANNOT_OPEN_FILE   20003

Definition at line 6 of file textfile.h.

#define IDS_CANNOT_OPEN_FILE_FOR_WRITING   20004

Definition at line 7 of file textfile.h.

#define IDS_FILE_READ_ERROR   20001

Definition at line 4 of file textfile.h.

#define IDS_FILE_WRITE_ERROR   20002

Definition at line 5 of file textfile.h.

#define LEAD_OFFSET   (0xD800 - (0x10000 >> 10))

Definition at line 84 of file textfile.h.

#define SP_TO_C (   lead,
  trail 
)    (((lead) << 10) + (trail) + SURROGATE_OFFSET)

Definition at line 88 of file textfile.h.

#define SURROGATE_OFFSET   (0x10000 - (0xD800 << 10) - 0xDC00)

Definition at line 85 of file textfile.h.

#define T2B (   x  )     ((x) * sizeof (TCHAR))

Definition at line 25 of file textfile.h.

#define TF_ANSI   1

Definition at line 67 of file textfile.h.

#define TF_APPEND   3

Definition at line 64 of file textfile.h.

#define TF_EOF   -1

Definition at line 77 of file textfile.h.

#define TF_ERROR   -2

Definition at line 78 of file textfile.h.

#define TF_NO_BOM_CHECK   0x200

Definition at line 73 of file textfile.h.

#define TF_READ   1

Definition at line 62 of file textfile.h.

#define TF_UNIX   0x100

Definition at line 72 of file textfile.h.

#define TF_UTF16BE   3

Definition at line 69 of file textfile.h.

#define TF_UTF16LE   2

Definition at line 68 of file textfile.h.

#define TF_UTF8   4

Definition at line 70 of file textfile.h.

#define TF_WRITE   2

Definition at line 63 of file textfile.h.

#define tsizeof (   x  )     (sizeof (x) / sizeof (TCHAR))

Definition at line 24 of file textfile.h.

#define WIN32_LEAN_AND_MEAN

Definition at line 11 of file textfile.h.


Function Documentation

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.

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.

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.

TCHAR* vFormatPString ( const TCHAR *  message,
va_list  ap 
)

Definition at line 18 of file textfile.cpp.

Thibault LELORE