summaryrefslogtreecommitdiff
path: root/src/lib/icu/Collate.cxx
AgeCommit message (Collapse)Author
2021-01-01copyright year 2021Max Kellermann
2020-04-23Merge tag 'v0.21.23'Max Kellermann
release v0.21.23
2020-04-22lib/icu/Collate: use NORM_IGNORECASE instead of LINGUISTIC_IGNORECASEMax Kellermann
LINGUISTIC_IGNORECASE is unimplemented on Wine, but since we don't have any locale support (yet), and we're using LOCALE_NAME_INVARIANT, NORM_IGNORECASE should essentially be the same, so why bother.
2020-04-03lib/icu/Collate: pass std::string_viewMax Kellermann
2020-03-12remove unused ctype.h headerRosen Penev
None of the functions in these files come from ctype.h Also changed one instance of isdigit to the C++ variant. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-12replace assert.h with cassertRosen Penev
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-01-18copyright year 2020Max Kellermann
2019-06-17Copyright year 2019Max Kellermann
2018-11-19check.h: remove obsolete headerMax Kellermann
Since we switched from autotools to Meson in commit 94592c14062d5afc9482d11baa401648082022c0, we don't need to include `config.h` early to properly enable large file support. Meson passes the required macros on the compiler command line instead of defining them in `config.h`. This means we can include `config.h` at any time, whenever we want to check its macros, and there are no ordering constraints.
2018-10-31*: copyright year 2018Max Kellermann
2018-08-02lib/icu: require at least version 50Max Kellermann
2017-12-19Main, ...: catch any exception, not just std::runtime_errorMax Kellermann
2017-12-12*: check defined(_WIN32) instead of defined(WIN32)Max Kellermann
Only _WIN32 is defined by the compiler, and WIN32 is not standardized and may be missing. Closes #169
2017-09-20lib/icu/Collate: move IcuCaseFold() to CaseFold.cxxMax Kellermann
2017-09-20lib/icu/Collate: remove unnecessary assert()Max Kellermann
2017-05-08*: add "noexcept" to many, many function prototypesMax Kellermann
This eliminates some overhead, because the compiler doesn't need to consider these functions throwing.
2017-01-03update copyright yearMax Kellermann
2016-11-02lib/icu: migrate from class Error to C++ exceptionsMax Kellermann
2016-04-21lib/icu/Util: UCharFromUTF8() throws on errorMax Kellermann
2016-04-21lib/icu/Win32: throw exception on errorMax Kellermann
2016-04-12lib/icu/Collate: use std::unique_ptrMax Kellermann
2016-04-12lib/icu/Collate: use class AllocatedArrayMax Kellermann
2016-04-12lib/icu/Util: use class AllocatedArrayMax Kellermann
2016-03-01*: include cleanup (using iwyu)Max Kellermann
2016-02-26update copyright year to 2016Max Kellermann
2015-06-27lib/icu/Collate: remove GLib implementationMax Kellermann
There is not much use in GLib: on Windows, we have a native API for string collation, and the rest uses either libicu or the standard C library calls.
2015-06-27lib/icu/Collate: use LCMapStringEx() on WindowsMax Kellermann
2015-06-25lib/icu/{Converter,Collate}: return AllocatedStringMax Kellermann
2015-06-25lib/icu/Collate: fall back to strxfrm()Max Kellermann
2015-06-25lib/icu/Collate: fix indentMax Kellermann
2015-06-23lib/icu/Collate: fall back to strcoll() instead of strcasecmp()Max Kellermann
2015-06-23lib/icu/Collate: use CompareStringEx() on WindowsMax Kellermann
2015-01-01Copyright year 2015Max Kellermann
2014-12-26Merge branch 'v0.19.x'Max Kellermann
2014-12-26fs/Traits, ...: work around -Wtautological-pointer-compareMax Kellermann
New in clang 3.6.
2014-11-30lib/icu/Collate: move code to Util.cxxMax Kellermann
2014-08-16icu: include strings.h for strcasecmpFrançois Revol
Again, POSIX says strcasecmp is not in string.h.
2014-06-10lib/icu: add IcuInit(), IcuFinish()Max Kellermann
2014-05-12icu/Collate: use u_strFoldCase() instead of ucol_getSortKey()Max Kellermann
Turns out ucol_getSortKey() does not what I thought it does.
2014-05-12icu/Collate: UCharFromUTF8() returns WritableBuffer<UChar>Max Kellermann
2014-05-12icu/Collate: initialize error_codeMax Kellermann
Fixes the broken "search" command.
2014-04-09icu/Collate: fix memory leak in IcuCaseFold()Max Kellermann
2014-02-24icu/Collate: pass UErrorCode* to ucol_strcollUTF8()Max Kellermann
Fixes crash after database update.
2014-02-24icu/Collate: initialize the error code before ucol_open()Max Kellermann
Fixes initialization failure.
2014-02-24SongSort, ...: use libicu instead of GLib's g_utf8_*()Max Kellermann