PostgreSQL Source Code git master
|
#include "postgres.h"
#include "catalog/pg_database.h"
#include "catalog/pg_collation.h"
#include "common/unicode_case.h"
#include "common/unicode_category.h"
#include "mb/pg_wchar.h"
#include "miscadmin.h"
#include "utils/builtins.h"
#include "utils/memutils.h"
#include "utils/pg_locale.h"
#include "utils/syscache.h"
Go to the source code of this file.
Data Structures | |
struct | WordBoundaryState |
Functions | |
pg_locale_t | create_pg_locale_builtin (Oid collid, MemoryContext context) |
char * | get_collation_actual_version_builtin (const char *collcollate) |
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 | strfold_builtin (char *dst, size_t dstsize, const char *src, ssize_t srclen, pg_locale_t locale) |
static size_t | initcap_wbnext (void *state) |
pg_locale_t create_pg_locale_builtin | ( | Oid | collid, |
MemoryContext | context | ||
) |
Definition at line 121 of file pg_locale_builtin.c.
References pg_locale_struct::builtin, builtin_validate_locale(), pg_locale_struct::casemap_full, pg_locale_struct::collate_is_c, collid, 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().
char * get_collation_actual_version_builtin | ( | const char * | collcollate | ) |
Definition at line 168 of file pg_locale_builtin.c.
References ereport, errcode(), errmsg(), and ERROR.
Referenced by get_collation_actual_version().
|
static |
Definition at line 52 of file pg_locale_builtin.c.
References WordBoundaryState::init, WordBoundaryState::len, WordBoundaryState::offset, pg_u_isalnum(), WordBoundaryState::prev_alnum, WordBoundaryState::str, unicode_utf8len(), and utf8_to_unicode().
Referenced by strtitle_builtin().
size_t strfold_builtin | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 113 of file pg_locale_builtin.c.
References generate_unaccent_rules::dest, locale, and unicode_strfold().
Referenced by pg_strfold().
size_t strlower_builtin | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 80 of file pg_locale_builtin.c.
References generate_unaccent_rules::dest, locale, and unicode_strlower().
Referenced by pg_strlower().
size_t strtitle_builtin | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 88 of file pg_locale_builtin.c.
References generate_unaccent_rules::dest, initcap_wbnext(), locale, WordBoundaryState::str, and unicode_strtitle().
Referenced by pg_strtitle().
size_t strupper_builtin | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
pg_locale_t | locale | ||
) |
Definition at line 105 of file pg_locale_builtin.c.
References generate_unaccent_rules::dest, locale, and unicode_strupper().
Referenced by pg_strupper().