Commit Graph

160 Commits

Author SHA1 Message Date
ado
c097732352 Enable the parser to accept a header with one empty field, update unit tests 2024-03-14 14:58:33 +01:00
ado
8b1cf56549 Modify header parsing for empty headers, update old and add new tests for header parsing 2024-03-14 11:55:14 +01:00
ado
50de5b3a5a Add const where fitting, make splitter class members private, add #pragma once to ssp.hpp 2024-03-14 04:40:07 +01:00
red0124
f4bca3915f
Add [[nodiscard]] where fitting, update unit tests (#49) 2024-03-14 04:28:33 +01:00
ado
809939d0e2 Update parser error messages, fix parser tests 2024-03-13 19:39:07 +01:00
ado
b9f4afdd5f Add header and raw_header methods, update header usage methods error handling, write new and update existing unit tests 2024-03-13 17:15:31 +01:00
red0124
69875c238e
Resolve clang-tidy warnings (#48)
* Resolve clang-tidy warnings, update single_header_generator.py

* Update single header test, resolve additional clang-tidy warnings
2024-03-12 18:31:24 +01:00
red0124
457defadaa
Bugfix/odr violations (#47)
* Make common non-member functions inline, remove unreachable line from get_line_buffer

* [skip ci] Fix namespace comments
2024-03-12 10:22:10 +01:00
ado
7f53b585f9 Remove usage of ftell when updating cursor position value 2024-03-02 00:34:19 +01:00
red0124
df2beab6c3
Fix buffer overflow on multiline restricted with unterminated quote and multiple empty lines (#41) 2024-03-01 15:46:34 +01:00
red0124
27bd60b5ce
Fix bug with get_line_buffer when used with data buffer that is not null terminated and does not end with \n (#40) 2024-03-01 02:47:04 +01:00
red0124
c5b50f2b47
Fix compile issues for c++20 (#39) 2024-03-01 00:52:00 +01:00
red0124
d8dcce7f2a
Fix buffer overflow on multiline csv data containing null characters (#38) 2024-02-29 22:03:20 +01:00
ado
b660310acf [skip ci] Merge with master 2024-02-25 18:27:26 +01:00
ado
0a695cf09e Add ss::uint8 and ss::int8, add unit tests for them 2024-02-25 17:46:35 +01:00
ado
f8e14b1fcf [skip ci] Add std:: to invoked C std lib functions 2024-02-25 13:03:52 +01:00
ado
0ebbee1174 [skip ci] Remove obsolete check from get_line_buffer 2024-02-25 12:10:46 +01:00
ado
f4a06d40e7 Fix non-POSIX get_line 2024-02-25 10:53:21 +01:00
ado
f2ff40a625 Add strict_realloc 2024-02-25 10:42:11 +01:00
ado
110ee840cc Fix header usage functionality 2024-02-25 03:54:33 +01:00
ado
05f87bc78b [skip ci] Fix line method 2024-02-25 02:57:46 +01:00
ado
88e711a5f7 Add positions method to parser, write unit tests for it, update other parser tests 2024-02-25 02:06:48 +01:00
ado
383de57f9a Make ssize_t equal to intptr_t for non-POSIX environments 2024-02-24 19:09:41 +01:00
ado
8881649aca Update get_line_buffer, update new version of get_line_file to work with data that has no new line at eof 2024-02-23 23:25:03 +01:00
ado
c0d3087f85 Fix reallocation issues with non-POSIX get_line 2024-02-23 21:56:44 +01:00
ado
273e8ad950 Merge with master, resolve conflicts 2024-02-23 02:49:13 +01:00
ado
09e628020d Fix typo in common.hpp 2024-02-23 01:01:31 +01:00
ado
ea21b9ba04 Fix get_line possible leak 2024-02-23 00:59:58 +01:00
ado
230da6a3f2 Update getline implementation for non-POSIX systems 2024-02-22 23:59:58 +01:00
ado
3ea8adedfd Add extended tests with no new line at eof 2024-02-22 00:30:05 +01:00
ado
b993eb8852 [skip ci] Update coverage.yml to work with lcov2.0 2024-02-21 19:41:06 +01:00
ado
5e32d722e8 [skip ci] Update coverage.yml, add unit test for files and buffers without new line at the end of the file 2024-02-21 02:19:14 +01:00
ado
59f6591da3 [skip ci] Update coverage.yml 2024-02-21 01:25:53 +01:00
ado
d422667477 [skip ci] Remove some magic numbers 2024-02-19 01:16:19 +01:00
ado
aaa22046a5 Add null data buffer error handler and unit test, resolve TODOs 2024-02-19 01:00:42 +01:00
ado
775b8c93e2 Fix parser tests part 2 segment issues 2024-02-19 00:16:22 +01:00
ado
82f8ed12b4 Fix out of bounds reading for get_line_buffer, write more buffer mode unit tests 2024-02-18 11:20:36 +01:00
ado
4434db29f6 Merge remote-tracking branch 'origin/master' into feature/csv_buffer 2024-02-17 03:39:11 +01:00
ado
7530be1c44 Fix undefined behavior when trying to fetch header information on an empty file 2024-02-17 02:26:19 +01:00
ado
7062888d72 Fix msvc build 2024-02-17 01:07:29 +01:00
ado
f04ede3a49 Add option to read csv data from a buffer, add some unit tests for the new feature 2024-02-17 00:55:36 +01:00
ado
8b72deb1ed Remove some comments, update README, update ssp.hpp 2023-08-08 14:38:49 +02:00
ado
672b89b213 Add ability to convert larger numbers without fast_float, write unit tests 2023-08-08 14:11:51 +02:00
ado
b7e5dd28b8 Update splitter tests 2023-08-08 12:10:20 +02:00
ado
deee577c1f Update conversion for integral values to use std::from_chars 2023-08-07 14:11:06 +02:00
ado
7df96d95c7 Make line method work on errors too 2023-08-06 19:56:28 +02:00
ado
9c11f22d79 Update rethrow error message line number 2023-08-06 19:43:41 +02:00
ado
a152a8cb4a Apply minor change to iterator, add handling of invalid header 2023-08-06 15:55:23 +02:00
ado
a378998e34 Update parser exception handling for invalid split/conversion 2023-08-06 14:04:21 +02:00
ado
3c0a440fe9 [skip ci] Update README 2023-08-06 12:33:05 +02:00