module
trim()Trims whitespace from both ends of a UTF string.
Functions
-
auto trim(std::
string_view str) -> std::string_view constexpr noexcept - Trims whitespace from both ends of a UTF-8 string.
-
auto trim(std::
wstring_view str) -> std::wstring_view constexpr noexcept - Trims whitespace from both ends of a UTF wide string.
-
auto trim(std::
u16string_view str) -> std::u16string_view constexpr noexcept - Trims whitespace from both ends of a UTF-16 string.
-
auto trim(std::
u32string_view str) -> std::u32string_view constexpr noexcept - Trims whitespace from both ends of a UTF-32 string.
-
auto trim(std::
u8string_view str) -> std::u8string_view constexpr noexcept - Trims whitespace from both ends of a UTF-8 string.
Function documentation
std::string_view trim(std::string_view str) constexpr noexcept
#include <muu/strings.h>
Trims whitespace from both ends of a UTF-8 string.
std::wstring_view trim(std::wstring_view str) constexpr noexcept
#include <muu/strings.h>
Trims whitespace from both ends of a UTF wide string.
std::u16string_view trim(std::u16string_view str) constexpr noexcept
#include <muu/strings.h>
Trims whitespace from both ends of a UTF-16 string.
std::u32string_view trim(std::u32string_view str) constexpr noexcept
#include <muu/strings.h>
Trims whitespace from both ends of a UTF-32 string.
std::u8string_view trim(std::u8string_view str) constexpr noexcept
#include <muu/strings.h>
Trims whitespace from both ends of a UTF-8 string.