Michael Pfaff
e5a471d9ca
Improve API
2024-03-11 16:57:52 -04:00
Kogia-sima
30f42f1b46
refactor: Implement faster `render_escaped` method for upper filter
2021-01-11 17:23:23 +09:00
Kogia-sima
e69d36b168
refactor: clippy fix
2020-12-29 16:53:46 +09:00
Kogia-sima
2d6b29da6f
test: Add more tests
2020-12-29 01:32:56 +09:00
Kogia-sima
6c2ef0deae
test: simplify filter tests
2020-12-28 22:44:36 +09:00
Kogia-sima
46fa250c49
feat: allow unsized types for filters
2020-12-28 22:33:49 +09:00
Kogia-sima
28ca4e2959
doc: fix examples in doc comments
2020-12-28 21:28:53 +09:00
Kogia-sima
8deecff5fe
break: change RenderError into enum
2020-12-20 21:55:55 +09:00
Kogia-sima
b58a51a1ae
doc: deny missing docs
2020-12-20 21:23:47 +09:00
Kogia-sima
b6e0f145fa
doc: Examples for filters
2020-12-20 21:23:47 +09:00
Kogia-sima
5ceb904f19
fix: Fix unsoundness issue on truncate filter
...
old implementation of truncate filter is unsound because it may calls
Buffer::set_len() for the index which does not on the char boundary when
buffer sized decreased.
2020-12-20 16:07:06 +09:00
Kogia-sima
fa198107a0
fix: Do not panic when buffer size decreased
2020-12-19 20:42:03 +09:00
Kogia-sima
fe11aff782
Merge branch 'feature/json-filter'
2020-12-18 12:24:43 +09:00
Kogia-sima
d381552e6b
feat: truncate filter
2020-12-18 11:13:14 +09:00
Kogia-sima
e899e99ea1
doc: json filter documentation
2020-12-17 19:47:33 +09:00
Kogia-sima
d7bce02109
feat: json filter
2020-12-17 19:47:27 +09:00
Kogia-sima
e316c82eb5
Remove String::truncate()
...
Current implementation is unsafe because it doesn't check if `new_len`
does lie on a char boundary.
2020-12-17 16:24:57 +09:00
Kogia-sima
aa0afb1f81
doc: Update safety documents
...
and some assertion fix
2020-12-16 21:17:06 +09:00
Kogia-sima
834289be59
refactor: Reduce unsafe blocks
2020-11-21 18:44:52 +09:00
Kogia-sima
fcde448751
Add trim filter
2020-07-22 06:40:26 +09:00
Kogia-sima
80b64fe883
break: Remove Buffer::set_len method
...
This method allows reducing the buffer size, but it should not be
possible.
Alternatively I added a Buffer::advance method to increase the length.
2020-07-15 19:49:35 +09:00
Kogia-sima
15b0504564
Add tests for filter
2020-07-15 19:34:53 +09:00
Kogia-sima
eac0dfbf5b
Add minimal runtime filters
2020-07-15 17:12:31 +09:00