dfdd943817
utils: html-to-text: fix some issues, update tests
...
Improve handling of some corner-cases, and add more unit-tests for
things that were broken before.
2026-08-20 15:05:30 -07:00
86464cd083
modernization: tweaks for c++20
...
Update various places for what we can do with C++20:
- ends_with / starts_with
- std::to_array
- using instead of typedef
- designated initializers
- "[[maybe_unused]]" instead of G_GNUC_UNUSED
Also remove some unnecessary 'static'
2026-08-20 15:05:30 -07:00
502c9cd67b
lib: use ascii ctype utils
...
Use the new ascii ctype utils.
2026-08-20 15:05:30 -07:00
6715ff418a
lib/utils: small cleanups
...
Fix some static analysis warnings
2026-08-20 15:05:29 -07:00
dc29dc8395
html-to-text: add missing include <array>
2023-07-26 23:30:54 +03:00
c06e765d13
html-to-text: be explicit with array type
...
clang in CI fails to deduce it, so let's help it a bit.
2023-07-26 23:24:29 +03:00
56b8fad89e
utils: implement html-to-text
...
Implement a crude html-to-text scraper function, to extract plain text
from html messages, so we can use it for indexing.
2023-07-25 21:26:36 +03:00