forked from GitHub/gf-core
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:
@@ -37,4 +37,10 @@ gu_utf8_decode(const uint8_t** utf8);
|
|||||||
void
|
void
|
||||||
gu_in_utf8_buf(uint8_t** buf, GuIn* in, GuExn* err);
|
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_
|
#endif // GU_UTF8_H_
|
||||||
|
|||||||
Reference in New Issue
Block a user