30 #ifndef STRING_COMPARE_HXX
31 #define STRING_COMPARE_HXX
50 return strncmp(haystack, needle.
data, needle.
size) == 0;
63 static inline const char *
67 ? haystack + needle.
size
gcc_pure bool StringEndsWith(const char *haystack, const char *needle)
gcc_pure static gcc_nonnull_all bool StringStartsWith(const char *haystack, StringView needle)
gcc_pure static gcc_nonnull_all const char * StringAfterPrefix(const char *haystack, StringView needle)
Returns the portion of the string after a prefix.
gcc_pure const char * FindStringSuffix(const char *p, const char *suffix)
Check if the given string ends with the specified suffix.
static bool StringIsEmpty(const char *string)