| */ | */ | ||||
| typedef uint32_t codepoint_t; | typedef uint32_t codepoint_t; | ||||
| /** @name Unicode General Category | |||||
| * @brief These functions query the General Category property of Unicode codepoints. | |||||
| */ | |||||
| //@{ | |||||
| /** @brief Unicode General Category Groups | /** @brief Unicode General Category Groups | ||||
| * @see http://www.unicode.org/reports/tr44/ | * @see http://www.unicode.org/reports/tr44/ | ||||
| */ | */ | ||||
| */ | */ | ||||
| category lookup_category(codepoint_t c); | category lookup_category(codepoint_t c); | ||||
| //@} | |||||
| /** @name Unicode Script | |||||
| * @brief These functions query the Script property of Unicode codepoints. | |||||
| */ | |||||
| //@{ | |||||
| /** @brief Unicode Script | /** @brief Unicode Script | ||||
| * @see http://www.iana.org/assignments/language-subtag-registry | * @see http://www.iana.org/assignments/language-subtag-registry | ||||
| * @see http://www.unicode.org/iso15924/iso15924-codes.html | * @see http://www.unicode.org/iso15924/iso15924-codes.html | ||||
| */ | */ | ||||
| script lookup_script(codepoint_t c); | script lookup_script(codepoint_t c); | ||||
| //@} | |||||
| /** @name ctype-style APIs | |||||
| * @brief These functions provide wctype compatible functions using the UCD data. | |||||
| */ | |||||
| //@{ | |||||
| /** @brief Is the codepoint an alpha-numeric character? | /** @brief Is the codepoint an alpha-numeric character? | ||||
| * | * | ||||
| * @param c The Unicode codepoint to check. | * @param c The Unicode codepoint to check. | ||||
| */ | */ | ||||
| int isupper(codepoint_t c); | int isupper(codepoint_t c); | ||||
| //@} | |||||
| /** @name Case Conversion APIs | |||||
| * @brief These functions convert Unicode codepoints between lower, upper and title case. | |||||
| */ | |||||
| //@{ | |||||
| /** @brief Convert the Unicode codepoint to upper-case. | /** @brief Convert the Unicode codepoint to upper-case. | ||||
| * | * | ||||
| * This function only uses the simple case mapping present in the | * This function only uses the simple case mapping present in the | ||||
| * this codepoint if there is no upper-case codepoint. | * this codepoint if there is no upper-case codepoint. | ||||
| */ | */ | ||||
| codepoint_t totitle(codepoint_t c); | codepoint_t totitle(codepoint_t c); | ||||
| //@} | |||||
| } | } | ||||
| #endif | #endif |