summaryrefslogtreecommitdiff
path: root/src/selectors.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-09-30 16:23:18 +0200
committerMaxime Coste <frrrwww@gmail.com>2012-09-30 16:23:18 +0200
commit430765e1323398e7540ed49fa9cc1d8d5c134c3f (patch)
treedc95bfd7fcaad921de437d12e44b09243e15b86d /src/selectors.cc
parent801e3eaae25964dd297c3ffeb00fc28475e3da86 (diff)
extract is_alpha to string.hh
Diffstat (limited to 'src/selectors.cc')
-rw-r--r--src/selectors.cc15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/selectors.cc b/src/selectors.cc
index 5282e7f6..2ac1168c 100644
--- a/src/selectors.cc
+++ b/src/selectors.cc
@@ -21,20 +21,9 @@ bool is_blank(char c)
}
template<bool punctuation_is_word = false>
-bool is_word(char c);
-
-template<>
-bool is_word<false>(char c)
+bool is_word(char c)
{
- if (c >= '0' and c <= '9')
- return true;
- if (c >= 'a' and c <= 'z')
- return true;
- if (c >= 'A' and c <= 'Z')
- return true;
- if (c == '_')
- return true;
- return false;
+ return Kakoune::is_word(c);
}
template<>