find_first_of overloads
Declared in <llvm/ADT/StringRef.h>
Find the first character in the string that is in Chars, or npos if not found.
[[nodiscard]]
size_t
find_first_of(
StringRef Chars,
size_t From = 0) const;
» more...
Find the first character in the string that is C, or npos if not found. Same as find.
[[nodiscard]]
size_t
find_first_of(
char C,
size_t From = 0) const;
» more...
Index of the first match, or npos if not found.
The return value should not be discarded.
| Name | Description |
|---|---|
| Chars | Characters to search for. |
| From | Index to start searching from. |
| C | Character to search for. |