[][src]Function spatialite_sys::gaiaTextReaderAlloc

pub unsafe extern "C" fn gaiaTextReaderAlloc(
    path: *const c_char,
    field_separator: c_char,
    text_separator: c_char,
    decimal_separator: c_char,
    first_line_titles: c_int,
    encoding: *const c_char
) -> gaiaTextReaderPtr

Creates a Text Reader object

\param path to the corresponding file-system file. \param field_separator the character acting as a separator between adjacent fields. \param text_separator the character used to quote text strings. \param decimal_separator the character used as a separator between integer and decimal digits for real numeric values. \param first_line_titles 0 if the first line contains regular values: any other value if the first line contains column names. \param encoding GNU ICONV name identifying the input charset encoding.

\return the pointer to the newly created Text Reader object: NULL on failure

\sa gaiaTextReaderDestroy, gaiaTextReaderParse, gaiaTextReaderGetRow, gaiaTextReaderFetchField

\note you are responsible to destroy (before or after) any allocated Text Reader object.