1/*-------------------------------------------------------------------------
4 * Routines for determining the category of Unicode characters.
6 * These definitions can be used by both frontend and backend code.
8 * Copyright (c) 2017-2025, PostgreSQL Global Development Group
10 * src/include/common/unicode_category.h
12 *-------------------------------------------------------------------------
14#ifndef UNICODE_CATEGORY_H
15#define UNICODE_CATEGORY_H
20 * Unicode General Category Values
22 * See: https://www.unicode.org/reports/tr44/#General_Category_Values
24 * The Unicode stability policy guarantees: "The enumeration of
25 * General_Category property values is fixed. No new values will be
26 * added". See: https://www.unicode.org/policies/stability_policy.html
28 * Numeric values chosen to match corresponding ICU UCharCategory.
91#endif /* UNICODE_CATEGORY_H */
bool pg_u_prop_uppercase(pg_wchar code)
bool pg_u_isspace(pg_wchar code)
bool pg_u_isxdigit(pg_wchar code, bool posix)
bool pg_u_ispunct(pg_wchar code, bool posix)
const char * unicode_category_string(pg_unicode_category category)
bool pg_u_isprint(pg_wchar code)
bool pg_u_islower(pg_wchar code)
const char * unicode_category_abbrev(pg_unicode_category category)
@ PG_U_CONNECTOR_PUNCTUATION
@ PG_U_INITIAL_PUNCTUATION
@ PG_U_PARAGRAPH_SEPARATOR
bool pg_u_prop_white_space(pg_wchar code)
bool pg_u_isblank(pg_wchar code)
bool pg_u_prop_cased(pg_wchar code)
bool pg_u_isalpha(pg_wchar code)
bool pg_u_prop_lowercase(pg_wchar code)
bool pg_u_isalnum(pg_wchar code, bool posix)
bool pg_u_isupper(pg_wchar code)
bool pg_u_prop_alphabetic(pg_wchar code)
bool pg_u_isdigit(pg_wchar code, bool posix)
bool pg_u_iscntrl(pg_wchar code)
bool pg_u_prop_join_control(pg_wchar code)
bool pg_u_isgraph(pg_wchar code)
bool pg_u_isword(pg_wchar code)
bool pg_u_prop_case_ignorable(pg_wchar code)
bool pg_u_prop_hex_digit(pg_wchar code)
pg_unicode_category unicode_category(pg_wchar code)