llvm::StringRef::rfind_insensitive

rfind_insensitive overloads

Synopses

Declared in <llvm/ADT/StringRef.h>

Search for the last string Str in the string, ignoring case.

[[nodiscard]]
size_t
rfind_insensitive(StringRef Str) const;
» more...

Search for the last character C in the string, ignoring case.

[[nodiscard]]
size_t
rfind_insensitive(
    char C,
    size_t From = npos) const;
» more...

Return Value

  • The index of the last occurrence of Str, or npos if not found.
  • The index of the last occurrence of C, or npos if not found.

NOTE

The return value should not be discarded.

Parameters

NameDescription
StrSubstring to search for, ignoring case.
CCharacter to search for, ignoring case.
FromIndex to start the reverse search from.