mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-21 03:24:48 +00:00
Add an iswblank compatibility API.
This commit is contained in:
@@ -339,6 +339,13 @@ int ucd_isalnum(codepoint_t c);
|
||||
*/
|
||||
int ucd_isalpha(codepoint_t c);
|
||||
|
||||
/** @brief Is the codepoint a tab or Unicode whitespace character?
|
||||
*
|
||||
* @param c The Unicode codepoint to check.
|
||||
* @return Non-zero if the codepoint is a whitespace character, zero otherwise.
|
||||
*/
|
||||
int ucd_isblank(codepoint_t c);
|
||||
|
||||
/** @brief Is the codepoint a control character?
|
||||
*
|
||||
* @param c The Unicode codepoint to check.
|
||||
@@ -776,6 +783,16 @@ namespace ucd
|
||||
return ucd_isalpha(c);
|
||||
}
|
||||
|
||||
/** @brief Is the codepoint a tab or Unicode whitespace character?
|
||||
*
|
||||
* @param c The Unicode codepoint to check.
|
||||
* @return Non-zero if the codepoint is a whitespace character, zero otherwise.
|
||||
*/
|
||||
inline int isblank(codepoint_t c)
|
||||
{
|
||||
return ucd_isblank(c);
|
||||
}
|
||||
|
||||
/** @brief Is the codepoint a control character?
|
||||
*
|
||||
* @param c The Unicode codepoint to check.
|
||||
|
||||
Reference in New Issue
Block a user