[#BloombergLP-bdlb-StringViewUtil-findFirstNotOf] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/StringViewUtil.adoc[StringViewUtil]::findFirstNotOf :relfileprefix: ../../../ :mrdocs: Return the position of the first character not in `characters`. == Synopsis Declared in `<bdlb_stringviewutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlb/StringViewUtil/size_type.adoc[size_type] findFirstNotOf( std::string_view const& string, std::string_view const& characters, xref:BloombergLP/bdlb/StringViewUtil/size_type.adoc[size_type] position = 0); ---- == Description Return the position of the _first_ occurrence of a character _not_ belonging to the specified `characters`, if such an occurrence can be found in the specified `string` (on or _after_ the optionally specified `position` if such a `position` is specified), and return `k_NPOS` otherwise. == Return Value position of the first non‐match, or `k_NPOS` == Parameters [cols="1,4"] |=== | Name| Description | *string* | string view to search | *characters* | set of characters to exclude | *position* | starting index for the search (default 0) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#