TerminalShell: tidy; use case senstive string comparation where meaningful

This commit is contained in:
李通洲
2024-01-12 21:13:59 +08:00
parent 905ed76ddd
commit 22cdb1247f
2 changed files with 52 additions and 42 deletions
+10
View File
@@ -54,3 +54,13 @@ static inline bool ffStrEquals(const char* str, const char* compareTo)
{
return strcmp(str, compareTo) == 0;
}
static inline bool ffStrContains(const char* str, const char* compareTo)
{
return strstr(str, compareTo) != NULL;
}
static inline bool ffStrContainsIgnCase(const char* str, const char* compareTo)
{
return strcasestr(str, compareTo) != NULL;
}