Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jfjlaros/textparser
Line based text parser.
https://github.com/jfjlaros/textparser
arduino csv delimited line tsv type-safe value
Last synced: 19 days ago
JSON representation
Line based text parser.
- Host: GitHub
- URL: https://github.com/jfjlaros/textparser
- Owner: jfjlaros
- License: mit
- Created: 2022-08-10T16:37:25.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-21T14:08:19.000Z (almost 2 years ago)
- Last Synced: 2024-11-13T03:20:53.925Z (3 months ago)
- Topics: arduino, csv, delimited, line, tsv, type-safe, value
- Language: C++
- Homepage:
- Size: 59.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Line based text parser.
=======================.. image:: https://img.shields.io/github/last-commit/jfjlaros/textparser.svg
:target: https://github.com/jfjlaros/textparser/graphs/commit-activity
.. image:: https://github.com/jfjlaros/textparser/actions/workflows/arduino-package.yml/badge.svg
:target: https://github.com/jfjlaros/textparser/actions/workflows/arduino-package.yml
.. image:: https://readthedocs.org/projects/arduinotextparser/badge/?version=latest
:target: https://arduinotextparser.readthedocs.io/en/latest
.. image:: https://img.shields.io/github/release-date/jfjlaros/textparser.svg
:target: https://github.com/jfjlaros/textparser/releases
.. image:: https://img.shields.io/github/release/jfjlaros/textparser.svg
:target: https://github.com/jfjlaros/textparser/releases
.. image:: https://www.ardu-badge.com/badge/textparser.svg
:target: https://www.ardu-badge.com/textparser
.. image:: https://img.shields.io/github/languages/code-size/jfjlaros/textparser.svg
:target: https://github.com/jfjlaros/textparser
.. image:: https://img.shields.io/github/languages/count/jfjlaros/textparser.svg
:target: https://github.com/jfjlaros/textparser
.. image:: https://img.shields.io/github/languages/top/jfjlaros/textparser.svg
:target: https://github.com/jfjlaros/textparser
.. image:: https://img.shields.io/github/license/jfjlaros/textparser.svg
:target: https://raw.githubusercontent.com/jfjlaros/textparser/master/LICENSE.md----
This library provides a simple way to parse line based data.
**Features:**
- Easy to use.
- Support for all types of delimiters and line endings.
- Support for arbitrary boolean value notation.
- Support for categorical data.
- Support for integers in any base.
- Tiny overhead compared to dedicated solutions.
- Type safe.Please see ReadTheDocs_ for the latest documentation.
Quick start
-----------A ``TextParser`` object is initialised with a delimiter, which can consist of
more than one symbol... code-block:: cpp
#include
TextParser parser(", "); // Delimiter is a comma followed by a space.
If all fields are of the same type, we can use an array.
.. code-block:: cpp
int a[5];
parser.parseLine("1, 2, 3, 4, 5", a);If the fields have different types, we can use multiple variables.
.. code-block:: cpp
char a[4];
int b;
double c;
parser.parseLine("one, 2, 3.4", a, b, c);.. _ReadTheDocs: https://arduinotextparser.readthedocs.io