mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 16:26:39 +01:00
TerminalShell: tidy; use case senstive string comparation where meaningful
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user