8.1.2 The bit mask API for general category
The following are the predefined general category value as bit masks.
Additional general categories may be added in the future.
- Macro: uint32_t UC_CATEGORY_MASK_L ¶
- Macro: uint32_t UC_CATEGORY_MASK_LC ¶
- Macro: uint32_t UC_CATEGORY_MASK_Lu ¶
- Macro: uint32_t UC_CATEGORY_MASK_Ll ¶
- Macro: uint32_t UC_CATEGORY_MASK_Lt ¶
- Macro: uint32_t UC_CATEGORY_MASK_Lm ¶
- Macro: uint32_t UC_CATEGORY_MASK_Lo ¶
- Macro: uint32_t UC_CATEGORY_MASK_M ¶
- Macro: uint32_t UC_CATEGORY_MASK_Mn ¶
- Macro: uint32_t UC_CATEGORY_MASK_Mc ¶
- Macro: uint32_t UC_CATEGORY_MASK_Me ¶
- Macro: uint32_t UC_CATEGORY_MASK_N ¶
- Macro: uint32_t UC_CATEGORY_MASK_Nd ¶
- Macro: uint32_t UC_CATEGORY_MASK_Nl ¶
- Macro: uint32_t UC_CATEGORY_MASK_No ¶
- Macro: uint32_t UC_CATEGORY_MASK_P ¶
- Macro: uint32_t UC_CATEGORY_MASK_Pc ¶
- Macro: uint32_t UC_CATEGORY_MASK_Pd ¶
- Macro: uint32_t UC_CATEGORY_MASK_Ps ¶
- Macro: uint32_t UC_CATEGORY_MASK_Pe ¶
- Macro: uint32_t UC_CATEGORY_MASK_Pi ¶
- Macro: uint32_t UC_CATEGORY_MASK_Pf ¶
- Macro: uint32_t UC_CATEGORY_MASK_Po ¶
- Macro: uint32_t UC_CATEGORY_MASK_S ¶
- Macro: uint32_t UC_CATEGORY_MASK_Sm ¶
- Macro: uint32_t UC_CATEGORY_MASK_Sc ¶
- Macro: uint32_t UC_CATEGORY_MASK_Sk ¶
- Macro: uint32_t UC_CATEGORY_MASK_So ¶
- Macro: uint32_t UC_CATEGORY_MASK_Z ¶
- Macro: uint32_t UC_CATEGORY_MASK_Zs ¶
- Macro: uint32_t UC_CATEGORY_MASK_Zl ¶
- Macro: uint32_t UC_CATEGORY_MASK_Zp ¶
- Macro: uint32_t UC_CATEGORY_MASK_C ¶
- Macro: uint32_t UC_CATEGORY_MASK_Cc ¶
- Macro: uint32_t UC_CATEGORY_MASK_Cf ¶
- Macro: uint32_t UC_CATEGORY_MASK_Cs ¶
- Macro: uint32_t UC_CATEGORY_MASK_Co ¶
- Macro: uint32_t UC_CATEGORY_MASK_Cn ¶
The following function views general categories as sets of Unicode characters.
- Function: bool uc_is_general_category_withtable (ucs4_t uc, uint32_t bitmask) ¶
Tests whether a Unicode character belongs to a given category.
The bitmask argument can be a predefined general category bitmask or the
combination of several predefined general category bitmasks.
This function uses a big table comprising all general categories.