| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-04-10 | lib/utils: small cleanups | Dirk-Jan C. Binnema | |
| Fix some static analysis warnings | |||
| 2026-03-07 | mu/lib: fix some possible quoting issues | Dirk-Jan C. Binnema | |
| 2026-01-29 | mu-utils: replace #define with constexpr for MU_COLOR_ | Dirk-Jan C. Binnema | |
| 2026-01-28 | utils: fix typo | Dirk-Jan C. Binnema | |
| 2026-01-27 | utils: rework MU_ENABLE_BITOPS using C++20 code | Dirk-Jan C. Binnema | |
| Instead of macros, we using C++20 concepts to define the helpers to deal with bitops on enum-class conveniently. x# Please enter the commit message for your changes. Lines starting | |||
| 2025-12-13 | utils: rework logging functions | Dirk-Jan C. Binnema | |
| Use a general mu_log which does the formatting, and specific mu_debug, mu_info etc., to call it. | |||
| 2025-10-25 | utils: add utf8_clean helper | Dirk-Jan C. Binnema | |
| To morph text into valid utf8 if it isn't already. | |||
| 2025-09-28 | utils: avoid fmt:gmtime/fmt::localtime | Dirk-Jan C. Binnema | |
| They've been deprecated and give build warnings with new enough libfmt. | |||
| 2025-08-24 | utils: add set_thread_name | Dirk-Jan C. Binnema | |
| With HAVE_PTHREAD_SETNAME_NP | |||
| 2025-07-24 | fmt: prefer system package if found | Dirk-Jan C. Binnema | |
| mu embeds a "vendored" subset of the libfmt package under thirdparty; but it's better to use the system-package if the user has one. So, use the system package if found or user -Duse-embedded-fmt=true is specified. | |||
| 2025-06-14 | mu_utils: add to_string_char | Dirk-Jan C. Binnema | |
| Like to_string_gchar, but for malloc/free strings. | |||
| 2024-12-06 | lib/utils: include fmt/xchar.h | Dirk-Jan C. Binnema | |
| Needed for 'join' | |||
| 2024-09-22 | Fix typos. | James Cook | |
| 2024-04-13 | mu-utils: update casting from int64_t -> time_t | Dirk-Jan C. Binnema | |
| Esp. for systems with 32-bit time_t. | |||
| 2024-04-01 | mu-utils: Fix build with musl | Matthew Smith | |
| In musl, `stdout` is a macro that expands to `(stdout)`, and `::(stdout)` is not valid C++. ../mu-1.12.2/lib/utils/mu-utils.hh:268:32: error: expected id-expression before '(' token 268 | ::stdout); | ^~~~~~ Nothing in the Mu namespace is named stdout, so it is safe to drop the `::`. Bug: https://bugs.gentoo.org/928361 | |||
| 2023-09-24 | utils/add: improve unit test coverage | Dirk-Jan C. Binnema | |
| 2023-09-21 | mu-utils: add to_string_view | Dirk-Jan C. Binnema | |
| 2023-09-17 | utils: add utf8_wordbreak | Dirk-Jan C. Binnema | |
| Determine if a string has wordbreaks in a mostly Xapian-compatible way. We need this to determine what strings should be considered "phrases". | |||
| 2023-09-09 | utils: handle "unbroken" scripts | Dirk-Jan C. Binnema | |
| Do not removing combining characters from scripts without explicit word boundaries, such as those for CJK. Reuse some Xapian code for that. | |||
| 2023-08-27 | utils: small tweaks | Dirk-Jan C. Binnema | |
| 2023-08-21 | mu-utils: support UTC in parse_date_time | Dirk-Jan C. Binnema | |
| Parsing dates known to be in UTC. | |||
| 2023-08-19 | remove Mu::format, use mu_format | Dirk-Jan C. Binnema | |
| Use the new fmt-based formatting. | |||
| 2023-08-11 | utils: add mu_print[ln] for ostreams | Dirk-Jan C. Binnema | |
| 2023-08-06 | utils: replace time_to_string with fmt-based formatting | Dirk-Jan C. Binnema | |
| It's faster; make "mu find" ~5-10% faster, and removes some code we no longer need. | |||
| 2023-07-25 | utils: implement html-to-text | Dirk-Jan C. Binnema | |
| Implement a crude html-to-text scraper function, to extract plain text from html messages, so we can use it for indexing. | |||
| 2023-07-08 | migrate to fmt-based logging in some more places | Dirk-Jan C. Binnema | |
| and improve logging. | |||
| 2023-07-06 | fmt: more update to use new fmt-based APIs | Dirk-Jan C. Binnema | |
| 2023-07-05 | update to use fmt-based apis | Dirk-Jan C. Binnema | |
| Not complete, but a first big stab converting users of Mu::Error and various g_warning & friends, format to the new libfmt-based APIs. | |||
| 2023-07-05 | utils: rework Mu::Error and g_ logging macros with fmt | Dirk-Jan C. Binnema | |
| A bit more C++ template magic to remove a lot of code. | |||
| 2023-01-19 | server: add a few stopwatches | Dirk-Jan C. Binnema | |
| For measuring performance. | |||
| 2023-01-14 | utils: get rid of mu-util.[ch] | Dirk-Jan C. Binnema | |
| It was getting old... Remove the unused parts, refactor the few parts still in use. | |||
| 2022-12-30 | many: use Mu::Regex instead of std::regex | Dirk-Jan C. Binnema | |
| The former is PCRE-compatible, and faster than std::regex. | |||
| 2022-12-10 | mu-utils: use const char* from for time_to_string | Dirk-Jan C. Binnema | |
| To avoid lifetime problems with some(?) compilers. | |||
| 2022-11-16 | lib: remove mu-runtime | Dirk-Jan C. Binnema | |
| Remove runtime; update the logger for that, and move the runtime-paths stuff to utils. | |||
| 2022-10-02 | utils: add helpers for assoc-pairs | Dirk-Jan C. Binnema | |
| Add some unit-test, too. | |||
| 2022-08-11 | tests: update test helpers and users | Dirk-Jan C. Binnema | |
| Move test-mu-common to mu-test-utils. Use mu_test_init as a wrapper for g_test_init. Update users. | |||
| 2022-06-16 | utils: add regex-split | Dirk-Jan C. Binnema | |
| 2022-05-18 | tests: skip missing timezones in queries, too | Dirk-Jan C. Binnema | |
| 2022-05-17 | utils: add locale_workaround | Dirk-Jan C. Binnema | |
| Attempt to work around some locale handling throwing in some systems. "locale::facet::_S_create_c_locale name not valid" Ugly, but maybe it helps. | |||
| 2022-05-14 | utils: insist on semicolon after MU_ENABLE_BITOPS | Dirk-Jan C. Binnema | |
| 2022-04-30 | utils: update date/size parsing, factor out format | Dirk-Jan C. Binnema | |
| And update tests | |||
| 2022-04-30 | lib/tests: rework in terms of Mu::Message | Dirk-Jan C. Binnema | |
| 2022-04-18 | option: rename to to_string_opt and to_string_view_opt | Dirk-Jan C. Binnema | |
| to_option_string -> to_string_opt to_string_view -> to_string_view_opt | |||
| 2022-04-16 | utils: add deletable_unique_ptr | Dirk-Jan C. Binnema | |
| 2022-04-14 | utils: add TempDir RAII class | Dirk-Jan C. Binnema | |
| For tests | |||
| 2022-03-28 | utils: add seq_some | Dirk-Jan C. Binnema | |
| 2022-03-26 | utils: add some handy STL conveniences | Dirk-Jan C. Binnema | |
| 2022-03-19 | utils: improve split / join | Dirk-Jan C. Binnema | |
| 2022-03-07 | utils: add rename has_flag into one_if in BITOPS | Dirk-Jan C. Binnema | |
| 2022-02-26 | utils: add has_flag to MU_ENABLE_BITOPS | Dirk-Jan C. Binnema | |
