Commit d6691d7d authored by Chris Müller's avatar Chris Müller

lib: add dummy implementation for unicode.h (will change in the future)

parent e945050f
......@@ -16,74 +16,75 @@
*
*/
#include <ctype.h>
#include "unicode.h"
int
cry_unicode_isblank(unicode ch)
{
return 0;
return isblank(ch);
}
int
cry_unicode_isspace(unicode ch)
{
return 0;
return isspace(ch);
}
int
cry_unicode_isalpha(unicode ch)
{
return 0;
return isalpha(ch);
}
int
cry_unicode_isalnum(unicode ch)
{
return 0;
return isalnum(ch);
}
int
cry_unicode_isdigit(unicode ch)
{
return 0;
return isdigit(ch);
}
int
cry_unicode_ishex(unicode ch)
{
return 0;
return ('0' <= ch && ch <= '9') || ('a' <= ch && ch <= 'f') || ('a' <= ch && ch <= 'f');
}
int
cry_unicode_isoct(unicode ch)
cry_unicode_iscntrl(unicode ch)
{
return 0;
return iscntrl(ch);
}
int
cry_unicode_isprint(unicode ch)
{
return 0;
return isprint(ch);
}
int
cry_unicode_isgraph(unicode ch)
{
return 0;
return isgraph(ch);
}
int
cry_unicode_ispunct(unicode ch)
{
return 0;
return ispunct(ch);
}
......
......@@ -31,6 +31,6 @@ int cry_unicode_isoct(unicode ch);
int cry_unicode_isprint(unicode ch);
int cry_unicode_isgraph(unicode ch);
int cry_unicode_ispunct(unicode ch);
int cry_unicode_isctrl(unicode ch);
int cry_unicode_iscntrl(unicode ch);
#endif // CRYSTAL_UNICODE_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment