PostgreSQL Source Code git master
|
#include "postgres.h"
#include <time.h>
#include "access/htup_details.h"
#include "catalog/pg_collation.h"
#include "catalog/pg_database.h"
#include "common/hashfn.h"
#include "common/string.h"
#include "mb/pg_wchar.h"
#include "miscadmin.h"
#include "utils/builtins.h"
#include "utils/formatting.h"
#include "utils/guc_hooks.h"
#include "utils/lsyscache.h"
#include "utils/memutils.h"
#include "utils/pg_locale.h"
#include "utils/syscache.h"
#include "lib/simplehash.h"
Go to the source code of this file.
Data Structures | |
struct | collation_cache_entry |
Macros | |
#define | PGLOCALE_SUPPORT_ERROR(provider) elog(ERROR, "unsupported collprovider for %s: %c", __func__, provider) |
#define | TEXTBUFLEN 1024 |
#define | MAX_L10N_DATA 80 |
#define | SH_PREFIX collation_cache |
#define | SH_ELEMENT_TYPE collation_cache_entry |
#define | SH_KEY_TYPE Oid |
#define | SH_KEY collid |
#define | SH_HASH_KEY(tb, key) murmurhash32((uint32) key) |
#define | SH_EQUAL(tb, a, b) (a == b) |
#define | SH_GET_HASH(tb, a) a->hash |
#define | SH_SCOPE static inline |
#define | SH_STORE_HASH |
#define | SH_DECLARE |
#define | SH_DEFINE |
Functions | |
pg_locale_t | create_pg_locale_builtin (Oid collid, MemoryContext context) |
pg_locale_t | create_pg_locale_icu (Oid collid, MemoryContext context) |
pg_locale_t | create_pg_locale_libc (Oid collid, MemoryContext context) |
int | strncoll_libc (const char *arg1, ssize_t len1, const char *arg2, ssize_t len2, pg_locale_t locale) |
size_t | strnxfrm_libc (char *dest, size_t destsize, const char *src, ssize_t srclen, pg_locale_t locale) |
size_t | strlower_builtin (char *dst, size_t dstsize, const char *src, ssize_t srclen, pg_locale_t locale) |
size_t | strtitle_builtin (char *dst, size_t dstsize, const char *src, ssize_t srclen, pg_locale_t locale) |
size_t | strupper_builtin (char *dst, size_t dstsize, const char *src, ssize_t srclen, pg_locale_t locale) |
size_t | strlower_icu (char *dst, size_t dstsize, const char *src, ssize_t srclen, pg_locale_t locale) |
size_t | strtitle_icu (char *dst, size_t dstsize, const char *src, ssize_t srclen, pg_locale_t locale) |
size_t | strupper_icu (char *dst, size_t dstsize, const char *src, ssize_t srclen, pg_locale_t locale) |
size_t | strlower_libc (char *dst, size_t dstsize, const char *src, ssize_t srclen, pg_locale_t locale) |
size_t | strtitle_libc (char *dst, size_t dstsize, const char *src, ssize_t srclen, pg_locale_t locale) |
size_t | strupper_libc (char *dst, size_t dstsize, const char *src, ssize_t srclen, pg_locale_t locale) |
char * | pg_perm_setlocale (int category, const char *locale) |
bool | check_locale (int category, const char *locale, char **canonname) |
bool | check_locale_monetary (char **newval, void **extra, GucSource source) |
void | assign_locale_monetary (const char *newval, void *extra) |
bool | check_locale_numeric (char **newval, void **extra, GucSource source) |
void | assign_locale_numeric (const char *newval, void *extra) |
bool | check_locale_time (char **newval, void **extra, GucSource source) |
void | assign_locale_time (const char *newval, void *extra) |
bool | check_locale_messages (char **newval, void **extra, GucSource source) |
void | assign_locale_messages (const char *newval, void *extra) |
static void | free_struct_lconv (struct lconv *s) |
static bool | struct_lconv_is_valid (struct lconv *s) |
static void | db_encoding_convert (int encoding, char **str) |
struct lconv * | PGLC_localeconv (void) |
static void | cache_single_string (char **dst, const char *src, int encoding) |
void | cache_locale_time (void) |
static pg_locale_t | create_pg_locale (Oid collid, MemoryContext context) |
void | init_database_collation (void) |
pg_locale_t | pg_newlocale_from_collation (Oid collid) |
char * | get_collation_actual_version (char collprovider, const char *collcollate) |
size_t | pg_strlower (char *dst, size_t dstsize, const char *src, ssize_t srclen, pg_locale_t locale) |
size_t | pg_strtitle (char *dst, size_t dstsize, const char *src, ssize_t srclen, pg_locale_t locale) |
size_t | pg_strupper (char *dst, size_t dstsize, const char *src, ssize_t srclen, pg_locale_t locale) |
int | pg_strcoll (const char *arg1, const char *arg2, pg_locale_t locale) |
int | pg_strncoll (const char *arg1, ssize_t len1, const char *arg2, ssize_t len2, pg_locale_t locale) |
bool | pg_strxfrm_enabled (pg_locale_t locale) |
size_t | pg_strxfrm (char *dest, const char *src, size_t destsize, pg_locale_t locale) |
size_t | pg_strnxfrm (char *dest, size_t destsize, const char *src, ssize_t srclen, pg_locale_t locale) |
bool | pg_strxfrm_prefix_enabled (pg_locale_t locale) |
size_t | pg_strxfrm_prefix (char *dest, const char *src, size_t destsize, pg_locale_t locale) |
size_t | pg_strnxfrm_prefix (char *dest, size_t destsize, const char *src, ssize_t srclen, pg_locale_t locale) |
int | builtin_locale_encoding (const char *locale) |
const char * | builtin_validate_locale (int encoding, const char *locale) |
char * | icu_language_tag (const char *loc_str, int elevel) |
void | icu_validate_locale (const char *loc_str) |
Variables | |
char * | locale_messages |
char * | locale_monetary |
char * | locale_numeric |
char * | locale_time |
int | icu_validation_level = WARNING |
char * | localized_abbrev_days [7+1] |
char * | localized_full_days [7+1] |
char * | localized_abbrev_months [12+1] |
char * | localized_full_months [12+1] |
bool | database_ctype_is_c = false |
static pg_locale_t | default_locale = NULL |
static bool | CurrentLocaleConvValid = false |
static bool | CurrentLCTimeValid = false |
static MemoryContext | CollationCacheContext = NULL |
static collation_cache_hash * | CollationCache = NULL |
static Oid | last_collation_cache_oid = InvalidOid |
static pg_locale_t | last_collation_cache_locale = NULL |
#define MAX_L10N_DATA 80 |
Definition at line 90 of file pg_locale.c.
#define PGLOCALE_SUPPORT_ERROR | ( | provider | ) | elog(ERROR, "unsupported collprovider for %s: %c", __func__, provider) |
Definition at line 81 of file pg_locale.c.
#define SH_DECLARE |
Definition at line 190 of file pg_locale.c.
#define SH_DEFINE |
Definition at line 191 of file pg_locale.c.
#define SH_ELEMENT_TYPE collation_cache_entry |
Definition at line 182 of file pg_locale.c.
Definition at line 187 of file pg_locale.c.
#define SH_HASH_KEY | ( | tb, | |
key | |||
) | murmurhash32((uint32) key) |
Definition at line 185 of file pg_locale.c.
#define SH_KEY collid |
Definition at line 184 of file pg_locale.c.
#define SH_KEY_TYPE Oid |
Definition at line 183 of file pg_locale.c.
#define SH_PREFIX collation_cache |
Definition at line 181 of file pg_locale.c.
#define SH_SCOPE static inline |
Definition at line 188 of file pg_locale.c.
#define SH_STORE_HASH |
Definition at line 189 of file pg_locale.c.
#define TEXTBUFLEN 1024 |
Definition at line 88 of file pg_locale.c.
void assign_locale_messages | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 460 of file pg_locale.c.
References newval, and pg_perm_setlocale().
void assign_locale_monetary | ( | const char * | newval, |
void * | extra | ||
) |
void assign_locale_numeric | ( | const char * | newval, |
void * | extra | ||
) |
Definition at line 409 of file pg_locale.c.
References CurrentLocaleConvValid.
void assign_locale_time | ( | const char * | newval, |
void * | extra | ||
) |
int builtin_locale_encoding | ( | const char * | locale | ) |
Definition at line 1767 of file pg_locale.c.
References ereport, errcode(), errmsg(), ERROR, locale, and PG_UTF8.
Referenced by builtin_validate_locale(), and DefineCollation().
const char * builtin_validate_locale | ( | int | encoding, |
const char * | locale | ||
) |
Definition at line 1788 of file pg_locale.c.
References builtin_locale_encoding(), encoding, ereport, errcode(), errmsg(), ERROR, locale, and pg_encoding_to_char.
Referenced by create_pg_locale_builtin(), createdb(), and DefineCollation().
void cache_locale_time | ( | void | ) |
Definition at line 839 of file pg_locale.c.
References buf, cache_single_string(), CurrentLCTimeValid, DEBUG3, elog, encoding, ERROR, FATAL, i, locale_time, localized_abbrev_days, localized_abbrev_months, localized_full_days, localized_full_months, MAX_L10N_DATA, pfree(), pg_get_encoding_from_locale(), PG_SQL_ASCII, PG_UTF8, pstrdup(), setlocale, and tm.
Referenced by DCH_from_char(), and DCH_to_char().
|
static |
Definition at line 816 of file pg_locale.c.
References encoding, MemoryContextStrdup(), pfree(), pg_any_to_server(), and TopMemoryContext.
Referenced by cache_locale_time().
bool check_locale | ( | int | category, |
const char * | locale, | ||
char ** | canonname | ||
) |
Definition at line 326 of file pg_locale.c.
References elog, ereport, errcode(), errmsg(), locale, pfree(), pg_is_ascii(), pstrdup(), res, setlocale, and WARNING.
Referenced by check_locale_messages(), check_locale_monetary(), check_locale_numeric(), check_locale_time(), and createdb().
bool check_locale_messages | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 437 of file pg_locale.c.
References check_locale(), newval, PGC_S_DEFAULT, and source.
bool check_locale_monetary | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 391 of file pg_locale.c.
References check_locale(), and newval.
bool check_locale_numeric | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 403 of file pg_locale.c.
References check_locale(), and newval.
bool check_locale_time | ( | char ** | newval, |
void ** | extra, | ||
GucSource | source | ||
) |
Definition at line 415 of file pg_locale.c.
References check_locale(), and newval.
|
static |
Definition at line 1223 of file pg_locale.c.
References collid, context, create_pg_locale_builtin(), create_pg_locale_icu(), create_pg_locale_libc(), elog, ereport, errdetail(), errhint(), errmsg(), ERROR, get_collation_actual_version(), get_namespace_name(), GETSTRUCT, HeapTupleIsValid, pg_locale_struct::is_default, NameStr, ObjectIdGetDatum(), PGLOCALE_SUPPORT_ERROR, quote_qualified_identifier(), ReleaseSysCache(), SearchSysCache1(), SysCacheGetAttr(), SysCacheGetAttrNotNull(), TextDatumGetCString, and WARNING.
Referenced by pg_newlocale_from_collation().
pg_locale_t create_pg_locale_builtin | ( | Oid | collid, |
MemoryContext | context | ||
) |
Definition at line 107 of file pg_locale_builtin.c.
References pg_locale_struct::builtin, builtin_validate_locale(), pg_locale_struct::collate_is_c, collid, context, pg_locale_struct::ctype_is_c, pg_locale_struct::deterministic, elog, ERROR, GetDatabaseEncoding(), HeapTupleIsValid, pg_locale_struct::info, pg_locale_struct::locale, MemoryContextAllocZero(), MemoryContextStrdup(), MyDatabaseId, ObjectIdGetDatum(), pg_locale_struct::provider, ReleaseSysCache(), SearchSysCache1(), SysCacheGetAttrNotNull(), and TextDatumGetCString.
Referenced by create_pg_locale(), and init_database_collation().
pg_locale_t create_pg_locale_icu | ( | Oid | collid, |
MemoryContext | context | ||
) |
Definition at line 113 of file pg_locale_icu.c.
References pg_locale_struct::collate_is_c, collid, context, pg_locale_struct::ctype_is_c, pg_locale_struct::deterministic, elog, ereport, errcode(), errmsg(), ERROR, GETSTRUCT, HeapTupleIsValid, pg_locale_struct::info, pg_locale_struct::locale, MemoryContextAllocZero(), MemoryContextStrdup(), MyDatabaseId, ObjectIdGetDatum(), pg_locale_struct::provider, ReleaseSysCache(), SearchSysCache1(), SysCacheGetAttr(), SysCacheGetAttrNotNull(), and TextDatumGetCString.
Referenced by create_pg_locale(), and init_database_collation().
pg_locale_t create_pg_locale_libc | ( | Oid | collid, |
MemoryContext | context | ||
) |
Definition at line 379 of file pg_locale_libc.c.
References pg_locale_struct::collate_is_c, collid, context, pg_locale_struct::ctype_is_c, pg_locale_struct::deterministic, elog, ERROR, HeapTupleIsValid, pg_locale_struct::info, locale_t, pg_locale_struct::lt, make_libc_collator(), MemoryContextAllocZero(), MyDatabaseId, ObjectIdGetDatum(), pg_locale_struct::provider, ReleaseSysCache(), SearchSysCache1(), SysCacheGetAttrNotNull(), and TextDatumGetCString.
Referenced by create_pg_locale(), and init_database_collation().
|
static |
Definition at line 527 of file pg_locale.c.
References encoding, ereport, errcode(), errmsg(), ERROR, free, pfree(), pg_any_to_server(), and str.
Referenced by PGLC_localeconv().
|
static |
Definition at line 477 of file pg_locale.c.
References free.
Referenced by PGLC_localeconv().
char * get_collation_actual_version | ( | char | collprovider, |
const char * | collcollate | ||
) |
Definition at line 1390 of file pg_locale.c.
References buf, ereport, errcode(), errmsg(), ERROR, locale_t, pg_strcasecmp(), pg_strncasecmp(), psprintf(), and pstrdup().
Referenced by AlterCollation(), AlterDatabaseRefreshColl(), CheckMyDatabase(), create_pg_locale(), createdb(), DefineCollation(), pg_collation_actual_version(), pg_database_collation_actual_version(), and pg_import_system_collations().
char * icu_language_tag | ( | const char * | loc_str, |
int | elevel | ||
) |
Definition at line 1826 of file pg_locale.c.
References ereport, errcode(), errmsg(), ERROR, MaxAllocSize, Min, palloc(), pfree(), and repalloc().
Referenced by createdb(), DefineCollation(), and pg_import_system_collations().
void icu_validate_locale | ( | const char * | loc_str | ) |
Definition at line 1884 of file pg_locale.c.
References ereport, errcode(), errhint(), errmsg(), ERROR, i, icu_validation_level, IsBinaryUpgrade, and WARNING.
Referenced by createdb(), and DefineCollation().
void init_database_collation | ( | void | ) |
Definition at line 1299 of file pg_locale.c.
References Assert, create_pg_locale_builtin(), create_pg_locale_icu(), create_pg_locale_libc(), default_locale, elog, ERROR, GETSTRUCT, HeapTupleIsValid, pg_locale_struct::is_default, MyDatabaseId, ObjectIdGetDatum(), PGLOCALE_SUPPORT_ERROR, ReleaseSysCache(), SearchSysCache1(), and TopMemoryContext.
Referenced by CheckMyDatabase().
pg_locale_t pg_newlocale_from_collation | ( | Oid | collid | ) |
Definition at line 1341 of file pg_locale.c.
References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, CollationCache, CollationCacheContext, collid, create_pg_locale(), default_locale, elog, ERROR, last_collation_cache_locale, last_collation_cache_oid, collation_cache_entry::locale, OidIsValid, and TopMemoryContext.
Referenced by bpchareq(), bpcharne(), btvarstrequalimage(), convert_string_datum(), DefineCollation(), Generic_Text_IC_like(), GenericMatchText(), hashbpchar(), hashbpcharextended(), hashtext(), hashtextextended(), like_fixed_prefix(), make_greater_string(), match_pattern_prefix(), pg_set_regex_collation(), spg_text_inner_consistent(), str_initcap(), str_tolower(), str_toupper(), text_position_setup(), text_starts_with(), texteq(), textne(), varstr_cmp(), and varstr_sortsupport().
char * pg_perm_setlocale | ( | int | category, |
const char * | locale | ||
) |
Definition at line 223 of file pg_locale.c.
References DEBUG3, elog, FATAL, GetDatabaseEncoding(), locale, LOCALE_NAME_BUFLEN, setenv, setlocale, SetMessageEncoding(), and strlcpy().
Referenced by assign_locale_messages(), CheckMyDatabase(), and init_locale().
int pg_strcoll | ( | const char * | arg1, |
const char * | arg2, | ||
pg_locale_t | locale | ||
) |
Definition at line 1555 of file pg_locale.c.
References locale, PGLOCALE_SUPPORT_ERROR, and strncoll_libc().
Referenced by varstrfastcmp_locale().
size_t pg_strlower | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 1493 of file pg_locale.c.
References locale, PGLOCALE_SUPPORT_ERROR, strlower_builtin(), strlower_icu(), and strlower_libc().
Referenced by str_tolower().
int pg_strncoll | ( | const char * | arg1, |
ssize_t | len1, | ||
const char * | arg2, | ||
ssize_t | len2, | ||
pg_locale_t | locale | ||
) |
Definition at line 1587 of file pg_locale.c.
References locale, PGLOCALE_SUPPORT_ERROR, and strncoll_libc().
Referenced by MatchText(), and varstr_cmp().
size_t pg_strnxfrm | ( | char * | dest, |
size_t | destsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 1680 of file pg_locale.c.
References generate_unaccent_rules::dest, locale, PGLOCALE_SUPPORT_ERROR, and strnxfrm_libc().
Referenced by hashbpchar(), hashbpcharextended(), hashtext(), and hashtextextended().
size_t pg_strnxfrm_prefix | ( | char * | dest, |
size_t | destsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 1747 of file pg_locale.c.
References generate_unaccent_rules::dest, locale, and PGLOCALE_SUPPORT_ERROR.
Referenced by pg_strxfrm_prefix().
size_t pg_strtitle | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 1512 of file pg_locale.c.
References locale, PGLOCALE_SUPPORT_ERROR, strtitle_builtin(), strtitle_icu(), and strtitle_libc().
Referenced by str_initcap().
size_t pg_strupper | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 1531 of file pg_locale.c.
References locale, PGLOCALE_SUPPORT_ERROR, strupper_builtin(), strupper_icu(), and strupper_libc().
Referenced by str_toupper().
size_t pg_strxfrm | ( | char * | dest, |
const char * | src, | ||
size_t | destsize, | ||
pg_locale_t | locale | ||
) |
Definition at line 1643 of file pg_locale.c.
References generate_unaccent_rules::dest, locale, PGLOCALE_SUPPORT_ERROR, and strnxfrm_libc().
Referenced by convert_string_datum(), and varstr_abbrev_convert().
bool pg_strxfrm_enabled | ( | pg_locale_t | locale | ) |
Definition at line 1620 of file pg_locale.c.
References locale, and PGLOCALE_SUPPORT_ERROR.
Referenced by varstr_sortsupport().
size_t pg_strxfrm_prefix | ( | char * | dest, |
const char * | src, | ||
size_t | destsize, | ||
pg_locale_t | locale | ||
) |
Definition at line 1722 of file pg_locale.c.
References generate_unaccent_rules::dest, locale, and pg_strnxfrm_prefix().
Referenced by varstr_abbrev_convert().
bool pg_strxfrm_prefix_enabled | ( | pg_locale_t | locale | ) |
Definition at line 1703 of file pg_locale.c.
References locale, and PGLOCALE_SUPPORT_ERROR.
Referenced by varstr_abbrev_convert().
struct lconv * PGLC_localeconv | ( | void | ) |
Definition at line 557 of file pg_locale.c.
References CurrentLocaleConvValid, db_encoding_convert(), elog, encoding, ereport, errcode(), errmsg(), ERROR, FATAL, free_struct_lconv(), locale_monetary, locale_numeric, pfree(), PG_CATCH, PG_END_TRY, pg_get_encoding_from_locale(), PG_RE_THROW, PG_SQL_ASCII, PG_TRY, pstrdup(), setlocale, and struct_lconv_is_valid().
Referenced by cash_in(), cash_numeric(), cash_out(), int4_cash(), int8_cash(), NUM_prepare_locale(), and numeric_cash().
size_t strlower_builtin | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 77 of file pg_locale_builtin.c.
References generate_unaccent_rules::dest, and unicode_strlower().
Referenced by pg_strlower().
size_t strlower_icu | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Referenced by pg_strlower().
size_t strlower_libc | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 81 of file pg_locale_libc.c.
References locale, pg_database_encoding_max_length(), strlower_libc_mb(), and strlower_libc_sb().
Referenced by pg_strlower().
int strncoll_libc | ( | const char * | arg1, |
ssize_t | len1, | ||
const char * | arg2, | ||
ssize_t | len2, | ||
pg_locale_t | locale | ||
) |
Definition at line 517 of file pg_locale_libc.c.
References Assert, buf, GetDatabaseEncoding(), locale, palloc(), pfree(), PG_UTF8, strcoll_l, and TEXTBUFLEN.
Referenced by pg_strcoll(), and pg_strncoll().
size_t strnxfrm_libc | ( | char * | dest, |
size_t | destsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 582 of file pg_locale_libc.c.
References Assert, buf, bufsize, generate_unaccent_rules::dest, locale, palloc(), pfree(), strxfrm_l, and TEXTBUFLEN.
Referenced by pg_strnxfrm(), and pg_strxfrm().
size_t strtitle_builtin | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 84 of file pg_locale_builtin.c.
References generate_unaccent_rules::dest, initcap_wbnext(), WordBoundaryState::str, and unicode_strtitle().
Referenced by pg_strtitle().
size_t strtitle_icu | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Referenced by pg_strtitle().
size_t strtitle_libc | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 91 of file pg_locale_libc.c.
References locale, pg_database_encoding_max_length(), strtitle_libc_mb(), and strtitle_libc_sb().
Referenced by pg_strtitle().
|
static |
Definition at line 496 of file pg_locale.c.
Referenced by PGLC_localeconv().
size_t strupper_builtin | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 100 of file pg_locale_builtin.c.
References generate_unaccent_rules::dest, and unicode_strupper().
Referenced by pg_strupper().
size_t strupper_icu | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Referenced by pg_strupper().
size_t strupper_libc | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 101 of file pg_locale_libc.c.
References locale, pg_database_encoding_max_length(), strupper_libc_mb(), and strupper_libc_sb().
Referenced by pg_strupper().
|
static |
Definition at line 195 of file pg_locale.c.
Referenced by pg_newlocale_from_collation().
|
static |
Definition at line 194 of file pg_locale.c.
Referenced by pg_newlocale_from_collation().
|
static |
Definition at line 167 of file pg_locale.c.
Referenced by assign_locale_time(), and cache_locale_time().
|
static |
Definition at line 166 of file pg_locale.c.
Referenced by assign_locale_monetary(), assign_locale_numeric(), and PGLC_localeconv().
bool database_ctype_is_c = false |
Definition at line 161 of file pg_locale.c.
Referenced by CheckMyDatabase(), t_isalnum(), t_isalpha(), and TParserInit().
|
static |
Definition at line 163 of file pg_locale.c.
Referenced by init_database_collation(), and pg_newlocale_from_collation().
int icu_validation_level = WARNING |
Definition at line 146 of file pg_locale.c.
Referenced by createdb(), DefineCollation(), and icu_validate_locale().
|
static |
Definition at line 202 of file pg_locale.c.
Referenced by pg_newlocale_from_collation().
|
static |
Definition at line 201 of file pg_locale.c.
Referenced by pg_newlocale_from_collation().
char* locale_messages |
Definition at line 141 of file pg_locale.c.
char* locale_monetary |
Definition at line 142 of file pg_locale.c.
Referenced by PGLC_localeconv().
char* locale_numeric |
Definition at line 143 of file pg_locale.c.
Referenced by PGLC_localeconv().
char* locale_time |
Definition at line 144 of file pg_locale.c.
Referenced by cache_locale_time().
char* localized_abbrev_days[7+1] |
Definition at line 155 of file pg_locale.c.
Referenced by cache_locale_time(), DCH_from_char(), and DCH_to_char().
char* localized_abbrev_months[12+1] |
Definition at line 157 of file pg_locale.c.
Referenced by cache_locale_time(), DCH_from_char(), and DCH_to_char().
char* localized_full_days[7+1] |
Definition at line 156 of file pg_locale.c.
Referenced by cache_locale_time(), DCH_from_char(), and DCH_to_char().
char* localized_full_months[12+1] |
Definition at line 158 of file pg_locale.c.
Referenced by cache_locale_time(), DCH_from_char(), and DCH_to_char().