diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-05-25 00:25:01 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-05-25 00:25:01 -0300 |
| commit | 5f883a80175a4cc9abda9d647a6a0d73bda84878 (patch) | |
| tree | d585487084c455a5ff0659a8cff6fdaf9d357ba9 /src/common.hh | |
| parent | 3f557369c7bbd08fdf2e6dbd9271873b20a9a144 (diff) | |
| download | game-5f883a80175a4cc9abda9d647a6a0d73bda84878.tar.gz game-5f883a80175a4cc9abda9d647a6a0d73bda84878.zip | |
move string utility to `util.cc` + small script identifier fix
Diffstat (limited to 'src/common.hh')
| -rw-r--r-- | src/common.hh | 14 |
1 files changed, 13 insertions, 1 deletions
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 // ========================================================================= |
