From 5f883a80175a4cc9abda9d647a6a0d73bda84878 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Sun, 25 May 2025 00:25:01 -0300 Subject: move string utility to `util.cc` + small script identifier fix --- src/common.hh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/common.hh') diff --git a/src/common.hh b/src/common.hh index 02cad88..219ff22 100644 --- a/src/common.hh +++ b/src/common.hh @@ -61,7 +61,7 @@ STATIC_ASSERT(sizeof(int) == 4); #endif #if COMPILER_MSVC -# define TRAP() __debugbreak(); +# define TRAP() __debugbreak() #elif COMPILER_GCC || COMPILER_CLANG # define TRAP() __builtin_trap() #else @@ -137,6 +137,18 @@ void SetPrintFunction(TPrintFunction *Function); void error(char *Text, ...) ATTR_PRINTF(1, 2); void print(int Level, char *Text, ...) ATTR_PRINTF(1, 2); +bool isSpace(int c); +bool isAlpha(int c); +bool isEngAlpha(int c); +bool isDigit(int c); +int toLower(int c); +int toUpper(int c); +char *strLower(char *s); +char *strUpper(char *s); +int stricmp(const char *s1, const char *s2, int Pos); +char *findFirst(char *s, char c); +char *findLast(char *s, char c); + struct TReadStream { // VIRTUAL FUNCTIONS // ========================================================================= -- cgit v1.2.3