stringUtils: tidy

This commit is contained in:
李通洲
2024-01-11 16:27:53 +08:00
parent 0c65cdc1f5
commit 37e0a7b03f
3 changed files with 12 additions and 31 deletions
+12 -2
View File
@@ -3,9 +3,19 @@
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>
static inline bool ffStrSet(const char* str)
{
if(str == NULL)
return false;
while(isspace(*str))
str++;
return *str != '\0';
}
bool ffStrSet(const char* str);
bool ffStrHasNChars(const char* str, char c, uint32_t n);
static inline bool ffStrStartsWithIgnCase(const char* str, const char* compareTo)
{