|
| void | ReplaceAll (std::string &in_out, const std::string &search, const std::string &substitute) |
| |
| std::vector< std::string > | SplitString (std::string_view str, char sep) |
| |
| std::vector< std::string > | SplitString (std::string_view str, std::string_view separators) |
| |
| std::string_view | TrimStringView (std::string_view str, std::string_view pattern=" \\\) |
| |
| std::string | TrimString (std::string_view str, std::string_view pattern=" \\\) |
| |
| std::string_view | RemovePrefixView (std::string_view str, std::string_view prefix) |
| |
| std::string | RemovePrefix (std::string_view str, std::string_view prefix) |
| |
| template<typename C , typename S , typename UnaryOp > |
| auto | Join (const C &container, const S &separator, UnaryOp unary_op) |
| | Join all container items. More...
|
| |
| template<typename C , typename S > |
| auto | Join (const C &container, const S &separator) |
| |
| std::string | MakeUnorderedList (const std::vector< std::string > &items) |
| | Create an unordered multi-line list of items. More...
|
| |
| bool | ContainsNoNUL (std::string_view str) noexcept |
| | Check if a string does not contain any embedded NUL (\0) characters. More...
|
| |
| template<typename T > |
| std::string | ToString (const T &t) |
| | Locale-independent version of std::to_string. More...
|
| |
| template<typename T1 , size_t PREFIX_LEN> |
| bool | HasPrefix (const T1 &obj, const std::array< uint8_t, PREFIX_LEN > &prefix) |
| | Check whether a container begins with the given prefix. More...
|
| |
template<typename C , typename S , typename UnaryOp >
| auto Join |
( |
const C & |
container, |
|
|
const S & |
separator, |
|
|
UnaryOp |
unary_op |
|
) |
| |
Join all container items.
Typically used to concatenate strings but accepts containers with elements of any type.
- Parameters
-
| container | The items to join |
| separator | The separator |
| unary_op | Apply this operator to each item |
Definition at line 68 of file string.h.