[#BloombergLP-bdlb-StringRefUtil-findFirstNotOf]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/StringRefUtil.adoc[StringRefUtil]::findFirstNotOf
:relfileprefix: ../../../
:mrdocs:

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&lowbar;NPOS` otherwise&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;stringrefutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/StringRefUtil/size_type.adoc[size&lowbar;type]
findFirstNotOf(
    xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& string,
    xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& characters,
    xref:BloombergLP/bdlb/StringRefUtil/size_type.adoc[size&lowbar;type] position = 0u);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
