summaryrefslogtreecommitdiffstats
path: root/Src/CharTools.h
diff options
context:
space:
mode:
authorLeonetienne <leon@etiennes.de>2022-05-16 23:57:26 +0200
committerLeonetienne <leon@etiennes.de>2022-05-16 23:57:26 +0200
commit954629f6bc3b7753c5be0c08e0cdb5caf1056d23 (patch)
tree33a95f60202135f9fcc689e081a64f2d274d7d99 /Src/CharTools.h
parent1fe3eeb14470470d8c95c40c98a12c15320bcd57 (diff)
Adhere to new project structure
Diffstat (limited to 'Src/CharTools.h')
-rw-r--r--Src/CharTools.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/Src/CharTools.h b/Src/CharTools.h
deleted file mode 100644
index 66c32c0..0000000
--- a/Src/CharTools.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef STRINGTOOLS_CHARTOOLS_H
-#define STRINGTOOLS_CHARTOOLS_H
-
-#include <string>
-
-/* Handy utensils to manipulate characters */
-
-class CharTools {
-public:
- //! Checks whether or not `c` is a vowel. You can define custom vowel characters.
- static bool IsVowel(const char c, const std::string &vowels = "euioay");
-
- //! Returns whether or not `c` is a letter.
- static bool IsLetter(const char c);
-
- //! Returns whether or not `c` is a digit.
- static bool IsDigit(const char c);
-
- //! Checks whether or not `c` is an uppercase character.
- static bool IsUpper(const char c);
-
- //! Checks whether or not `c` is a lowercase character.
- static bool IsLower(const char c);
-
- //! Will return `c` as an uppercase character.
- static char MakeUpper(char c);
-
- //! Will return `c` as a lowercase character.
- static char MakeLower(char c);
-
- //! Will return `c` with the same capitalization as `sign`.
- static char CopySign(char sign, char c);
-};
-
-#endif //STRINGTOOLS_CHARTOOLS_H