From 08e5bc7e3ef49db5d78fa1021bfd32315097b56b Mon Sep 17 00:00:00 2001 From: Tom Early Date: Fri, 24 Jul 2020 06:39:08 -0700 Subject: [PATCH] join --- Utilities.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Utilities.h b/Utilities.h index f61b109..1a33aeb 100644 --- a/Utilities.h +++ b/Utilities.h @@ -5,19 +5,13 @@ // trim from start (in place) static inline void ltrim(std::string &s) { - s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](int ch) - { - return !std::isspace(ch); - })); + s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](int ch) { return !std::isspace(ch); })); } // trim from end (in place) static inline void rtrim(std::string &s) { - s.erase(std::find_if(s.rbegin(), s.rend(), [](int ch) - { - return !std::isspace(ch); - }).base(), s.end()); + s.erase(std::find_if(s.rbegin(), s.rend(), [](int ch) { return !std::isspace(ch); }).base(), s.end()); } // trim from both ends (in place)