diff options
Diffstat (limited to 'stringutil.cpp')
-rw-r--r-- | stringutil.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stringutil.cpp b/stringutil.cpp index f87fa00..6eb2899 100644 --- a/stringutil.cpp +++ b/stringutil.cpp @@ -5,7 +5,7 @@ #include <cstdarg> -std::string strfmt(const char* fmt, ...) +std::string Reichwein::Stringutil::strfmt(const char* fmt, ...) { va_list args; @@ -22,7 +22,7 @@ std::string strfmt(const char* fmt, ...) return result; } -std::vector<std::string> split(std::string value, const std::string separators) +std::vector<std::string> Reichwein::Stringutil::split(std::string value, const std::string separators) { std::vector<std::string> result; @@ -44,7 +44,7 @@ std::vector<std::string> split(std::string value, const std::string separators) return result; } -std::string join(std::vector<std::string> vs, std::string separator) +std::string Reichwein::Stringutil::join(std::vector<std::string> vs, std::string separator) { std::string s; for (const auto& line : vs) { @@ -56,7 +56,7 @@ std::string join(std::vector<std::string> vs, std::string separator) return s; } -bool startsWithAnyOfLower(const std::string &s, const std::vector<std::string> &list) { +bool Reichwein::Stringutil::startsWithAnyOfLower(const std::string &s, const std::vector<std::string> &list) { for (const std::string& element : list) { if (boost::algorithm::starts_with(boost::algorithm::to_lower_copy(s), boost::algorithm::to_lower_copy(element))) return true; |