[#llvm-SmallString-find-0a] = xref:llvm.adoc[llvm]::xref:llvm/SmallString.adoc[SmallString]::find :relfileprefix: ../../ :mrdocs: find ‐ Search for the first character `C` in the string. == Synopsis Declared in `<llvm/ADT/SmallString.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] size_t find( char C, size_t From = 0) const; ---- == Return Value ‐ The index of the first occurrence of `C,` or npos if not found. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *C* | Character to search for. | *From* | Index to start searching from. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#