4 Commits
Author SHA1 Message Date
Christopher Lam 48b1f51432 [gnc-unicode] bugfix strings compare equality should return 0 2025-06-15 10:46:09 +08:00
John Ralls 5ca4c8c528 [gnc-unicode] Use unicode_compare_internal for gnc_unicode_compare_identical
instead of strcmp. strcmp does a byte-by-byte numerical
comparison, not an alphabetical one (e.g. A > e).

Also fix the transposed args in the strstr call in
gnc_unicode_has_substring_identical.
2025-06-14 15:24:28 -07:00
Christopher Lam a3eaac6585 [gnc-unicode.cpp] fix potential segfault
locale was being g_freed prematurely
2025-06-14 13:53:08 +08:00
John Ralls d7624ab75c [Core Utils] Add ICU-based substring search.
See
https://unicode-org.github.io/icu/userguide/collation/string-search.html
for a discussion of ICU's string search capabilities. This new file
implements finding substrings and string comparisons at all but the
quaternary strength, that being of somewhat rarefied utility.
2025-06-10 12:53:12 -07:00