/* * Copyright (c) 2012 Christoph Mueller * * Crystal is free software: you can redistribute it and/or modify * it under the terms of the Lesser GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Crystal is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * Lesser GNU General Public License for more details. * * You should have received a copy of the Lesser GNU General Public License * along with this program. If not, see . * */ #include #include "unicode.h" int cry_unicode_isblank(unicode ch) { return isblank(ch); } int cry_unicode_isspace(unicode ch) { return isspace(ch); } int cry_unicode_isalpha(unicode ch) { return isalpha(ch); } int cry_unicode_isalnum(unicode ch) { return isalnum(ch); } int cry_unicode_isdigit(unicode ch) { return isdigit(ch); } int cry_unicode_ishex(unicode ch) { return ('0' <= ch && ch <= '9') || ('a' <= ch && ch <= 'f') || ('a' <= ch && ch <= 'f'); } int cry_unicode_iscntrl(unicode ch) { return iscntrl(ch); } int cry_unicode_isprint(unicode ch) { return isprint(ch); } int cry_unicode_isgraph(unicode ch) { return isgraph(ch); } int cry_unicode_ispunct(unicode ch) { return ispunct(ch); } int cry_unicode_isctrl(unicode ch) { return 0; }