[#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::string_view` containers. == Synopsis Declared in `<bdlb_stringviewutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct StringViewUtil; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/StringViewUtil/size_type.adoc[`size_type`] | Size type of string_view containers. |=== == 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. | 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`. | xref:BloombergLP/bdlb/StringViewUtil/findFirstOf.adoc[`findFirstOf`] | Return the position of the first character from `characters`. | xref:BloombergLP/bdlb/StringViewUtil/findLastNotOf.adoc[`findLastNotOf`] | Return the position of the last character not in `characters`. | xref:BloombergLP/bdlb/StringViewUtil/findLastOf.adoc[`findLastOf`] | Return the position of the last character from `characters`. | xref:BloombergLP/bdlb/StringViewUtil/lowerCaseCmp.adoc[`lowerCaseCmp`] | Compare `lhs` and `rhs` after converting both to lower case. | xref:BloombergLP/bdlb/StringViewUtil/ltrim.adoc[`ltrim`] | Return a view of `string` with leading whitespace removed. | xref:BloombergLP/bdlb/StringViewUtil/rtrim.adoc[`rtrim`] | Return a view of `string` with trailing whitespace removed. | 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`. | xref:BloombergLP/bdlb/StringViewUtil/strrstrCaseless.adoc[`strrstrCaseless`] | Return a view of the last case‐insensitive match of `subString`. | xref:BloombergLP/bdlb/StringViewUtil/strstr.adoc[`strstr`] | Return a view of the first occurrence of `subString` in `string`. | xref:BloombergLP/bdlb/StringViewUtil/strstrCaseless.adoc[`strstrCaseless`] | Return a view of the first case‐insensitive match of `subString`. | xref:BloombergLP/bdlb/StringViewUtil/substr.adoc[`substr`] | Return a substring of `string` starting at `position`. | xref:BloombergLP/bdlb/StringViewUtil/trim.adoc[`trim`] | Return a view of `string` with leading and trailing whitespace removed. | xref:BloombergLP/bdlb/StringViewUtil/upperCaseCmp.adoc[`upperCaseCmp`] | Compare `lhs` and `rhs` after converting both to upper case. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/StringViewUtil/k_NPOS.adoc[`k_NPOS`] | Value used to denote "not‐a‐position", guaranteed to be outside the `range[0 .. bsl::string_view::max_size()]`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#