PostgreSQL Source Code git master
|
#include "mb/pg_wchar.h"
Go to the source code of this file.
Typedefs | |
typedef enum pg_unicode_category | pg_unicode_category |
Enumerations | |
enum | pg_unicode_category { PG_U_UNASSIGNED = 0 , PG_U_UPPERCASE_LETTER = 1 , PG_U_LOWERCASE_LETTER = 2 , PG_U_TITLECASE_LETTER = 3 , PG_U_MODIFIER_LETTER = 4 , PG_U_OTHER_LETTER = 5 , PG_U_NONSPACING_MARK = 6 , PG_U_ENCLOSING_MARK = 7 , PG_U_SPACING_MARK = 8 , PG_U_DECIMAL_NUMBER = 9 , PG_U_LETTER_NUMBER = 10 , PG_U_OTHER_NUMBER = 11 , PG_U_SPACE_SEPARATOR = 12 , PG_U_LINE_SEPARATOR = 13 , PG_U_PARAGRAPH_SEPARATOR = 14 , PG_U_CONTROL = 15 , PG_U_FORMAT = 16 , PG_U_PRIVATE_USE = 17 , PG_U_SURROGATE = 18 , PG_U_DASH_PUNCTUATION = 19 , PG_U_OPEN_PUNCTUATION = 20 , PG_U_CLOSE_PUNCTUATION = 21 , PG_U_CONNECTOR_PUNCTUATION = 22 , PG_U_OTHER_PUNCTUATION = 23 , PG_U_MATH_SYMBOL = 24 , PG_U_CURRENCY_SYMBOL = 25 , PG_U_MODIFIER_SYMBOL = 26 , PG_U_OTHER_SYMBOL = 27 , PG_U_INITIAL_PUNCTUATION = 28 , PG_U_FINAL_PUNCTUATION = 29 } |
typedef enum pg_unicode_category pg_unicode_category |
enum pg_unicode_category |
Definition at line 30 of file unicode_category.h.
bool pg_u_isalnum | ( | pg_wchar | code, |
bool | posix | ||
) |
Definition at line 226 of file unicode_category.c.
References pg_u_isalpha(), and pg_u_isdigit().
Referenced by initcap_wbnext(), and pg_wc_isalnum().
bool pg_u_isalpha | ( | pg_wchar | code | ) |
Definition at line 220 of file unicode_category.c.
References pg_u_prop_alphabetic().
Referenced by pg_u_isalnum(), pg_u_ispunct(), pg_u_isword(), and pg_wc_isalpha().
bool pg_u_isblank | ( | pg_wchar | code | ) |
Definition at line 255 of file unicode_category.c.
References PG_U_CHARACTER_TAB, PG_U_SPACE_SEPARATOR, and unicode_category().
Referenced by pg_u_isprint().
bool pg_u_iscntrl | ( | pg_wchar | code | ) |
Definition at line 262 of file unicode_category.c.
References PG_U_CONTROL, and unicode_category().
bool pg_u_isdigit | ( | pg_wchar | code, |
bool | posix | ||
) |
Definition at line 211 of file unicode_category.c.
References PG_U_DECIMAL_NUMBER, and unicode_category().
Referenced by pg_u_isalnum(), and pg_wc_isdigit().
bool pg_u_isgraph | ( | pg_wchar | code | ) |
Definition at line 268 of file unicode_category.c.
References PG_U_CATEGORY_MASK, PG_U_CC_MASK, PG_U_CN_MASK, PG_U_CS_MASK, pg_u_isspace(), and unicode_category().
Referenced by pg_u_isprint(), and pg_wc_isgraph().
bool pg_u_islower | ( | pg_wchar | code | ) |
Definition at line 249 of file unicode_category.c.
References pg_u_prop_lowercase().
Referenced by pg_wc_islower().
bool pg_u_isprint | ( | pg_wchar | code | ) |
Definition at line 279 of file unicode_category.c.
References PG_U_CONTROL, pg_u_isblank(), pg_u_isgraph(), and unicode_category().
Referenced by pg_wc_isprint().
bool pg_u_ispunct | ( | pg_wchar | code, |
bool | posix | ||
) |
Definition at line 290 of file unicode_category.c.
References PG_U_CATEGORY_MASK, pg_u_isalpha(), PG_U_P_MASK, PG_U_S_MASK, and unicode_category().
Referenced by pg_wc_ispunct().
bool pg_u_isspace | ( | pg_wchar | code | ) |
Definition at line 311 of file unicode_category.c.
References pg_u_prop_white_space().
Referenced by pg_u_isgraph(), and pg_wc_isspace().
bool pg_u_isupper | ( | pg_wchar | code | ) |
Definition at line 243 of file unicode_category.c.
References pg_u_prop_uppercase().
Referenced by pg_wc_isupper().
bool pg_u_isword | ( | pg_wchar | code | ) |
Definition at line 232 of file unicode_category.c.
References PG_U_CATEGORY_MASK, pg_u_isalpha(), PG_U_M_MASK, PG_U_ND_MASK, PG_U_PC_MASK, pg_u_prop_join_control(), and unicode_category().
bool pg_u_isxdigit | ( | pg_wchar | code, |
bool | posix | ||
) |
Definition at line 317 of file unicode_category.c.
References PG_U_DECIMAL_NUMBER, pg_u_prop_hex_digit(), and unicode_category().
bool pg_u_prop_alphabetic | ( | pg_wchar | code | ) |
Definition at line 111 of file unicode_category.c.
References lengthof, PG_U_PROP_ALPHABETIC, pg_unicode_properties::properties, range_search(), unicode_alphabetic, and unicode_opt_ascii.
Referenced by pg_u_isalpha().
bool pg_u_prop_case_ignorable | ( | pg_wchar | code | ) |
Definition at line 159 of file unicode_category.c.
References lengthof, PG_U_PROP_CASE_IGNORABLE, pg_unicode_properties::properties, range_search(), unicode_case_ignorable, and unicode_opt_ascii.
Referenced by check_final_sigma().
bool pg_u_prop_cased | ( | pg_wchar | code | ) |
Definition at line 144 of file unicode_category.c.
References PG_U_CATEGORY_MASK, PG_U_LT_MASK, PG_U_PROP_CASED, pg_u_prop_lowercase(), pg_u_prop_uppercase(), pg_unicode_properties::properties, unicode_category(), and unicode_opt_ascii.
Referenced by check_final_sigma().
bool pg_u_prop_hex_digit | ( | pg_wchar | code | ) |
Definition at line 181 of file unicode_category.c.
References lengthof, PG_U_PROP_HEX_DIGIT, pg_unicode_properties::properties, range_search(), unicode_hex_digit, and unicode_opt_ascii.
Referenced by pg_u_isxdigit().
bool pg_u_prop_join_control | ( | pg_wchar | code | ) |
Definition at line 192 of file unicode_category.c.
References lengthof, PG_U_PROP_JOIN_CONTROL, pg_unicode_properties::properties, range_search(), unicode_join_control, and unicode_opt_ascii.
Referenced by pg_u_isword().
bool pg_u_prop_lowercase | ( | pg_wchar | code | ) |
Definition at line 122 of file unicode_category.c.
References lengthof, PG_U_PROP_LOWERCASE, pg_unicode_properties::properties, range_search(), unicode_lowercase, and unicode_opt_ascii.
Referenced by pg_u_islower(), and pg_u_prop_cased().
bool pg_u_prop_uppercase | ( | pg_wchar | code | ) |
Definition at line 133 of file unicode_category.c.
References lengthof, PG_U_PROP_UPPERCASE, pg_unicode_properties::properties, range_search(), unicode_opt_ascii, and unicode_uppercase.
Referenced by pg_u_isupper(), and pg_u_prop_cased().
bool pg_u_prop_white_space | ( | pg_wchar | code | ) |
Definition at line 170 of file unicode_category.c.
References lengthof, PG_U_PROP_WHITE_SPACE, pg_unicode_properties::properties, range_search(), unicode_opt_ascii, and unicode_white_space.
Referenced by pg_u_isspace().
pg_unicode_category unicode_category | ( | pg_wchar | code | ) |
Definition at line 85 of file unicode_category.c.
References Assert(), pg_category_range::category, pg_unicode_properties::category, lengthof, PG_U_UNASSIGNED, unicode_categories, and unicode_opt_ascii.
Referenced by pg_u_isblank(), pg_u_iscntrl(), pg_u_isdigit(), pg_u_isgraph(), pg_u_isprint(), pg_u_ispunct(), pg_u_isword(), pg_u_isxdigit(), pg_u_prop_cased(), and unicode_assigned().
const char * unicode_category_abbrev | ( | pg_unicode_category | category | ) |
Definition at line 406 of file unicode_category.c.
References Assert(), PG_U_CLOSE_PUNCTUATION, PG_U_CONNECTOR_PUNCTUATION, PG_U_CONTROL, PG_U_CURRENCY_SYMBOL, PG_U_DASH_PUNCTUATION, PG_U_DECIMAL_NUMBER, PG_U_ENCLOSING_MARK, PG_U_FINAL_PUNCTUATION, PG_U_FORMAT, PG_U_INITIAL_PUNCTUATION, PG_U_LETTER_NUMBER, PG_U_LINE_SEPARATOR, PG_U_LOWERCASE_LETTER, PG_U_MATH_SYMBOL, PG_U_MODIFIER_LETTER, PG_U_MODIFIER_SYMBOL, PG_U_NONSPACING_MARK, PG_U_OPEN_PUNCTUATION, PG_U_OTHER_LETTER, PG_U_OTHER_NUMBER, PG_U_OTHER_PUNCTUATION, PG_U_OTHER_SYMBOL, PG_U_PARAGRAPH_SEPARATOR, PG_U_PRIVATE_USE, PG_U_SPACE_SEPARATOR, PG_U_SPACING_MARK, PG_U_SURROGATE, PG_U_TITLECASE_LETTER, PG_U_UNASSIGNED, and PG_U_UPPERCASE_LETTER.
const char * unicode_category_string | ( | pg_unicode_category | category | ) |
Definition at line 332 of file unicode_category.c.
References Assert(), PG_U_CLOSE_PUNCTUATION, PG_U_CONNECTOR_PUNCTUATION, PG_U_CONTROL, PG_U_CURRENCY_SYMBOL, PG_U_DASH_PUNCTUATION, PG_U_DECIMAL_NUMBER, PG_U_ENCLOSING_MARK, PG_U_FINAL_PUNCTUATION, PG_U_FORMAT, PG_U_INITIAL_PUNCTUATION, PG_U_LETTER_NUMBER, PG_U_LINE_SEPARATOR, PG_U_LOWERCASE_LETTER, PG_U_MATH_SYMBOL, PG_U_MODIFIER_LETTER, PG_U_MODIFIER_SYMBOL, PG_U_NONSPACING_MARK, PG_U_OPEN_PUNCTUATION, PG_U_OTHER_LETTER, PG_U_OTHER_NUMBER, PG_U_OTHER_PUNCTUATION, PG_U_OTHER_SYMBOL, PG_U_PARAGRAPH_SEPARATOR, PG_U_PRIVATE_USE, PG_U_SPACE_SEPARATOR, PG_U_SPACING_MARK, PG_U_SURROGATE, PG_U_TITLECASE_LETTER, PG_U_UNASSIGNED, and PG_U_UPPERCASE_LETTER.