16 #include <unicode/ucol.h>
25 #if U_ICU_VERSION_MAJOR_NUM >= 53
26 #define HAVE_UCOL_STRCOLLUTF8 1
28 #undef HAVE_UCOL_STRCOLLUTF8
33 #define LOCALE_NAME_BUFLEN 128
110 extern int pg_strncoll(
const char *arg1, ssize_t len1,
113 extern size_t pg_strxfrm(
char *
dest,
const char *src,
size_t destsize,
115 extern size_t pg_strnxfrm(
char *
dest,
size_t destsize,
const char *src,
129 extern int32_t icu_to_uchar(UChar **buff_uchar,
const char *buff,
size_t nbytes);
130 extern int32_t icu_from_uchar(
char **result,
const UChar *buff_uchar, int32_t len_uchar);
134 extern size_t wchar2char(
char *to,
const wchar_t *from,
size_t tolen,
136 extern size_t char2wchar(
wchar_t *to,
size_t tolen,
struct pg_locale_struct * pg_locale_t
PGDLLIMPORT int icu_validation_level
void cache_locale_time(void)
size_t pg_strnxfrm(char *dest, size_t destsize, const char *src, ssize_t srclen, pg_locale_t locale)
bool pg_strxfrm_enabled(pg_locale_t locale)
size_t wchar2char(char *to, const wchar_t *from, size_t tolen, pg_locale_t locale)
struct lconv * PGLC_localeconv(void)
void icu_validate_locale(const char *loc_str)
PGDLLIMPORT char * locale_time
pg_locale_t pg_newlocale_from_collation(Oid collid)
PGDLLIMPORT char * localized_abbrev_days[]
int builtin_locale_encoding(const char *locale)
size_t pg_strnxfrm_prefix(char *dest, size_t destsize, const char *src, ssize_t srclen, pg_locale_t locale)
char * get_collation_actual_version(char collprovider, const char *collcollate)
PGDLLIMPORT char * locale_numeric
PGDLLIMPORT char * localized_full_days[]
char * pg_perm_setlocale(int category, const char *locale)
char * icu_language_tag(const char *loc_str, int elevel)
int pg_strcoll(const char *arg1, const char *arg2, pg_locale_t locale)
PGDLLIMPORT char * localized_full_months[]
PGDLLIMPORT char * localized_abbrev_months[]
PGDLLIMPORT char * locale_monetary
bool pg_strxfrm_prefix_enabled(pg_locale_t locale)
PGDLLIMPORT char * locale_messages
int pg_strncoll(const char *arg1, ssize_t len1, const char *arg2, ssize_t len2, pg_locale_t locale)
void init_database_collation(void)
PGDLLIMPORT bool database_ctype_is_c
size_t pg_strxfrm(char *dest, const char *src, size_t destsize, pg_locale_t locale)
const char * builtin_validate_locale(int encoding, const char *locale)
bool check_locale(int category, const char *locale, char **canonname)
size_t pg_strxfrm_prefix(char *dest, const char *src, size_t destsize, pg_locale_t locale)
size_t char2wchar(wchar_t *to, size_t tolen, const char *from, size_t fromlen, pg_locale_t locale)
union pg_locale_struct::@156 info
struct pg_locale_struct::@156::@157 builtin