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

This `struct` provides a namespace for a suite of functions on `bsl&colon;&colon;string&lowbar;view` containers&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct StringViewUtil;
----

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/StringViewUtil/size_type.adoc[`size&lowbar;type`] 
| Size type of string&lowbar;view containers&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/StringViewUtil/areEqualCaseless.adoc[`areEqualCaseless`] 
| Return `true` if `lhs` and `rhs` are equal ignoring case&period;
| xref:BloombergLP/bdlb/StringViewUtil/endsWith-02.adoc[`endsWith`] 
| `endsWith` overloads
| xref:BloombergLP/bdlb/StringViewUtil/findFirstNotOf.adoc[`findFirstNotOf`] 
| Return the position of the first character not in `characters`&period;
| xref:BloombergLP/bdlb/StringViewUtil/findFirstOf.adoc[`findFirstOf`] 
| Return the position of the first character from `characters`&period;
| xref:BloombergLP/bdlb/StringViewUtil/findLastNotOf.adoc[`findLastNotOf`] 
| Return the position of the last character not in `characters`&period;
| xref:BloombergLP/bdlb/StringViewUtil/findLastOf.adoc[`findLastOf`] 
| Return the position of the last character from `characters`&period;
| xref:BloombergLP/bdlb/StringViewUtil/lowerCaseCmp.adoc[`lowerCaseCmp`] 
| Compare `lhs` and `rhs` after converting both to lower case&period;
| xref:BloombergLP/bdlb/StringViewUtil/ltrim.adoc[`ltrim`] 
| Return a view of `string` with leading whitespace removed&period;
| xref:BloombergLP/bdlb/StringViewUtil/rtrim.adoc[`rtrim`] 
| Return a view of `string` with trailing whitespace removed&period;
| xref:BloombergLP/bdlb/StringViewUtil/startsWith-00.adoc[`startsWith`] 
| `startsWith` overloads
| xref:BloombergLP/bdlb/StringViewUtil/strrstr.adoc[`strrstr`] 
| Return a view of the last occurrence of `subString` in `string`&period;
| xref:BloombergLP/bdlb/StringViewUtil/strrstrCaseless.adoc[`strrstrCaseless`] 
| Return a view of the last case&hyphen;insensitive match of `subString`&period;
| xref:BloombergLP/bdlb/StringViewUtil/strstr.adoc[`strstr`] 
| Return a view of the first occurrence of `subString` in `string`&period;
| xref:BloombergLP/bdlb/StringViewUtil/strstrCaseless.adoc[`strstrCaseless`] 
| Return a view of the first case&hyphen;insensitive match of `subString`&period;
| xref:BloombergLP/bdlb/StringViewUtil/substr.adoc[`substr`] 
| Return a substring of `string` starting at `position`&period;
| xref:BloombergLP/bdlb/StringViewUtil/trim.adoc[`trim`] 
| Return a view of `string` with leading and trailing whitespace removed&period;
| xref:BloombergLP/bdlb/StringViewUtil/upperCaseCmp.adoc[`upperCaseCmp`] 
| Compare `lhs` and `rhs` after converting both to upper case&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/StringViewUtil/k_NPOS.adoc[`k&lowbar;NPOS`] 
| Value used to denote &quot;not&hyphen;a&hyphen;position&quot;, guaranteed to be outside the `range&lsqb;0 &period;&period; bsl&colon;&colon;string&lowbar;view&colon;&colon;max&lowbar;size()&rsqb;`&period;
|===



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