00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef __TGDCSV_H__
00029 #define __TGDCSV_H__
00030
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041
00049 typedef struct {
00050
00052 long width;
00054 long height;
00056 char ***cell;
00057
00058 } CsvTable;
00059
00072 CsvTable *csvLoadBuffer (long len, const unsigned char *data, char cend,
00073 char qchr);
00074
00088 CsvTable *csvLoadFile (const char *file_name, char cend, char qchr);
00089
00100 CsvTable *csvCreateTable (long width, long height);
00101
00110 void csvFree (CsvTable *csv);
00111
00124 int csvSaveCSV (const CsvTable *csv, const char *fname, char cend, char qchr);
00125
00136 int csvSaveHTML (const CsvTable *csv, const char *file_name);
00137
00150 int csvEditCell (const CsvTable *csv, long x, long y, const char *new_text);
00151
00163 long csvSearchCol (const CsvTable *csv, long col, const char *str);
00164
00165 #ifdef __cplusplus
00166 }
00167 #endif
00168
00169 #endif