From 0e6355329f241a3e3c8b38cb4146fda4470e6ed0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 26 Mar 2018 15:33:06 -0400 Subject: Whitespace changes --- util.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'util.h') diff --git a/util.h b/util.h index 8a476da..5d16649 100644 --- a/util.h +++ b/util.h @@ -8,7 +8,7 @@ #include namespace cadence { - + inline std::string uppercase(std::string in) { std::string result; @@ -16,28 +16,28 @@ namespace cadence { { return std::toupper(ch); }); - + return result; } - + template std::string implode(InputIterator first, InputIterator last, std::string delimiter) { std::stringstream result; - + for (InputIterator it = first; it != last; it++) { if (it != first) { result << delimiter; } - + result << *it; } - + return result.str(); } - + template void split(std::string input, std::string delimiter, OutputIterator out) { @@ -48,12 +48,12 @@ namespace cadence { { *out = input; out++; - + input = ""; } else { *out = input.substr(0, divider); out++; - + input = input.substr(divider+delimiter.length()); } } @@ -63,12 +63,12 @@ namespace cadence { Container split(std::string input, std::string delimiter) { Container result; - + split(input, delimiter, std::back_inserter(result)); - + return result; } - + }; #endif /* end of include guard: UTIL_H_CED7A66D */ -- cgit 1.4.1