|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <limits.h>#include <wctype.h>#include "access/htup_details.h"#include "catalog/pg_database.h"#include "catalog/pg_collation.h"#include "mb/pg_wchar.h"#include "miscadmin.h"#include "utils/builtins.h"#include "utils/formatting.h"#include "utils/memutils.h"#include "utils/pg_locale.h"#include "utils/syscache.h"
Go to the source code of this file.
Macros | |
| #define | TEXTBUFLEN 1024 |
| #define TEXTBUFLEN 1024 |
Definition at line 81 of file pg_locale_libc.c.
|
static |
Definition at line 1259 of file pg_locale_libc.c.
References Assert, ereport, errcode(), errhint(), errmsg(), ERROR, fb(), GetDatabaseEncoding(), locale_t, mbstowcs_l(), pfree(), PG_UTF8, pg_verifymbstr(), pnstrdup(), and str.
Referenced by strlower_libc_mb(), strtitle_libc_mb(), and strupper_libc_mb().
|
extern |
Definition at line 741 of file pg_locale_libc.c.
References pg_locale_struct::collate, pg_locale_struct::collate_is_c, collate_methods_libc, collid, pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, ctype_methods_libc_other_mb, ctype_methods_libc_sb, ctype_methods_libc_utf8, pg_locale_struct::deterministic, elog, ERROR, fb(), GetDatabaseEncoding(), HeapTupleIsValid, locale_t, pg_locale_struct::lt, make_libc_collator(), MemoryContextAllocZero(), MyDatabaseId, ObjectIdGetDatum(), pg_database_encoding_max_length(), PG_UTF8, ReleaseSysCache(), SearchSysCache1(), SysCacheGetAttrNotNull(), and TextDatumGetCString.
Referenced by create_pg_locale(), and init_database_collation().
|
static |
Definition at line 326 of file pg_locale_libc.c.
References fb(), i, IS_HIGHBIT_SET, isupper_l, locale_t, pg_locale_struct::lt, pg_ascii_tolower(), and tolower_l.
Definition at line 983 of file pg_locale_libc.c.
References ereport, errmsg(), ERROR, fb(), locale_t, pg_strcasecmp(), pg_strncasecmp(), psprintf(), and pstrdup().
Referenced by get_collation_actual_version().
Definition at line 825 of file pg_locale_libc.c.
References ereport, errcode(), errmsg(), ERROR, fb(), locale_t, and report_newlocale_failure().
Referenced by create_pg_locale_libc().
Definition at line 1161 of file pg_locale_libc.c.
References fb(), and locale_t.
Referenced by char2wchar().
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().
|
static |
Definition at line 495 of file pg_locale_libc.c.
References char2wchar(), ereport, errcode(), errmsg(), ERROR, fb(), locale_t, pg_locale_struct::lt, palloc(), palloc_array, pfree(), pg_database_encoding_max_length(), towlower_l, and wchar2char().
|
static |
Definition at line 456 of file pg_locale_libc.c.
References fb(), pg_locale_struct::is_default, IS_HIGHBIT_SET, isupper_l, locale_t, pg_locale_struct::lt, and tolower_l.
|
static |
Definition at line 896 of file pg_locale_libc.c.
References buf, fb(), pg_locale_struct::lt, palloc(), pfree(), strcoll_l, and TEXTBUFLEN.
|
static |
Definition at line 953 of file pg_locale_libc.c.
References Assert, buf, bufsize, fb(), pg_locale_struct::lt, palloc(), pfree(), strxfrm_l, and TEXTBUFLEN.
|
static |
Definition at line 599 of file pg_locale_libc.c.
References char2wchar(), ereport, errcode(), errmsg(), ERROR, fb(), iswalnum_l, locale_t, pg_locale_struct::lt, palloc(), palloc_array, pfree(), pg_database_encoding_max_length(), towlower_l, towupper_l, and wchar2char().
|
static |
Definition at line 543 of file pg_locale_libc.c.
References fb(), pg_locale_struct::is_default, IS_HIGHBIT_SET, isalnum_l, islower_l, isupper_l, locale_t, pg_locale_struct::lt, tolower_l, and toupper_l.
|
static |
Definition at line 693 of file pg_locale_libc.c.
References char2wchar(), ereport, errcode(), errmsg(), ERROR, fb(), locale_t, pg_locale_struct::lt, palloc(), palloc_array, pfree(), pg_database_encoding_max_length(), towupper_l, and wchar2char().
|
static |
Definition at line 654 of file pg_locale_libc.c.
References fb(), pg_locale_struct::is_default, IS_HIGHBIT_SET, islower_l, locale_t, pg_locale_struct::lt, and toupper_l.
|
static |
Definition at line 308 of file pg_locale_libc.c.
References Assert, fb(), GetDatabaseEncoding(), pg_locale_struct::is_default, pg_locale_struct::lt, pg_ascii_tolower(), PG_UTF8, and towlower_l.
|
static |
Definition at line 294 of file pg_locale_libc.c.
References Assert, fb(), GetDatabaseEncoding(), pg_locale_struct::is_default, pg_locale_struct::lt, pg_ascii_tolower(), PG_UTF8, and tolower_l.
|
static |
Definition at line 280 of file pg_locale_libc.c.
References Assert, fb(), GetDatabaseEncoding(), pg_locale_struct::is_default, pg_locale_struct::lt, pg_ascii_toupper(), PG_UTF8, and towupper_l.
|
static |
Definition at line 266 of file pg_locale_libc.c.
References Assert, fb(), GetDatabaseEncoding(), pg_locale_struct::is_default, pg_locale_struct::lt, pg_ascii_toupper(), PG_UTF8, and toupper_l.
|
static |
Definition at line 207 of file pg_locale_libc.c.
References fb(), iswalnum_l, and pg_locale_struct::lt.
|
static |
Definition at line 136 of file pg_locale_libc.c.
References isalnum_l, and pg_locale_struct::lt.
|
static |
Definition at line 201 of file pg_locale_libc.c.
References fb(), iswalpha_l, and pg_locale_struct::lt.
|
static |
Definition at line 130 of file pg_locale_libc.c.
References isalpha_l, and pg_locale_struct::lt.
|
static |
Definition at line 259 of file pg_locale_libc.c.
References fb(), iswlower_l, iswupper_l, and pg_locale_struct::lt.
|
static |
Definition at line 188 of file pg_locale_libc.c.
References islower_l, isupper_l, and pg_locale_struct::lt.
|
static |
Definition at line 195 of file pg_locale_libc.c.
References fb(), iswdigit_l, and pg_locale_struct::lt.
|
static |
Definition at line 124 of file pg_locale_libc.c.
References isdigit_l, and pg_locale_struct::lt.
|
static |
Definition at line 225 of file pg_locale_libc.c.
References fb(), iswgraph_l, and pg_locale_struct::lt.
|
static |
Definition at line 154 of file pg_locale_libc.c.
References isgraph_l, and pg_locale_struct::lt.
|
static |
Definition at line 219 of file pg_locale_libc.c.
References fb(), iswlower_l, and pg_locale_struct::lt.
|
static |
Definition at line 148 of file pg_locale_libc.c.
References islower_l, and pg_locale_struct::lt.
|
static |
Definition at line 231 of file pg_locale_libc.c.
References fb(), iswprint_l, and pg_locale_struct::lt.
|
static |
Definition at line 160 of file pg_locale_libc.c.
References isprint_l, and pg_locale_struct::lt.
|
static |
Definition at line 237 of file pg_locale_libc.c.
References fb(), iswpunct_l, and pg_locale_struct::lt.
|
static |
Definition at line 166 of file pg_locale_libc.c.
References ispunct_l, and pg_locale_struct::lt.
|
static |
Definition at line 243 of file pg_locale_libc.c.
References fb(), iswspace_l, and pg_locale_struct::lt.
|
static |
Definition at line 172 of file pg_locale_libc.c.
References isspace_l, and pg_locale_struct::lt.
|
static |
Definition at line 213 of file pg_locale_libc.c.
References fb(), iswupper_l, and pg_locale_struct::lt.
|
static |
Definition at line 142 of file pg_locale_libc.c.
References isupper_l, and pg_locale_struct::lt.
|
static |
Definition at line 249 of file pg_locale_libc.c.
References fb(), and pg_locale_struct::lt.
|
static |
Definition at line 178 of file pg_locale_libc.c.
References fb(), and pg_locale_struct::lt.
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().
Definition at line 1177 of file pg_locale_libc.c.
References fb(), and locale_t.
Referenced by wchar2char().
|
static |
Definition at line 421 of file pg_locale_libc.c.
Referenced by create_pg_locale_libc().
|
static |
Definition at line 375 of file pg_locale_libc.c.
Referenced by create_pg_locale_libc().
|
static |
Definition at line 349 of file pg_locale_libc.c.
Referenced by create_pg_locale_libc().
|
static |
Definition at line 398 of file pg_locale_libc.c.
Referenced by create_pg_locale_libc().