mirror of
https://github.com/postgres/postgres.git
synced 2026-01-26 09:41:40 +03:00
ICU: use UTF8-optimized case conversion API
Initializes a UCaseMap object once for use across calls, and uses UTF8-optimized APIs. Author: Andreas Karlsson <andreas@proxel.se> Reviewed-by: zengman <zengman@halodbtech.com> Discussion: https://postgr.es/m/5a010b27-8ed9-4739-86fe-1562b07ba564@proxel.se
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#undef U_SHOW_CPLUSPLUS_HEADER_API
|
||||
#define U_SHOW_CPLUSPLUS_HEADER_API 0
|
||||
#include <unicode/ucol.h>
|
||||
#include <unicode/ucasemap.h>
|
||||
#endif
|
||||
|
||||
/* use for libc locale names */
|
||||
@@ -168,6 +169,7 @@ struct pg_locale_struct
|
||||
const char *locale;
|
||||
UCollator *ucol;
|
||||
locale_t lt;
|
||||
UCaseMap *ucasemap;
|
||||
} icu;
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user