mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
common: Added unicodeLatinDigit
This commit is contained in:
parent
8db7077e12
commit
999cdf0007
2 changed files with 10 additions and 0 deletions
|
@ -78,3 +78,12 @@ bool unicodeLatinAlpha (unsigned int c)
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Digits 0-9.
|
||||||
|
//
|
||||||
|
// TODO This list should be derived from the Unicode database.
|
||||||
|
bool unicodeLatinDigit (unsigned int c)
|
||||||
|
{
|
||||||
|
return c >= 0x30 && c <= 0x39;
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
bool unicodeWhitespace (unsigned int);
|
bool unicodeWhitespace (unsigned int);
|
||||||
bool unicodeLatinAlpha (unsigned int);
|
bool unicodeLatinAlpha (unsigned int);
|
||||||
|
bool unicodeLatinDigit (unsigned int);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue