Skip to content

Commit

Permalink
util/StringCompare: add API documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Oct 15, 2020
1 parent fc505f4 commit 41f6d44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/util/StringCompare.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ StringStartsWithIgnoreCase(StringView haystack, StringView needle) noexcept
StringIsEqualIgnoreCase(haystack.data, needle.data, needle.size);
}

/**
* Returns the portion of the string after a prefix. If the string
* does not begin with the specified prefix, this function returns
* nullptr.
* This function is case-independent.
*/
gcc_pure gcc_nonnull_all
static inline const char *
StringAfterPrefixIgnoreCase(const char *haystack, StringView needle) noexcept
Expand Down

0 comments on commit 41f6d44

Please sign in to comment.