aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/storages/parserse_base_utils.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-05-06fix missing <cstdint> includestobtoht1-0/+1
2022-03-30Remove dead code from parserse_base_utils and fix unit testsJeffrey1-39/+1
* Remove `match_string()`, `match_number()`, and `match_word()` * Remove `match_word_with_extrasymb()` and `match_word_til_equal_mark()` * Adapt unit test for `match_number()` to `match_number2()` * Adapt unit test for `match_string()` to `match_string2()` Note: the unit tests were testing for the old version of the functions, and the interfaces for these functions changed slightly, so I had to also edit the tests. As of writing, this PR has no merge conflicts with #8211 Additional changes during review: * Explicitly set up is_[float/signed]_val to be changed before each call * Structify the tests and fix uninitialized variables
2021-06-11Compil time: move epee storages/parserse_base_utils.h to parserse_base_utils.cppmj-xmr1-232/+8
2020-06-21epee: fix array underflow in unicode parsingmoneromooo-monero1-1/+1
Reported by minerscan Also independently found by OSS-Fuzz just recently
2020-03-09Move hex->bin conversion to monero copyright files and with less includesLee Clagett1-0/+2
2019-11-04Improved performance for epee serialization:Lee Clagett1-1/+0
- Removed copy of field names in binary deserialization - Removed copy of array values in binary deserialization - Removed copy of string values in json deserialization - Removed unhelpful allocation in json string value parsing - Removed copy of blob data on binary and json serialization
2019-08-16epee: support unicode in parsed stringsmoneromooo-monero1-0/+59
2019-03-25epee: some more minor JSON parsing speedupmoneromooo-monero1-3/+4
2019-01-16epee: speedup word/number matchingmoneromooo-monero1-14/+58
Number matching semantics are slightly changed: since this is used as a filter to check whether a number is signed and/or floating point, we can speed this up further. strto* functions are called afterwards and will error out where necessary. We now also accept numbers like .4 which were not accepted before. The strto* calls on a boost::string_ref will not access unallocated memory since the parsers always stop at the first bad character, and the original string is zero terminated. in arbitrary time measurement units for some arbitrary test case: match_number2: 235 -> 70 match_word2: 330 -> 108
2018-12-08epee: speed up string matching a bitmoneromooo-monero1-2/+6
2018-10-24epee: some minor speedup in parsingmoneromooo-monero1-2/+4
2018-08-19epee: some speedup in parsingmoneromooo-monero1-1/+8
2015-01-02year updated in licenseRiccardo Spagni1-1/+1
2014-07-25move modified epee code to new classes, revert licensefluffypony1-25/+23
2014-07-23License updated to BSD 3-clausefluffypony1-23/+25
2014-03-03moved all stuff to githubAntonio Juarez1-0/+260