|
PostgreSQL Source Code git master
|
#include "catalog/pg_collation.h"#include "common/unicode_case.h"#include "common/unicode_category.h"#include "utils/pg_locale.h"#include "utils/pg_locale_c.h"

Go to the source code of this file.
Data Structures | |
| struct | pg_ctype_cache |
Typedefs | |
| typedef int(* | regc_wc_probefunc) (pg_wchar c) |
| typedef struct pg_ctype_cache | pg_ctype_cache |
Functions | |
| void | pg_set_regex_collation (Oid collation) |
| static int | regc_wc_isdigit (pg_wchar c) |
| static int | regc_wc_isalpha (pg_wchar c) |
| static int | regc_wc_isalnum (pg_wchar c) |
| static int | regc_wc_isword (pg_wchar c) |
| static int | regc_wc_isupper (pg_wchar c) |
| static int | regc_wc_islower (pg_wchar c) |
| static int | regc_wc_isgraph (pg_wchar c) |
| static int | regc_wc_isprint (pg_wchar c) |
| static int | regc_wc_ispunct (pg_wchar c) |
| static int | regc_wc_isspace (pg_wchar c) |
| static pg_wchar | regc_wc_toupper (pg_wchar c) |
| static pg_wchar | regc_wc_tolower (pg_wchar c) |
| static bool | store_match (pg_ctype_cache *pcc, pg_wchar chr1, int nchrs) |
| static struct cvec * | regc_ctype_get_cache (regc_wc_probefunc probefunc, int cclasscode) |
Variables | |
| static pg_locale_t | pg_regex_locale |
| static struct pg_locale_struct | dummy_c_locale |
| static pg_ctype_cache * | pg_ctype_cache_list = NULL |
| typedef struct pg_ctype_cache pg_ctype_cache |
Definition at line 231 of file regc_pg_locale.c.
| void pg_set_regex_collation | ( | Oid | collation | ) |
Definition at line 40 of file regc_pg_locale.c.
References dummy_c_locale, ereport, errcode(), errhint(), errmsg(), ERROR, locale, OidIsValid, pg_newlocale_from_collation(), and pg_regex_locale.
Referenced by pg_regcomp(), pg_regexec(), and pg_regprefix().
|
static |
Definition at line 291 of file regc_pg_locale.c.
References cvec::cclasscode, cvec::chrs, cvec::chrspace, pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, pg_ctype_cache::cv, free, pg_ctype_cache::locale, malloc, ctype_methods::max_chr, MAX_SIMPLE_CHR, cvec::nchrs, pg_ctype_cache::next, cvec::nranges, pg_ctype_cache_list, pg_regex_locale, pg_ctype_cache::probefunc, cvec::ranges, cvec::rangespace, realloc, and store_match().
Referenced by cclasscvec().
|
static |
Definition at line 113 of file regc_pg_locale.c.
References pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, pg_char_properties, PG_ISALNUM, pg_regex_locale, and ctype_methods::wc_isalnum.
Referenced by cclass_column_index(), cclasscvec(), and regc_wc_isword().
|
static |
Definition at line 103 of file regc_pg_locale.c.
References pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, pg_char_properties, PG_ISALPHA, pg_regex_locale, and ctype_methods::wc_isalpha.
Referenced by cclass_column_index(), and cclasscvec().
|
static |
Definition at line 93 of file regc_pg_locale.c.
References pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, pg_char_properties, PG_ISDIGIT, pg_regex_locale, and ctype_methods::wc_isdigit.
Referenced by cclass_column_index(), and cclasscvec().
|
static |
Definition at line 152 of file regc_pg_locale.c.
References pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, pg_char_properties, PG_ISGRAPH, pg_regex_locale, and ctype_methods::wc_isgraph.
Referenced by cclass_column_index(), and cclasscvec().
|
static |
Definition at line 142 of file regc_pg_locale.c.
References pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, pg_char_properties, PG_ISLOWER, pg_regex_locale, and ctype_methods::wc_islower.
Referenced by cclass_column_index(), and cclasscvec().
|
static |
Definition at line 162 of file regc_pg_locale.c.
References pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, pg_char_properties, PG_ISPRINT, pg_regex_locale, and ctype_methods::wc_isprint.
Referenced by cclass_column_index(), and cclasscvec().
|
static |
Definition at line 172 of file regc_pg_locale.c.
References pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, pg_char_properties, PG_ISPUNCT, pg_regex_locale, and ctype_methods::wc_ispunct.
Referenced by cclass_column_index(), and cclasscvec().
|
static |
Definition at line 182 of file regc_pg_locale.c.
References pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, pg_char_properties, PG_ISSPACE, pg_regex_locale, and ctype_methods::wc_isspace.
Referenced by cclass_column_index(), and cclasscvec().
|
static |
Definition at line 132 of file regc_pg_locale.c.
References pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, pg_char_properties, PG_ISUPPER, pg_regex_locale, and ctype_methods::wc_isupper.
Referenced by cclass_column_index(), and cclasscvec().
|
static |
Definition at line 123 of file regc_pg_locale.c.
References CHR, and regc_wc_isalnum().
Referenced by cclass_column_index(), and cclasscvec().
Definition at line 205 of file regc_pg_locale.c.
References pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, pg_ascii_tolower(), pg_regex_locale, and ctype_methods::wc_tolower.
Referenced by allcases(), casecmp(), and range().
Definition at line 192 of file regc_pg_locale.c.
References pg_locale_struct::ctype, pg_locale_struct::ctype_is_c, pg_ascii_toupper(), pg_regex_locale, and ctype_methods::wc_toupper.
Referenced by allcases(), and range().
|
static |
Definition at line 247 of file regc_pg_locale.c.
References assert, cvec::chrs, cvec::chrspace, pg_ctype_cache::cv, cvec::nchrs, cvec::nranges, cvec::ranges, cvec::rangespace, and realloc.
Referenced by regc_ctype_get_cache().
|
static |
Definition at line 26 of file regc_pg_locale.c.
Referenced by pg_set_regex_collation().
|
static |
Definition at line 241 of file regc_pg_locale.c.
Referenced by regc_ctype_get_cache().
|
static |
Definition at line 24 of file regc_pg_locale.c.
Referenced by pg_set_regex_collation(), regc_ctype_get_cache(), regc_wc_isalnum(), regc_wc_isalpha(), regc_wc_isdigit(), regc_wc_isgraph(), regc_wc_islower(), regc_wc_isprint(), regc_wc_ispunct(), regc_wc_isspace(), regc_wc_isupper(), regc_wc_tolower(), and regc_wc_toupper().