diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-11-15 13:24:39 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-11-15 13:24:39 +0000 |
| commit | 1bf0a964ce51324377754e224bbbde2f4114b67b (patch) | |
| tree | 2952af30017d1e7051fea19fc66fbe34f91ba0a4 /src/unicode.hh | |
| parent | 111732005a58d991df3555ad3b349952bf6f24f7 (diff) | |
Move is_basic_alpha to unicode.hh
Diffstat (limited to 'src/unicode.hh')
| -rw-r--r-- | src/unicode.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unicode.hh b/src/unicode.hh index 37f3541b..a3c9313d 100644 --- a/src/unicode.hh +++ b/src/unicode.hh @@ -42,6 +42,11 @@ inline bool is_punctuation(Codepoint c) return not (is_word(c) or is_horizontal_blank(c) or is_eol(c)); } +inline bool is_basic_alpha(Codepoint c) +{ + return (c >= 'a' and c <= 'z') or (c >= 'A' and c <= 'Z'); +} + enum class CharCategories { Blank, |
