From 7726d64530f82fc9b8ac08f484491335bd7ca2a4 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sat, 12 Feb 2022 16:04:48 +0100 Subject: Optimized directory structure --- Src/StringTools/StringTools.h | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 Src/StringTools/StringTools.h (limited to 'Src/StringTools/StringTools.h') diff --git a/Src/StringTools/StringTools.h b/Src/StringTools/StringTools.h deleted file mode 100644 index 589c047..0000000 --- a/Src/StringTools/StringTools.h +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once -#include - -/* Handy utensils to manipulate strings */ -class StringTools -{ -public: - //! Will replace every occurence of `find` in `str` by `subst`. - static std::string Replace(const std::string& str, const char find, const std::string& subst); - - //! Will replace every occurence of `find` in `str` by `subst`. - static std::string Replace(const std::string& str, const std::string& find, const std::string& subst); - - //! Will replace every occurence of `find` in `str` by `subst`. - static std::string Replace(const std::string& str, const char find, const char subst); - - //! Will replace every occurence of `find` in `str` by `subst`. - static std::string Replace(const std::string& str, const std::string& find, const char subst); - - //! Will make a string all-lowercase. Only works with latin and german umlautes, plus some extras. - static std::string Lower(const std::string& str); - - //! Will make a string all-uppercase. Only works with latin and german umlautes, plus some extras. - static std::string Upper(const std::string& str); - -private: - // No instanciation! >:( - StringTools(); -}; -- cgit v1.2.3