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

lib: add prototype module for unicode characters.

parent de77b3b3
set(SOURCES
unittest.c
utf8.c
unicode.c
structures/single_linked_list.c
structures/list.c
structures/red_black_tree.c
......@@ -14,6 +15,7 @@ set(HEADER
unix_colors.h
unittest.h
utf8.h
unicode.h
structures/structures.h
structures/array.h
structures/stack.h
......
/*
* Copyright (c) 2012 Christoph Mueller <ruunhb@googlemail.com>
*
* 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 <http://www.gnu.org/licenses/>.
*
*/
#include "unicode.h"
int
cry_unicode_isblank(unicode ch)
{
return 0;
}
int
cry_unicode_isspace(unicode ch)
{
return 0;
}
int
cry_unicode_isalpha(unicode ch)
{
return 0;
}
int
cry_unicode_isalnum(unicode ch)
{
return 0;
}
int
cry_unicode_isdigit(unicode ch)
{
return 0;
}
int
cry_unicode_ishex(unicode ch)
{
return 0;
}
int
cry_unicode_isoct(unicode ch)
{
return 0;
}
int
cry_unicode_isprint(unicode ch)
{
return 0;
}
int
cry_unicode_isgraph(unicode ch)
{
return 0;
}
int
cry_unicode_ispunct(unicode ch)
{
return 0;
}
int
cry_unicode_isctrl(unicode ch)
{
return 0;
}
/*
* Copyright (c) 2012 Christoph Mueller <ruunhb@googlemail.com>
*
* 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 <http://www.gnu.org/licenses/>.
*
*/
#ifndef CRYSTAL_UNICODE_H
#define CRYSTAL_UNICODE_H
#include "standard.h"
int cry_unicode_isblank(unicode ch);
int cry_unicode_isspace(unicode ch);
int cry_unicode_isalpha(unicode ch);
int cry_unicode_isalnum(unicode ch);
int cry_unicode_isdigit(unicode ch);
int cry_unicode_ishex(unicode ch);
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);
#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