Commit Graph

3594 Commits

Author SHA1 Message Date
2e645cc82d uri: percent encode spaces prior to parsing
This simplifies the use of our overly strict parser.
2022-02-25 07:16:21 +10:00
1664c283c0 uri: add even more trivial validity test cases 2022-02-23 14:08:11 +10:00
50b53f7269 uri: allow out of spec chars 2022-02-23 07:26:57 +10:00
f4bb73dbec uri: remove parent-child component support 2022-02-22 16:38:01 +10:00
2c18bc3488 uri: don't rebase null views 2022-02-22 14:18:03 +10:00
dbf19c5a2b view: add a free contains convenience function 2022-02-17 17:01:22 +10:00
4af3f5df31 uri: use old style constructors for pqf return value
This fixes compilation errors under clang-13
2022-02-17 09:36:39 +10:00
19d4ce61da uri: add path-query-fragment accessor 2022-02-16 14:09:58 +10:00
a88fb9809d string: correct the lower comparator for cstrings 2022-02-15 13:22:03 +10:00
3e262f6aef uri: constructors should be explicit 2022-02-15 13:20:33 +10:00
ceda32b912 tuple/value: fix various compile time errors 2022-02-09 16:33:44 +10:00
d096eb9d21 tupe/value: add transform_array 2022-02-09 12:51:02 +10:00
6fb04e7fb6 endian: add an f64 bswap test 2022-02-07 12:14:45 +10:00
c963fce304 endian: prefer bit_cast over union type punning 2022-02-07 12:14:24 +10:00
1dd516d1ed cast: bit_cast should be constexpr 2022-02-07 12:14:06 +10:00
498da9491b uri: add more test cases 2022-02-01 12:25:57 +10:00
805ba5d1bf uri: use vector rather than map for query exploding 2022-01-27 13:51:40 +10:00
4e4e731cb7 parse/enum: workaround fmtlib#1824 warnings in clang 2022-01-25 15:55:18 +10:00
af3188bd16 view: add read_array 2022-01-25 15:54:16 +10:00
f2ce328e1e fs/tmp: actually test test suite 2022-01-19 15:04:48 +10:00
ff1ed506bd fs/tmp: add forgotten test suite 2022-01-19 15:03:55 +10:00
9b11cc92ff fs: add scoped_dir container 2022-01-19 11:24:15 +10:00
74700363ab paths: add system path queries 2022-01-19 11:24:15 +10:00
3d085c4de7 posix: add flock wrapper 2022-01-19 11:24:15 +10:00
acbfa674ff fs: add tmp file creation routines 2022-01-19 11:24:09 +10:00
a2259013f5 view: add split_on overload for array delimiters 2022-01-13 13:59:48 +10:00
94bc72d3a1 parse/value: add a string_view overload 2022-01-10 15:36:49 +10:00
2488846e38 uri: improve hierarchical parsing reliability 2021-12-21 13:56:28 +10:00
d86f60413e debug/warn: add forgotten 'do' 2021-12-21 13:55:55 +10:00
5e05584708 uri: change clear into clear_fragment 2021-12-21 09:42:13 +10:00
0912f68844 string: add is_transparent to transforming less comparator 2021-12-17 14:53:25 +10:00
642d9b95c6 cpp: fix trailing tokens with new tokeniser 2021-12-17 12:07:08 +10:00
458f109c6f uri: add resolve and normalise operations 2021-12-17 10:46:59 +10:00
2d0324f17a string: handle trailing/leading delimiters in tokeniser 2021-12-17 10:32:19 +10:00
462e2e6ad1 view: add increment and decrement operators 2021-12-16 13:48:23 +10:00
452328957d string: add a templated transform comparator 2021-12-15 09:27:38 +10:00
a1460a240f uri: add minimal copy and move operators 2021-12-14 11:31:20 +10:00
5685f1ebb1 parse/value: add from_string overload for std::string_view 2021-12-14 11:14:18 +10:00
d3a7a48544 uri: move non-parsing routines out of ragel source 2021-12-14 11:13:50 +10:00
d8d7c8f421 uri: add resolve and normalise stubs 2021-12-13 15:56:28 +10:00
58ae7f4d1c uri: add clear(component) stub 2021-12-13 15:56:18 +10:00
74675d1e5a uri: return std::string_view rather than cruft::view
These play better with external APIs
2021-12-13 15:55:39 +10:00
c3c022332b uri: prefer pragma over header guards 2021-12-13 15:55:14 +10:00
1181291852 uri: add an ostream operator 2021-12-13 15:55:01 +10:00
76842f18ba view: don't assert on redim to zero 2021-11-26 15:23:31 +10:00
0854405b2c view: add split_on 2021-11-22 11:16:10 +10:00
ce826e664f string: add less comparator with transform 2021-11-22 11:15:53 +10:00
e75b1f571c string: rename compare as equality 2021-11-22 10:42:19 +10:00
eb89ddcd53 view: add trim_if 2021-11-20 05:58:35 +10:00
71d350b29c remove use of std::iterator 2021-11-18 11:41:23 +10:00