summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-11-17 22:54:26 +0000
committerMaxime Coste <frrrwww@gmail.com>2013-11-17 23:06:40 +0000
commit7f4d906774163ed0f4d3438ec858a8dd06de2ea3 (patch)
tree2f4f004b1f4b4eba42777cf5d7c89b5857295e47 /src
parent2b9b161d424c1168636042adc6678bb3df2be3f9 (diff)
move is_horizontal_blank to unicode.hh
Diffstat (limited to 'src')
-rw-r--r--src/command_manager.cc5
-rw-r--r--src/unicode.hh5
2 files changed, 5 insertions, 5 deletions
diff --git a/src/command_manager.cc b/src/command_manager.cc
index ac3a5a20..4338e11e 100644
--- a/src/command_manager.cc
+++ b/src/command_manager.cc
@@ -76,11 +76,6 @@ bool is_command_separator(char c)
return c == ';' or c == '\n';
}
-bool is_horizontal_blank(char c)
-{
- return c == ' ' or c == '\t';
-}
-
struct unterminated_string : parse_error
{
unterminated_string(const String& open, const String& close, int nest = 0)
diff --git a/src/unicode.hh b/src/unicode.hh
index db2d1e88..ce7e9be2 100644
--- a/src/unicode.hh
+++ b/src/unicode.hh
@@ -24,6 +24,11 @@ inline bool is_blank(Codepoint c)
return c == ' ' or c == '\t';
}
+inline bool is_horizontal_blank(Codepoint c)
+{
+ return c == ' ' or c == '\t';
+}
+
}
#endif // unicode_hh_INCLUDED