|
TPCCLIB
|
Find field contents in CSV struct. More...
#include "tpcclibConfig.h"#include "tpcextensions.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <strings.h>#include <ctype.h>#include <math.h>#include <time.h>#include "tpccsv.h"Go to the source code of this file.
Functions | |
| int | csvFindField (CSV *csv, const char *s, int start_index) |
| int | csvSearchField (CSV *csv, const char *s, int start_index) |
| int csvFindField | ( | CSV * | csv, |
| const char * | s, | ||
| int | start_index ) |
Find the CSV field with specified content. Search is case-insensitive, but otherwise match must be exact.
| csv | Pointer to CSV. |
| s | Field value to be searched for. |
| start_index | CSV item index [0..nr-1] from which search is started. |
Definition at line 27 of file csvfind.c.
Referenced by parReadRES(), and tacRead4DM().
| int csvSearchField | ( | CSV * | csv, |
| const char * | s, | ||
| int | start_index ) |
Find the CSV field which contains the given search string. Search is case-insensitive.
| csv | Pointer to CSV. |
| s | String to be searched for inside field values. |
| start_index | CSV field index [0..nr-1] from which search is started. |
Definition at line 50 of file csvfind.c.
Referenced by parReadFIT(), and tacRead4DM().