|
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 |
Variables | |
| static const struct ctype_methods | ctype_methods_libc_sb |
| static const struct ctype_methods | ctype_methods_libc_other_mb |
| static const struct ctype_methods | ctype_methods_libc_utf8 |
| static const struct collate_methods | collate_methods_libc |
| #define TEXTBUFLEN 1024 |
Definition at line 76 of file pg_locale_libc.c.
|
static |
Definition at line 1297 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(), result, and str.
Referenced by strlower_libc_mb(), strtitle_libc_mb(), and strupper_libc_mb().
|
extern |
Definition at line 773 of file pg_locale_libc.c.
References collate_methods_libc, collid, ctype_methods_libc_other_mb, ctype_methods_libc_sb, ctype_methods_libc_utf8, elog, ERROR, fb(), GetDatabaseEncoding(), HeapTupleIsValid, locale_t, make_libc_collator(), MemoryContextAllocZero(), MyDatabaseId, ObjectIdGetDatum(), pg_database_encoding_max_length(), PG_UTF8, ReleaseSysCache(), result, SearchSysCache1(), SysCacheGetAttrNotNull(), and TextDatumGetCString.
Referenced by create_pg_locale(), and init_database_collation().
|
static |
Definition at line 371 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 1012 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 857 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 1199 of file pg_locale_libc.c.
References fb(), locale_t, and result.
Referenced by char2wchar().
Definition at line 1165 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 965 of file pg_locale_libc.c.
References fb(), pg_locale_struct::lt, and strcoll_l.
|
static |
Definition at line 542 of file pg_locale_libc.c.
References char2wchar(), ereport, errcode(), errmsg, ERROR, fb(), locale_t, pg_locale_struct::lt, memcpy(), palloc(), palloc_array, pfree(), pg_database_encoding_max_length(), result, towlower_l, and wchar2char().
|
static |
Definition at line 506 of file pg_locale_libc.c.
References fb(), pg_locale_struct::is_default, IS_HIGHBIT_SET, isupper_l, locale_t, pg_locale_struct::lt, memcpy(), and tolower_l.
|
static |
Definition at line 926 of file pg_locale_libc.c.
References buf, fb(), pg_locale_struct::lt, memcpy(), palloc(), pfree(), result, strcoll_l, and TEXTBUFLEN.
|
static |
Definition at line 976 of file pg_locale_libc.c.
References Assert, buf, bufsize, fb(), pg_locale_struct::lt, memcpy(), palloc(), pfree(), result, strxfrm_l, and TEXTBUFLEN.
|
static |
Definition at line 640 of file pg_locale_libc.c.
References char2wchar(), ereport, errcode(), errmsg, ERROR, fb(), iswalnum_l, locale_t, pg_locale_struct::lt, memcpy(), palloc(), palloc_array, pfree(), pg_database_encoding_max_length(), result, towlower_l, towupper_l, and wchar2char().
|
static |
Definition at line 587 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, memcpy(), tolower_l, and toupper_l.
|
static |
Definition at line 728 of file pg_locale_libc.c.
References char2wchar(), ereport, errcode(), errmsg, ERROR, fb(), locale_t, pg_locale_struct::lt, memcpy(), palloc(), palloc_array, pfree(), pg_database_encoding_max_length(), result, towupper_l, and wchar2char().
|
static |
Definition at line 692 of file pg_locale_libc.c.
References fb(), pg_locale_struct::is_default, IS_HIGHBIT_SET, islower_l, locale_t, pg_locale_struct::lt, memcpy(), and toupper_l.
|
static |
Definition at line 1006 of file pg_locale_libc.c.
References fb(), pg_locale_struct::lt, and strxfrm_l.
|
static |
Definition at line 353 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 339 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 325 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 311 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 234 of file pg_locale_libc.c.
References fb(), iswalnum_l, and pg_locale_struct::lt.
|
static |
Definition at line 141 of file pg_locale_libc.c.
References fb(), isalnum_l, and pg_locale_struct::lt.
|
static |
Definition at line 226 of file pg_locale_libc.c.
References fb(), iswalpha_l, and pg_locale_struct::lt.
|
static |
Definition at line 133 of file pg_locale_libc.c.
References fb(), isalpha_l, and pg_locale_struct::lt.
|
static |
Definition at line 302 of file pg_locale_libc.c.
References fb(), iswlower_l, iswupper_l, and pg_locale_struct::lt.
|
static |
|
static |
Definition at line 218 of file pg_locale_libc.c.
References fb(), iswdigit_l, and pg_locale_struct::lt.
|
static |
Definition at line 125 of file pg_locale_libc.c.
References fb(), isdigit_l, and pg_locale_struct::lt.
|
static |
Definition at line 258 of file pg_locale_libc.c.
References fb(), iswgraph_l, and pg_locale_struct::lt.
|
static |
Definition at line 165 of file pg_locale_libc.c.
References fb(), isgraph_l, and pg_locale_struct::lt.
|
static |
Definition at line 250 of file pg_locale_libc.c.
References fb(), iswlower_l, and pg_locale_struct::lt.
|
static |
Definition at line 157 of file pg_locale_libc.c.
References fb(), islower_l, and pg_locale_struct::lt.
|
static |
Definition at line 266 of file pg_locale_libc.c.
References fb(), iswprint_l, and pg_locale_struct::lt.
|
static |
Definition at line 173 of file pg_locale_libc.c.
References fb(), isprint_l, and pg_locale_struct::lt.
|
static |
Definition at line 274 of file pg_locale_libc.c.
References fb(), iswpunct_l, and pg_locale_struct::lt.
|
static |
Definition at line 181 of file pg_locale_libc.c.
References fb(), ispunct_l, and pg_locale_struct::lt.
|
static |
Definition at line 282 of file pg_locale_libc.c.
References fb(), iswspace_l, and pg_locale_struct::lt.
|
static |
Definition at line 189 of file pg_locale_libc.c.
References fb(), isspace_l, and pg_locale_struct::lt.
|
static |
Definition at line 242 of file pg_locale_libc.c.
References fb(), iswupper_l, and pg_locale_struct::lt.
|
static |
Definition at line 149 of file pg_locale_libc.c.
References fb(), isupper_l, and pg_locale_struct::lt.
|
static |
Definition at line 290 of file pg_locale_libc.c.
References fb(), and pg_locale_struct::lt.
|
static |
Definition at line 197 of file pg_locale_libc.c.
References fb(), and pg_locale_struct::lt.
Definition at line 1243 of file pg_locale_libc.c.
References Assert, fb(), GetDatabaseEncoding(), locale_t, PG_UTF8, result, and wcstombs_l().
Referenced by set_backtrace(), strlower_libc_mb(), strtitle_libc_mb(), and strupper_libc_mb().
Definition at line 1215 of file pg_locale_libc.c.
References fb(), locale_t, and result.
Referenced by wchar2char().
|
static |
Definition at line 466 of file pg_locale_libc.c.
Referenced by create_pg_locale_libc().
|
static |
Definition at line 420 of file pg_locale_libc.c.
Referenced by create_pg_locale_libc().
|
static |
Definition at line 394 of file pg_locale_libc.c.
Referenced by create_pg_locale_libc().
|
static |
Definition at line 443 of file pg_locale_libc.c.
Referenced by create_pg_locale_libc().