Complete documentation of public header
This commit is contained in:
parent
5f50b57b36
commit
1156c9debf
@ -40,7 +40,7 @@ easycsv_init_errormsg(const char*,
|
|||||||
void
|
void
|
||||||
easycsv_free(easycsv*);
|
easycsv_free(easycsv*);
|
||||||
|
|
||||||
/*** Access ***/
|
/*** Access, find ***/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find value and returns row and column
|
* Find value and returns row and column
|
||||||
@ -66,6 +66,8 @@ int
|
|||||||
easycsv_findnumvalue(const easycsv*,
|
easycsv_findnumvalue(const easycsv*,
|
||||||
const char*);
|
const char*);
|
||||||
|
|
||||||
|
/*** Access, read ***/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read string in a specific cell
|
* Read string in a specific cell
|
||||||
* @param[in] constant pointer to easycsv structure
|
* @param[in] constant pointer to easycsv structure
|
||||||
@ -90,6 +92,8 @@ easycsv_readcolumnvalue(const easycsv*,
|
|||||||
const char*,
|
const char*,
|
||||||
unsigned int);
|
unsigned int);
|
||||||
|
|
||||||
|
/*** Access, print ***/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return number of rows
|
* Return number of rows
|
||||||
* @param[in] constant pointer to easycsv structure
|
* @param[in] constant pointer to easycsv structure
|
||||||
@ -206,33 +210,59 @@ easycsv_insertcolumnvaluemode(easycsv*,
|
|||||||
const char*,
|
const char*,
|
||||||
EASYCSV_VALMODE);
|
EASYCSV_VALMODE);
|
||||||
|
|
||||||
/* Modifications, push */
|
/*** Modifications, push ***/
|
||||||
|
|
||||||
/* Create new column on the RHS of an existing one */
|
/**
|
||||||
|
* Create new column on the right-hand side of an existing one
|
||||||
|
* @param[in] pointer to easycsv structure
|
||||||
|
* @param[in] column value
|
||||||
|
* @return easycsv error code
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
easycsv_pushcolumn(easycsv*,
|
easycsv_pushcolumn(easycsv*,
|
||||||
const char*);
|
const char*);
|
||||||
|
|
||||||
/* Insert string in a vacant cell under a named column */
|
/**
|
||||||
|
* Insert string in a vacant cell under a named column
|
||||||
|
* @param[in] pointer to easycsv structure
|
||||||
|
* @param[in] column value
|
||||||
|
* @param[in] cell value
|
||||||
|
* @return easycsv error code
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
easycsv_pushcolumnvalue(easycsv*,
|
easycsv_pushcolumnvalue(easycsv*,
|
||||||
const char*,
|
const char*,
|
||||||
const char*);
|
const char*);
|
||||||
|
|
||||||
/* Modifications, delete */
|
/*** Modifications, delete ***/
|
||||||
|
|
||||||
/* Delete CSV value */
|
/**
|
||||||
|
* Delete cell value
|
||||||
|
* @param[in] pointer to easycsv structure
|
||||||
|
* @param[in] row number
|
||||||
|
* @param[in] column number
|
||||||
|
* @return easycsv error code
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
easycsv_deletevalue(easycsv*,
|
easycsv_deletevalue(easycsv*,
|
||||||
const unsigned int,
|
unsigned int,
|
||||||
const unsigned int);
|
unsigned int);
|
||||||
|
|
||||||
/* Delete numbered column */
|
/**
|
||||||
|
* Delete numbered column
|
||||||
|
* @param[in] pointer to easycsv structure
|
||||||
|
* @param[in] column number
|
||||||
|
* @return easycsv error code
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
easycsv_deletecolumnint(easycsv*,
|
easycsv_deletecolumnint(easycsv*,
|
||||||
const unsigned int);
|
unsigned int);
|
||||||
|
|
||||||
/* Delete named column */
|
/** Delete named column
|
||||||
|
* @param[in] pointer to easycsv structure
|
||||||
|
* @param[in] column value
|
||||||
|
* @return easycsv error code
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
easycsv_deletecolumnstr(easycsv*,
|
easycsv_deletecolumnstr(easycsv*,
|
||||||
const char*);
|
const char*);
|
||||||
@ -241,15 +271,25 @@ easycsv_deletecolumnstr(easycsv*,
|
|||||||
|
|
||||||
/* Delete named row */
|
/* Delete named row */
|
||||||
|
|
||||||
|
/*** Modifications, append ***/
|
||||||
|
|
||||||
|
/**
|
||||||
/* Modifications, append */
|
* Append two CSV files
|
||||||
|
* @param[in] destination CSV file
|
||||||
|
* @param[in] source CSV file
|
||||||
|
* @return easycsv error code
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
easycsv_appendcsv(easycsv*,
|
easycsv_appendcsv(easycsv*,
|
||||||
easycsv*);
|
easycsv*);
|
||||||
|
|
||||||
/*** Modifications, miscellenaeous ***/
|
/*** Modifications, miscellenaeous ***/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compress a CSV file
|
||||||
|
* @param[in] pointer to easycsv structure
|
||||||
|
* @return easycsv error code
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
easycsv_compress(easycsv*);
|
easycsv_compress(easycsv*);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user