[#BloombergLP-bdlb-StringViewUtil-endsWith-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/StringViewUtil.adoc[StringViewUtil]::endsWith :relfileprefix: ../../../ :mrdocs: `endsWith` overloads == Synopses Declared in `<bdlb_stringviewutil.h>` Return `true` if the specified `string` ends with the specified `character`, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool xref:BloombergLP/bdlb/StringViewUtil/endsWith-0c.adoc[endsWith]( std::string_view const& string, char character); ---- [.small]#xref:BloombergLP/bdlb/StringViewUtil/endsWith-0c.adoc[_» more..._]# Return `true` if the specified `string` ends with the specified `characters`, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool xref:BloombergLP/bdlb/StringViewUtil/endsWith-01.adoc[endsWith]( std::string_view const& string, std::string_view const& characters); ---- [.small]#xref:BloombergLP/bdlb/StringViewUtil/endsWith-01.adoc[_» more..._]# Return `true` if `string` ends with the C‐string `characters`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool xref:BloombergLP/bdlb/StringViewUtil/endsWith-0e.adoc[endsWith]( std::string_view const& string, char const* characters); ---- [.small]#xref:BloombergLP/bdlb/StringViewUtil/endsWith-0e.adoc[_» more..._]# == Return Value * `true` if `string` ends with `character`, and `false` otherwise * `true` if `string` ends with `characters`, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *string* | string view to test | *character* | trailing character to match | *characters* | suffix to match |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#