diff options
Diffstat (limited to 'src/include/convert.h')
-rw-r--r-- | src/include/convert.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/convert.h b/src/include/convert.h index 2342a70..cfd4747 100644 --- a/src/include/convert.h +++ b/src/include/convert.h @@ -179,7 +179,9 @@ namespace Binc { if (token != "") dest.push_back(token); } - inline void splitAddr(const std::string &s_in, std::vector<std::string> &dest, bool skipempty = true) + inline void splitAddr(const std::string &s_in, + std::vector<std::string> &dest, + bool skipempty = true) { static const std::string delim = ","; std::string token; @@ -217,8 +219,8 @@ namespace Binc { { std::string regex = "^"; for (const char i : s_in) { - if (i == '.' || i == '[' || i == ']' || i == '{' || i == '}' || i == '(' || i == ')' || i == '^' - || i == '$' || i == '?' || i == '+' || i == '\\') + if (i == '.' || i == '[' || i == ']' || i == '{' || i == '}' || i == '(' || i == ')' + || i == '^' || i == '$' || i == '?' || i == '+' || i == '\\') { regex += "\\"; regex += i; |