csv_file Struct Reference

Structure to implement CSV file handle. More...

Data Fields

FILE * f
 CSV file.
 
char * sep
 column separator characters
 
char * quot
 text quoting characters
 
int isdos
 true, when DOS format detected
 
int maxl
 max.
 
char * line
 line buffer
 
long pos0
 file position for rewind
 
int maxc
 max.
 
int ncols
 number of columns
 
char ** cols
 column buffer
 

Detailed Description

Structure to implement CSV file handle.

Definition at line 43 of file csvtable.c.

Field Documentation

◆ cols

char** csv_file::cols

column buffer

Definition at line 53 of file csvtable.c.

Referenced by csv_close(), csv_coldata(), csv_getline(), csv_import_func(), csv_ncols(), csv_open(), and csv_vtab_connect().

◆ f

FILE* csv_file::f

CSV file.

Definition at line 44 of file csvtable.c.

Referenced by csv_close(), csv_eof(), csv_getline(), csv_open(), csv_rewind(), csv_seek(), and csv_tell().

◆ isdos

int csv_file::isdos

true, when DOS format detected

Definition at line 47 of file csvtable.c.

Referenced by csv_getline(), and csv_open().

◆ line

char* csv_file::line

line buffer

Definition at line 49 of file csvtable.c.

Referenced by csv_close(), csv_getline(), and csv_open().

◆ maxc

int csv_file::maxc

max.

capacity of column buffer

Definition at line 51 of file csvtable.c.

Referenced by csv_getline(), and csv_open().

◆ maxl

int csv_file::maxl

max.

capacity of line buffer

Definition at line 48 of file csvtable.c.

Referenced by csv_getline(), and csv_open().

◆ ncols

int csv_file::ncols

number of columns

Definition at line 52 of file csvtable.c.

Referenced by csv_getline(), csv_import_func(), csv_ncols(), csv_open(), and csv_vtab_connect().

◆ pos0

long csv_file::pos0

file position for rewind

Definition at line 50 of file csvtable.c.

Referenced by csv_guess(), csv_import_func(), csv_open(), csv_rewind(), and csv_vtab_connect().

◆ quot

char* csv_file::quot

text quoting characters

Definition at line 46 of file csvtable.c.

Referenced by csv_close(), csv_getline(), csv_guess(), csv_import_func(), csv_open(), and csv_vtab_connect().

◆ sep

char* csv_file::sep

column separator characters

Definition at line 45 of file csvtable.c.

Referenced by csv_close(), csv_getline(), csv_guess(), csv_import_func(), csv_open(), and csv_vtab_connect().


The documentation for this struct was generated from the following file:

Generated on Sun Nov 26 2023 by doxygen.
Contact: chw@ch-werner.de