From 1bf0a964ce51324377754e224bbbde2f4114b67b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 15 Nov 2015 13:24:39 +0000 Subject: [PATCH] Move is_basic_alpha to unicode.hh --- src/normal.cc | 5 ----- src/unicode.hh | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/normal.cc b/src/normal.cc index 2b279ace..8a3da241 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -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()) 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,