mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 19:25:27 -07:00
added gu_is_space in gu/utf8.h. this helps to avoid the dependency on the broken unicode library for C.
This commit is contained in:
1 parent
e7749d4a5b
commit
20e4970ec1
1 file changed
+6
@@ -37,4 +37,10 @@ gu_utf8_decode(const uint8_t** utf8);
|
||||
void
|
||||
gu_in_utf8_buf(uint8_t** buf, GuIn* in, GuExn* err);
|
||||
|
||||
bool
|
||||
gu_is_space(uint8_t c) {
|
||||
return (c == '\t' || c == '\n' || c == '\v' ||
|
||||
c == '\f' || c == '\r' || c == ' ');
|
||||
}
|
||||
|
||||
#endif // GU_UTF8_H_
|
||||
Reference in new issue
Block a user