rfind overloads
Declared in <llvm/ADT/StringRef.h>
Search for the last string Str in the string.
[[nodiscard]]
size_t
rfind(StringRef Str) const;
» more...
Search for the last character C in the string.
[[nodiscard]]
size_t
rfind(
char C,
size_t From = npos) const;
» more...
Str, or npos if not found.C, or npos if not found.The return value should not be discarded.
| Name | Description |
|---|---|
| Str | Substring to search for. |
| C | Character to search for. |
| From | Index to start the reverse search from. |