https://github.com/jvirtanen/fields
Fast C library for reading CSV and other tabular text formats
https://github.com/jvirtanen/fields
c csv tsv
Last synced: 3 months ago
JSON representation
Fast C library for reading CSV and other tabular text formats
- Host: GitHub
- URL: https://github.com/jvirtanen/fields
- Owner: jvirtanen
- License: mit
- Created: 2012-04-18T16:31:31.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-03-27T22:11:52.000Z (about 11 years ago)
- Last Synced: 2023-03-16T09:45:28.808Z (about 2 years ago)
- Topics: c, csv, tsv
- Language: C
- Homepage:
- Size: 493 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
README
Fields
======Fields is a fast C library for reading CSV and other tabular text formats.
Usage
-----Fields reads input consisting of zero or more records, each record consisting
of zero or more fields. Records are separated by record separators and fields
by field delimiters.Fields handles input internally as UTF-8. The record separator may be either
a carriage return (CR, Mac OS), a line feed (LF, Unix) or a CRLF (Windows).
The field delimiter may be any ASCII character except CR or LF.A field may begin and end with a quote character. A quoted field may contain
embedded record separators, field delimiters and quote characters. Each quote
character within a quoted field must be escaped with another quote character.
The quote character may be any ASCII character except the field delimiter, CR
or LF. If the quote character is set to the null character (NUL), quoting is
disabled.Building
--------Building Fields requires a C99 compiler and GNU Make.
Build Fields:
make
Installation
------------Install Fields to `/usr/local`, the default installation location:
make install
Install Fields to `$HOME`, an alternative installation location:
make install PREFIX=$HOME
Development
-----------Running Fields' tests requires Python 2.6.
Run Fields' tests:
make test
History
-------See `History.md`.
License
-------Fields is released under the MIT License. See `LICENSE` for details.