Browse Source

isdigit: C99 compatibility -- only check [0-9].

master
Reece H. Dunn 8 years ago
parent
commit
01852ee90d
1 changed files with 1 additions and 9 deletions
  1. 1
    9
      src/ctype.c

+ 1
- 9
src/ctype.c View File

@@ -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)

Loading…
Cancel
Save