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