Tweak some character categorization function implementations

This commit is contained in:
Maxime Coste 2017-02-23 00:56:40 +00:00
parent 55f6ca238f
commit 8703f30063

View File

@ -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)