Commit Graph

27 Commits

Author SHA1 Message Date
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
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
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
ado
b660310acf [skip ci] Merge with master 2024-02-25 18:27:26 +01:00
ado
f8e14b1fcf [skip ci] Add std:: to invoked C std lib functions 2024-02-25 13:03:52 +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
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
d422667477 [skip ci] Remove some magic numbers 2024-02-19 01:16: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
c981ed6644 Write additional parser tests, update some of the existing tests to work with throw_on_error 2023-08-04 16:48:07 +02:00
ado
1ddc61c62e add possibility to iterate with the parser, update unit tests, update README 2021-02-28 19:22:54 +01:00
ado
43e4e8a9de replace ifdef WIN with ifdef __unix__ 2021-02-21 22:25:58 +01:00
ado
3578e7b99c add custom getline for WIN... 2021-02-21 22:22:18 +01:00
ado
2985027505 add trim_left and trim_right, add setup static asserts, update type_traits, refactor some code, add unit tests 2021-02-14 01:59:06 +01:00