|
PostgreSQL Source Code git master
|
#include "mb/pg_wchar.h"

Go to the source code of this file.
Data Structures | |
| struct | collate_methods |
| struct | ctype_methods |
| struct | pg_locale_struct |
Macros | |
| #define | LOCALE_NAME_BUFLEN 128 |
| #define | UNICODE_CASEMAP_LEN 3 |
| #define | UNICODE_CASEMAP_BUFSZ (UNICODE_CASEMAP_LEN * MAX_MULTIBYTE_CHAR_LEN) |
Typedefs | |
| typedef struct pg_locale_struct * | pg_locale_t |
| #define LOCALE_NAME_BUFLEN 128 |
Definition at line 18 of file pg_locale.h.
| #define UNICODE_CASEMAP_BUFSZ (UNICODE_CASEMAP_LEN * MAX_MULTIBYTE_CHAR_LEN) |
Definition at line 32 of file pg_locale.h.
| #define UNICODE_CASEMAP_LEN 3 |
Definition at line 31 of file pg_locale.h.
Definition at line 60 of file pg_locale.h.
Definition at line 1667 of file pg_locale.c.
References ereport, errcode(), errmsg(), ERROR, fb(), and PG_UTF8.
Referenced by builtin_validate_locale(), and DefineCollation().
Definition at line 1691 of file pg_locale.c.
References builtin_locale_encoding(), encoding, ereport, errcode(), errmsg(), ERROR, fb(), and pg_encoding_to_char.
Referenced by create_pg_locale_builtin(), createdb(), and DefineCollation().
Definition at line 702 of file pg_locale.c.
References _dosmaperr(), buf, cache_single_string(), CurrentLCTimeValid, DEBUG3, elog, encoding, ERROR, fb(), i, locale_t, locale_time, localized_abbrev_days, localized_abbrev_months, localized_full_days, localized_full_months, MAX_L10N_DATA, pg_get_encoding_from_locale(), PG_SQL_ASCII, PG_UTF8, report_newlocale_failure(), and tm.
Referenced by DCH_from_char(), and DCH_to_char().
Definition at line 275 of file pg_locale.c.
References elog, ereport, errcode(), errmsg(), fb(), pg_locale_struct::locale, pfree(), pg_is_ascii(), pstrdup(), setlocale, and WARNING.
Referenced by check_locale_messages(), check_locale_monetary(), check_locale_numeric(), check_locale_time(), and createdb().
Definition at line 1247 of file pg_locale.c.
References fb(), get_collation_actual_version_builtin(), and get_collation_actual_version_libc().
Referenced by AlterCollation(), AlterDatabaseRefreshColl(), CheckMyDatabase(), create_pg_locale(), createdb(), DefineCollation(), pg_collation_actual_version(), pg_database_collation_actual_version(), and pg_import_system_collations().
Definition at line 1731 of file pg_locale.c.
References ereport, errcode(), errmsg(), ERROR, fb(), MaxAllocSize, Min, palloc(), pfree(), and repalloc().
Referenced by createdb(), DefineCollation(), and pg_import_system_collations().
Definition at line 1789 of file pg_locale.c.
References ereport, errcode(), errhint(), errmsg(), ERROR, fb(), i, icu_validation_level, IsBinaryUpgrade, and WARNING.
Referenced by createdb(), and DefineCollation().
Definition at line 1131 of file pg_locale.c.
References Assert, pg_locale_struct::collate, pg_locale_struct::collate_is_c, create_pg_locale_builtin(), create_pg_locale_icu(), create_pg_locale_libc(), pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, default_locale, elog, ERROR, fb(), GETSTRUCT(), HeapTupleIsValid, pg_locale_struct::is_default, MyDatabaseId, ObjectIdGetDatum(), PGLOCALE_SUPPORT_ERROR, ReleaseSysCache(), SearchSysCache1(), and TopMemoryContext.
Referenced by CheckMyDatabase().
|
extern |
Definition at line 1175 of file pg_locale.c.
References fb(), and pg_newlocale_from_collation().
Referenced by ltree_crc32_sz(), ltree_prefix_eq_ci(), t_isalnum(), and t_isalpha().
Definition at line 1366 of file pg_locale.c.
References pg_locale_struct::ctype, default_locale, ctype_methods::downcase_ident, fb(), and strlower_c().
Referenced by downcase_identifier().
Definition at line 1653 of file pg_locale.c.
References fb().
Referenced by icu_unicode_version().
|
extern |
Definition at line 1533 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), pg_char_properties, PG_ISALNUM, and ctype_methods::wc_isalnum.
Referenced by t_isalnum().
|
extern |
Definition at line 1523 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), pg_char_properties, PG_ISALPHA, and ctype_methods::wc_isalpha.
Referenced by t_isalpha().
|
extern |
Definition at line 1615 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), pg_char_properties, PG_ISALPHA, and ctype_methods::wc_iscased.
Referenced by like_fixed_prefix_ci().
|
extern |
Definition at line 1513 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), pg_char_properties, PG_ISDIGIT, and ctype_methods::wc_isdigit.
|
extern |
Definition at line 1563 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), pg_char_properties, PG_ISGRAPH, and ctype_methods::wc_isgraph.
|
extern |
Definition at line 1553 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), pg_char_properties, PG_ISLOWER, and ctype_methods::wc_islower.
|
extern |
Definition at line 1573 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), pg_char_properties, PG_ISPRINT, and ctype_methods::wc_isprint.
|
extern |
Definition at line 1583 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), pg_char_properties, PG_ISPUNCT, and ctype_methods::wc_ispunct.
|
extern |
Definition at line 1593 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), pg_char_properties, PG_ISSPACE, and ctype_methods::wc_isspace.
|
extern |
Definition at line 1543 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), pg_char_properties, PG_ISUPPER, and ctype_methods::wc_isupper.
|
extern |
Definition at line 1603 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), pg_char_properties, PG_ISDIGIT, and ctype_methods::wc_isxdigit.
|
extern |
Definition at line 1189 of file pg_locale.c.
References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, AssertCouldGetRelation(), c_locale, CollationCache, CollationCacheContext, collid, create_pg_locale(), default_locale, elog, ERROR, fb(), last_collation_cache_locale, last_collation_cache_oid, pg_locale_struct::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_ci(), make_greater_string(), match_pattern_prefix(), pg_database_locale(), pg_set_regex_collation(), spg_text_inner_consistent(), str_casefold(), str_initcap(), str_tolower(), str_toupper(), text_position(), text_position_setup(), text_starts_with(), texteq(), textne(), varstr_cmp(), and varstr_sortsupport().
Definition at line 172 of file pg_locale.c.
References DEBUG3, elog, FATAL, fb(), GetDatabaseEncoding(), pg_locale_struct::locale, LOCALE_NAME_BUFLEN, setenv, setlocale, SetMessageEncoding(), and strlcpy().
Referenced by assign_locale_messages(), CheckMyDatabase(), and init_locale().
Definition at line 1384 of file pg_locale.c.
References pg_locale_struct::collate, fb(), and collate_methods::strncoll.
Referenced by varstrfastcmp_locale().
|
extern |
Definition at line 1348 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), ctype_methods::strfold, and strlower_c().
Referenced by ltree_crc32_sz(), ltree_prefix_eq_ci(), and str_casefold().
|
extern |
Definition at line 1318 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), ctype_methods::strlower, and strlower_c().
Referenced by str_tolower().
|
extern |
Definition at line 1404 of file pg_locale.c.
References pg_locale_struct::collate, fb(), and collate_methods::strncoll.
Referenced by MatchText(), text_position_next_internal(), and varstr_cmp().
|
extern |
Definition at line 1459 of file pg_locale.c.
References pg_locale_struct::collate, fb(), and collate_methods::strnxfrm.
Referenced by hashbpchar(), hashbpcharextended(), hashtext(), and hashtextextended().
|
extern |
Definition at line 1506 of file pg_locale.c.
References pg_locale_struct::collate, fb(), and collate_methods::strnxfrm_prefix.
|
extern |
Definition at line 1328 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), ctype_methods::strtitle, and strtitle_c().
Referenced by str_initcap().
|
extern |
Definition at line 1338 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), ctype_methods::strupper, and strupper_c().
Referenced by str_toupper().
Definition at line 1434 of file pg_locale.c.
References pg_locale_struct::collate, fb(), and collate_methods::strnxfrm.
Referenced by convert_string_datum(), and varstr_abbrev_convert().
|
extern |
Definition at line 1418 of file pg_locale.c.
References pg_locale_struct::collate, and collate_methods::strxfrm_is_safe.
Referenced by varstr_sortsupport().
|
extern |
Definition at line 1481 of file pg_locale.c.
References pg_locale_struct::collate, fb(), and collate_methods::strnxfrm_prefix.
Referenced by varstr_abbrev_convert().
|
extern |
Definition at line 1470 of file pg_locale.c.
References pg_locale_struct::collate, fb(), and collate_methods::strnxfrm_prefix.
Referenced by varstr_abbrev_convert().
|
extern |
Definition at line 1639 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), pg_ascii_tolower(), and ctype_methods::wc_tolower.
|
extern |
Definition at line 1626 of file pg_locale.c.
References pg_locale_struct::ctype, fb(), pg_ascii_toupper(), and ctype_methods::wc_toupper.
Definition at line 506 of file pg_locale.c.
References CurrentLocaleConvValid, db_encoding_convert(), elog, encoding, ereport, errcode(), errmsg(), ERROR, fb(), free_struct_lconv(), locale_monetary, locale_numeric, PG_CATCH, PG_END_TRY, pg_get_encoding_from_locale(), pg_localeconv_free(), pg_localeconv_r(), PG_RE_THROW, PG_SQL_ASCII, PG_TRY, and struct_lconv_is_valid().
Referenced by cash_in(), cash_numeric(), cash_out(), int4_cash(), int8_cash(), NUM_prepare_locale(), and numeric_cash().
Definition at line 1127 of file pg_locale_libc.c.
References ereport, errcode(), errdetail(), errmsg(), ERROR, and fb().
Referenced by cache_locale_time(), and make_libc_collator().
Definition at line 1205 of file pg_locale_libc.c.
References Assert, fb(), GetDatabaseEncoding(), locale_t, PG_UTF8, and wcstombs_l().
Referenced by strlower_libc_mb(), strtitle_libc_mb(), and strupper_libc_mb().
|
extern |
Definition at line 92 of file pg_locale.c.
Referenced by createdb(), DefineCollation(), and icu_validate_locale().
|
extern |
Definition at line 87 of file pg_locale.c.
|
extern |
Definition at line 88 of file pg_locale.c.
Referenced by PGLC_localeconv().
|
extern |
Definition at line 89 of file pg_locale.c.
Referenced by PGLC_localeconv().
|
extern |
Definition at line 90 of file pg_locale.c.
Referenced by cache_locale_time().
|
extern |
Definition at line 101 of file pg_locale.c.
Referenced by cache_locale_time(), DCH_from_char(), and DCH_to_char().
|
extern |
Definition at line 103 of file pg_locale.c.
Referenced by cache_locale_time(), DCH_from_char(), and DCH_to_char().
|
extern |
Definition at line 102 of file pg_locale.c.
Referenced by cache_locale_time(), DCH_from_char(), and DCH_to_char().
|
extern |
Definition at line 104 of file pg_locale.c.
Referenced by cache_locale_time(), DCH_from_char(), and DCH_to_char().