mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-27 05:23:28 +00:00
isdigit: C99 compatibility -- only check [0-9].
This commit is contained in:
+1
-9
@@ -73,15 +73,7 @@ int ucd_iscntrl(codepoint_t c)
|
||||
|
||||
int ucd_isdigit(codepoint_t c)
|
||||
{
|
||||
switch (ucd_lookup_category(c))
|
||||
{
|
||||
case UCD_CATEGORY_Nd:
|
||||
case UCD_CATEGORY_Nl:
|
||||
case UCD_CATEGORY_No:
|
||||
return 1;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
return (c >= 0x30 && c <= 0x39); // [0-9]
|
||||
}
|
||||
|
||||
int ucd_isgraph(codepoint_t c)
|
||||
|
||||
Reference in New Issue
Block a user