Move is_basic_alpha to unicode.hh

This commit is contained in:
Maxime Coste 2015-11-15 13:24:39 +00:00
parent 111732005a
commit 1bf0a964ce
2 changed files with 5 additions and 5 deletions

View File

@ -1073,11 +1073,6 @@ void select_to_next_char(Context& context, NormalParams params)
}, "select to next char","enter char to select to");
}
static bool is_basic_alpha(Codepoint c)
{
return (c >= 'a' and c <= 'z') or (c >= 'A' and c <= 'Z');
}
void start_or_end_macro_recording(Context& context, NormalParams params)
{
if (context.input_handler().is_recording())

View File

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