diff options
| author | Leonetienne <leon@etiennes.de> | 2022-05-16 23:57:26 +0200 |
|---|---|---|
| committer | Leonetienne <leon@etiennes.de> | 2022-05-16 23:57:26 +0200 |
| commit | 954629f6bc3b7753c5be0c08e0cdb5caf1056d23 (patch) | |
| tree | 33a95f60202135f9fcc689e081a64f2d274d7d99 /Src/StringTools.h | |
| parent | 1fe3eeb14470470d8c95c40c98a12c15320bcd57 (diff) | |
Adhere to new project structure
Diffstat (limited to 'Src/StringTools.h')
| -rw-r--r-- | Src/StringTools.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/Src/StringTools.h b/Src/StringTools.h deleted file mode 100644 index e8de59d..0000000 --- a/Src/StringTools.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef STRINGTOOLS_STRINGTOOLS_H
-#define STRINGTOOLS_STRINGTOOLS_H
-
-#include <string>
-#include <vector>
-
-/* 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.
- static std::string Lower(const std::string& str);
-
- //! Will make a string all-uppercase.
- static std::string Upper(const std::string& str);
-
- //! Will split a string by a string seperator
- static std::vector<std::string> Split(const std::string& str, const std::string& seperator);
-
- //! Will pad a string to the left to length l
- static std::string PadLeft(const std::string& str, const char pad, const std::size_t len);
-
- //! Will pad a string to the right to length l
- static std::string PadRight(const std::string& str, const char pad, const std::size_t len);
-
-private:
- // No instanciation! >:(
- StringTools();
-};
-
-#endif //STRINGTOOLS_STRINGTOOLS_H
|
