Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Chris Müller
crystal
Commits
b13a7ef3
Commit
b13a7ef3
authored
Nov 02, 2012
by
Chris Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: add prototype module for unicode characters.
parent
de77b3b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
134 additions
and
0 deletions
+134
-0
src/CMakeLists.txt
src/CMakeLists.txt
+2
-0
src/unicode.c
src/unicode.c
+96
-0
src/unicode.h
src/unicode.h
+36
-0
No files found.
src/CMakeLists.txt
View file @
b13a7ef3
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
...
...
src/unicode.c
0 → 100644
View file @
b13a7ef3
/*
* 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
;
}
src/unicode.h
0 → 100644
View file @
b13a7ef3
/*
* 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment