|
| template<unsigned num_params> |
| constexpr void | util::detail::CheckNumFormatSpecifiers (const char *str) |
| |
| void | util::ReplaceAll (std::string &in_out, std::string_view search, std::string_view substitute) |
| | Replace every non-overlapping occurrence of search with substitute, treating both literally; the replacement text is not searched again. More...
|
| |
| template<typename T = std::span<const char>> |
| std::vector< T > | util::Split (std::span< const char > sp LIFETIMEBOUND, std::string_view separators, bool include_sep=false) |
| | Split a string on any char found in separators, returning a vector. More...
|
| |
| template<typename T = std::span<const char>> |
| std::vector< T > | util::Split (std::span< const char > sp LIFETIMEBOUND, char sep, bool include_sep=false) |
| | Split a string on every instance of sep, returning a vector. More...
|
| |
| std::vector< std::string > | util::SplitString (std::string_view str, char sep) |
| |
| std::vector< std::string > | util::SplitString (std::string_view str, std::string_view separators) |
| |
| std::string_view | util::TrimStringView (std::string_view str LIFETIMEBOUND, std::string_view pattern=" \f\n\r\t\v") |
| |
| std::string | util::TrimString (std::string_view str, std::string_view pattern=" \f\n\r\t\v") |
| |
| std::string_view | util::RemoveSuffixView (std::string_view str LIFETIMEBOUND, std::string_view suffix) |
| |
| std::string_view | util::RemovePrefixView (std::string_view str LIFETIMEBOUND, std::string_view prefix) |
| |
| std::string | util::RemovePrefix (std::string_view str, std::string_view prefix) |
| |
| template<typename C , typename S , typename UnaryOp > |
| auto | util::Join (const C &container, const S &separator, UnaryOp unary_op) |
| | Join all container items. More...
|
| |
| template<typename C , typename S > |
| auto | util::Join (const C &container, const S &separator) |
| |
| std::string | util::MakeUnorderedList (const std::vector< std::string > &items) |
| | Create an unordered multi-line list of items. More...
|
| |
| bool | util::ContainsNUL (std::string_view str) noexcept |
| | Check if a string contains any embedded NUL (\0) characters. More...
|
| |
| template<typename T > |
| std::string | util::ToString (const T &t) |
| | Locale-independent version of std::to_string. More...
|
| |
| template<typename T1 , size_t PREFIX_LEN> |
| bool | util::HasPrefix (const T1 &obj, const std::array< uint8_t, PREFIX_LEN > &prefix) |
| | Check whether a container begins with the given prefix. More...
|
| |