rll/string_util.h file

Namespaces

namespace rll
Contract-programming related functions and classes.

Functions

template <typename C>
auto ends_with(std::basic_string<C> const& input, std::basic_string_view<C> sv) →  bool noexcept
template <typename C>
auto ends_with(std::basic_string<C> const& input, C c) →  bool noexcept
template <typename C>
auto ends_with(std::basic_string<C> const& input, C const* chp) →  bool noexcept
template <typename C>
auto ends_with(std::basic_string_view<C> const& input, std::basic_string_view<C> sv) →  bool noexcept
template <typename C>
auto ends_with(std::basic_string_view<C> const& input, C c) →  bool noexcept
template <typename C>
auto ends_with(std::basic_string_view<C> const& input, C const* chp) →  bool noexcept
template <typename F>
auto from_c_str(char const* owned_str, int const size = -1, F&& dealloc_function = [](char const*ptr) { std::free(const_cast<char*>(ptr));}) →  std::string
auto split(std::string const& input) →  std::vector<std::string>
auto split(std::string_view input) →  std::vector<std::string>
auto split_by(std::string const& input, char delimiter) →  std::vector<std::string>
auto split_by(std::string_view input, char delimiter) →  std::vector<std::string>
template <typename C>
auto starts_with(std::basic_string<C> const& input, std::basic_string_view<C> sv) →  bool noexcept
template <typename C>
auto starts_with(std::basic_string<C> const& input, C c) →  bool noexcept
template <typename C>
auto starts_with(std::basic_string<C> const& input, C const* chp) →  bool noexcept
template <typename C>
auto starts_with(std::basic_string_view<C> const& input, std::basic_string_view<C> sv) →  bool noexcept
template <typename C>
auto starts_with(std::basic_string_view<C> const& input, C c) →  bool noexcept
template <typename C>
auto starts_with(std::basic_string_view<C> const& input, C const* chp) →  bool noexcept
auto to_lower(std::string_view input) →  std::string