MPD
0.20.6
|
Go to the source code of this file.
Functions | |
static bool | StringIsEmpty (const char *string) |
gcc_pure static gcc_nonnull_all bool | StringStartsWith (const char *haystack, StringView needle) |
gcc_pure bool | StringEndsWith (const char *haystack, const char *needle) |
gcc_pure static gcc_nonnull_all const char * | StringAfterPrefix (const char *haystack, StringView needle) |
Returns the portion of the string after a prefix. More... | |
gcc_pure const char * | FindStringSuffix (const char *p, const char *suffix) |
Check if the given string ends with the specified suffix. More... | |
gcc_pure const char* FindStringSuffix | ( | const char * | p, |
const char * | suffix | ||
) |
Check if the given string ends with the specified suffix.
If yes, returns the position of the suffix, and nullptr otherwise.
|
inlinestatic |
Returns the portion of the string after a prefix.
If the string does not begin with the specified prefix, this function returns nullptr.
Definition at line 64 of file StringCompare.hxx.
gcc_pure bool StringEndsWith | ( | const char * | haystack, |
const char * | needle | ||
) |
|
inlinestatic |
Definition at line 41 of file StringCompare.hxx.
|
inlinestatic |
Definition at line 48 of file StringCompare.hxx.