From 4ee5c993aca1fe24e6cb2a132957502024e035c2 Mon Sep 17 00:00:00 2001 From: Shawn M Date: Sat, 13 Apr 2024 14:55:00 -0700 Subject: [PATCH] Update util.h --- src/util.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util.h b/src/util.h index 7f70d1bc..00bc7497 100644 --- a/src/util.h +++ b/src/util.h @@ -376,9 +376,10 @@ std::string HexStr(const T itbegin, const T itend, bool fSpaces=false) } template -inline std::string HexStr(const T& vch, bool fSpaces=false) +void skipspaces(T& it) { - return HexStr(vch.begin(), vch.end(), fSpaces); + while (isspace(*it)) + ++it; } inline int64_t GetPerformanceCounter()