Clang compatibility
This commit is contained in:
@@ -69,23 +69,23 @@ freeTokenizer(utf8iterator* iter) {
|
||||
utf8FreeIterator(iter);
|
||||
}
|
||||
|
||||
inline int
|
||||
int
|
||||
greekChar(uint32_t ch) {
|
||||
return (((0x370 <= ch) && (ch <= 0x3ff)) ||
|
||||
((0x1f00 <= ch) && (ch <= 0x1fff)));
|
||||
}
|
||||
|
||||
inline int
|
||||
int
|
||||
extendedPunctuation(uint32_t ch) {
|
||||
return ((0x2000 <= ch) && (ch <= 0x206f));
|
||||
}
|
||||
|
||||
inline int
|
||||
int
|
||||
latinChar(uint32_t ch) {
|
||||
return (ch <= 0xff) || extendedPunctuation(ch);
|
||||
}
|
||||
|
||||
inline int
|
||||
int
|
||||
httpAt(Tokenizer tokenizer) {
|
||||
return ((tolower(tokenizer->txt[tokenizer->byteIndex]) == 'h') &&
|
||||
(tolower(tokenizer->txt[tokenizer->byteIndex + 1]) == 't') &&
|
||||
|
||||
Reference in New Issue
Block a user