Add an iswxdigit compatibility API.

This commit is contained in:
Reece H. Dunn
2017-02-11 18:18:38 +00:00
parent 3e321158e7
commit 34167771fd
7 changed files with 48 additions and 16 deletions
+17
View File
@@ -402,6 +402,13 @@ int ucd_isspace(codepoint_t c);
*/
int ucd_isupper(codepoint_t c);
/** @brief Is the codepoint in the 'xdigit' class?
*
* @param c The Unicode codepoint to check.
* @return Non-zero if the codepoint is in the 'xdigit' class, zero otherwise.
*/
int ucd_isxdigit(codepoint_t c);
/** @brief Convert the Unicode codepoint to upper-case.
*
* This function only uses the simple case mapping present in the
@@ -873,6 +880,16 @@ namespace ucd
return ucd_isupper(c);
}
/** @brief Is the codepoint in the 'xdigit' class?
*
* @param c The Unicode codepoint to check.
* @return Non-zero if the codepoint is in the 'xdigit' class, zero otherwise.
*/
inline int isxdigit(codepoint_t c)
{
return ucd_isxdigit(c);
}
/** @brief Convert the Unicode codepoint to upper-case.
*
* This function only uses the simple case mapping present in the