Tweak some character categorization function implementations
This commit is contained in:
parent
55f6ca238f
commit
8703f30063
|
@ -38,12 +38,12 @@ inline bool is_word(Codepoint c)
|
|||
template<>
|
||||
inline bool is_word<WORD>(Codepoint c)
|
||||
{
|
||||
return not is_horizontal_blank(c) and not is_eol(c);
|
||||
return not is_blank(c);
|
||||
}
|
||||
|
||||
inline bool is_punctuation(Codepoint c)
|
||||
{
|
||||
return not (is_word(c) or is_horizontal_blank(c) or is_eol(c));
|
||||
return not (is_word(c) or is_blank(c));
|
||||
}
|
||||
|
||||
inline bool is_basic_alpha(Codepoint c)
|
||||
|
|
Loading…
Reference in New Issue
Block a user