81 #define PG_ISDIGIT 0x01
82 #define PG_ISALPHA 0x02
83 #define PG_ISALNUM (PG_ISDIGIT | PG_ISALPHA)
84 #define PG_ISUPPER 0x04
85 #define PG_ISLOWER 0x08
86 #define PG_ISGRAPH 0x10
87 #define PG_ISPRINT 0x20
88 #define PG_ISPUNCT 0x40
89 #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.")));
258 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
259 errmsg(
"nondeterministic collations are not supported for regular expressions")));
294 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
295 return iswdigit((wint_t)
c);
299 isdigit((
unsigned char)
c));
301 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
326 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
327 return iswalpha((wint_t)
c);
331 isalpha((
unsigned char)
c));
333 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
358 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
359 return iswalnum((wint_t)
c);
363 isalnum((
unsigned char)
c));
365 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
399 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
400 return iswupper((wint_t)
c);
404 isupper((
unsigned char)
c));
406 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
431 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
432 return iswlower((wint_t)
c);
436 islower((
unsigned char)
c));
438 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
463 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
464 return iswgraph((wint_t)
c);
468 isgraph((
unsigned char)
c));
470 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
495 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
496 return iswprint((wint_t)
c);
500 isprint((
unsigned char)
c));
502 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
527 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
528 return iswpunct((wint_t)
c);
532 ispunct((
unsigned char)
c));
534 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
559 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
560 return iswspace((wint_t)
c);
564 isspace((
unsigned char)
c));
566 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
595 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
596 return towupper((wint_t)
c);
603 return toupper((
unsigned char)
c);
606 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
635 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
636 return towlower((wint_t)
c);
643 return tolower((
unsigned char)
c);
646 if (
sizeof(
wchar_t) >= 4 ||
c <= (
pg_wchar) 0xFFFF)
788 #if MAX_SIMPLE_CHR >= 127
801 #if MAX_SIMPLE_CHR >= UCHAR_MAX
821 for (cur_chr = 0; cur_chr <= max_chr; cur_chr++)
823 if ((*probefunc) (cur_chr))
825 else if (nmatches > 0)
827 if (!
store_match(pcc, cur_chr - nmatches, nmatches))
834 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,...)
int GetDatabaseEncoding(void)
pg_locale_t pg_newlocale_from_collation(Oid collid)
bool lc_ctype_is_c(Oid collation)
bool pg_locale_deterministic(pg_locale_t locale)
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 struct cvec * pg_ctype_get_cache(pg_wc_probefunc probefunc, int cclasscode)
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_LOCALE_1BYTE_L
void pg_set_regex_collation(Oid collation)
static Oid pg_regex_collation
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
union pg_locale_struct::@145 info