From 7f4d906774163ed0f4d3438ec858a8dd06de2ea3 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 17 Nov 2013 22:54:26 +0000 Subject: [PATCH] move is_horizontal_blank to unicode.hh --- src/command_manager.cc | 5 ----- src/unicode.hh | 5 +++++ 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