78#define PG_ISDIGIT 0x01
79#define PG_ISALPHA 0x02
80#define PG_ISALNUM (PG_ISDIGIT | PG_ISALPHA)
81#define PG_ISUPPER 0x04
82#define PG_ISLOWER 0x08
83#define PG_ISGRAPH 0x10
84#define PG_ISPRINT 0x20
85#define PG_ISPUNCT 0x40
86#define PG_ISSPACE 0x80
240 (
errcode(ERRCODE_INDETERMINATE_COLLATION),
241 errmsg(
"could not determine which collation to use for regular expression"),
242 errhint(
"Use the COLLATE clause to set the collation explicitly.")));
245 if (collation == C_COLLATION_OID)
259 if (!
locale->deterministic)
261 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
262 errmsg(
"nondeterministic collations are not supported for regular expressions")));
273 else if (
locale->provider == COLLPROVIDER_BUILTIN)
279 else if (
locale->provider == COLLPROVIDER_ICU)
309 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
336 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
363 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
399 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
426 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
453 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
480 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
507 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
534 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
565 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
599 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
744#if MAX_SIMPLE_CHR >= 127
758#if MAX_SIMPLE_CHR >= UCHAR_MAX
779 for (cur_chr = 0; cur_chr <= max_chr; cur_chr++)
781 if ((*probefunc) (cur_chr))
783 else if (nmatches > 0)
785 if (!
store_match(pcc, cur_chr - nmatches, nmatches))
792 if (!
store_match(pcc, cur_chr - nmatches, nmatches))
#define OidIsValid(objectId)
int errhint(const char *fmt,...)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
Assert(PointerIsAligned(start, uint64))
int GetDatabaseEncoding(void)
pg_locale_t pg_newlocale_from_collation(Oid collid)
unsigned char pg_ascii_tolower(unsigned char ch)
unsigned char pg_ascii_toupper(unsigned char ch)
static int pg_wc_islower(pg_wchar c)
static int pg_wc_isword(pg_wchar c)
static int pg_wc_isspace(pg_wchar c)
static pg_wchar pg_wc_tolower(pg_wchar c)
static int pg_wc_ispunct(pg_wchar c)
static pg_ctype_cache * pg_ctype_cache_list
static int pg_wc_isgraph(pg_wchar c)
static pg_wchar pg_wc_toupper(pg_wchar c)
static bool store_match(pg_ctype_cache *pcc, pg_wchar chr1, int nchrs)
static int pg_wc_isprint(pg_wchar c)
static int pg_wc_isalnum(pg_wchar c)
int(* pg_wc_probefunc)(pg_wchar c)
static int pg_wc_isdigit(pg_wchar c)
static PG_Locale_Strategy pg_regex_strategy
@ PG_REGEX_STRATEGY_LIBC_WIDE
@ PG_REGEX_STRATEGY_BUILTIN
@ PG_REGEX_STRATEGY_LIBC_1BYTE
void pg_set_regex_collation(Oid collation)
static struct cvec * pg_ctype_get_cache(pg_wc_probefunc probefunc, int cclasscode)
static pg_locale_t pg_regex_locale
static int pg_wc_isupper(pg_wchar c)
static int pg_wc_isalpha(pg_wchar c)
static const unsigned char pg_char_properties[128]
struct pg_ctype_cache pg_ctype_cache
pg_wc_probefunc probefunc
struct pg_ctype_cache * next
struct pg_locale_struct::@161::@162 builtin
union pg_locale_struct::@161 info
pg_wchar unicode_uppercase_simple(pg_wchar code)
pg_wchar unicode_lowercase_simple(pg_wchar code)
bool pg_u_isspace(pg_wchar code)
bool pg_u_ispunct(pg_wchar code, bool posix)
bool pg_u_isprint(pg_wchar code)
bool pg_u_islower(pg_wchar code)
bool pg_u_isalpha(pg_wchar code)
bool pg_u_isalnum(pg_wchar code, bool posix)
bool pg_u_isupper(pg_wchar code)
bool pg_u_isdigit(pg_wchar code, bool posix)
bool pg_u_isgraph(pg_wchar code)