Namespace for utility functions on STL‐style and C‐style strings.
Synopsis
Declared in <bdlb_string.h>
struct String;
Description
This struct provides a namespace for a suite of functions on STL‐style strings (bsl::string, std::string, std::pmr::string), C‐style strings, and strings specified by a (const char *, int) or (char *, int) pair.
Static Member Functions
Name |
Description |
|
|
Return a newly allocated null‐terminated copy of |
|
Compare two strings using case‐insensitive ordering. |
|
|
|
Pad |
|
|
|
Advance |
|
Return the length of |
|
Return the last occurrence of |
|
Return the last case‐insensitive match of |
|
Return the first occurrence of |
|
Return the first case‐insensitive match of |
|
Copy |
|
Convert upper‐case characters in |
|
Convert lower‐case characters in |
|
|
|
Compare two strings as if both were converted to upper case. |
Created with MrDocs