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 static gcc_nonnull_all const char * StringAfterPrefix(const char *haystack, StringView needle) noexcept
Returns the portion of the string after a prefix.
gcc_pure bool StringEndsWith(const char *haystack, const char *needle) noexcept
gcc_pure const char * FindStringSuffix(const char *p, const char *suffix) noexcept
Check if the given string ends with the specified suffix.
gcc_pure static gcc_nonnull_all bool StringStartsWith(const char *haystack, StringView needle) noexcept
static bool StringIsEmpty(const char *string)