Commit Graph

8 Commits

Author SHA1 Message Date
7e83f5e4b0 mu-regex: add match_groups, use everywhere
Add match_groups to Mu::Regex, and update old "raw" GRegex users.
2026-08-20 15:05:31 -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
543c43f078 Replace "the the " with "the " 2026-08-20 15:04:26 -07:00
4a0eba8ddf improve unit tests 2023-09-24 20:21:57 +03:00
6f69f5d482 utils/mu-regex: add move constructor 2023-07-11 22:54:01 +03:00
daef904ca1 utils: add Regex::replace + unit tests 2023-01-29 10:13:29 +02:00
60e9d54a7c mu-regex: make backward-compatible with older glib 2022-12-31 00:10:24 +02:00
e97bbb83e3 utils/mu-regex: add PCRE Regex wrapper
Add a thin c++ wrapper for GLib's GRegex (which is a PCRE wrapper
itself). PCRE is much faster than C++ std::regex, it may even matter in
some use-cases.
2022-12-30 11:15:03 +02:00