diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-07 23:30:49 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-08 11:35:51 +0200 |
commit | 40ee1fcfb77731f3cd7385882f41630af6aedb33 (patch) | |
tree | 6b13dd75ca9cfbac7daef4f0d5dc2e342ee9ef7d /src/include/convert.h | |
parent | 1978c49bea5b439d993067c055cec47e70db8fd6 (diff) |
reduce line limit to 95
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; |