From 0bf4ad9e4a9e1c97e92aa23a365405dfef89bd7c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 17 Jan 2021 19:36:30 +0000 Subject: Big reshuffle Fixes code quality warnings now picked up. --- util.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 util.h (limited to 'util.h') diff --git a/util.h b/util.h deleted file mode 100644 index 83de626..0000000 --- a/util.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef UTIL_H_INCLUDED -#define UTIL_H_INCLUDED - -#include -#include - -namespace Util { - std::vector - Split(const std::string & s, char delim) - { - std::vector elems; - - const char * cstr = s.c_str(); - unsigned int strLength = s.length(); - unsigned int start = 0; - unsigned int end = 0; - - while (end <= strLength) { - while (end <= strLength) { - if (cstr[end] == delim) - break; - end++; - } - - elems.push_back(s.substr(start, end - start)); - start = end + 1; - end = start; - } - - return elems; - } -}; - -#endif // UTIL_H_INCLUDED -- cgit v1.2.3