Strings » trim_right() module

Trims whitespace from the right end of a UTF string.

Functions

auto trim_right(std::string_view str) -> std::string_view constexpr noexcept
Trims whitespace from the right end of a UTF-8 string.
auto trim_right(std::wstring_view str) -> std::wstring_view constexpr noexcept
Trims whitespace from the right end of a UTF wide string.
auto trim_right(std::u16string_view str) -> std::u16string_view constexpr noexcept
Trims whitespace from the right end of a UTF-16 string.
auto trim_right(std::u32string_view str) -> std::u32string_view constexpr noexcept
Trims whitespace from the right end of a UTF-32 string.
auto trim_right(std::u8string_view str) -> std::u8string_view constexpr noexcept
Trims whitespace from the right end of a UTF-8 string.

Function documentation

std::string_view trim_right(std::string_view str) constexpr noexcept

Trims whitespace from the right end of a UTF-8 string.

std::wstring_view trim_right(std::wstring_view str) constexpr noexcept

Trims whitespace from the right end of a UTF wide string.

std::u16string_view trim_right(std::u16string_view str) constexpr noexcept

Trims whitespace from the right end of a UTF-16 string.

std::u32string_view trim_right(std::u32string_view str) constexpr noexcept

Trims whitespace from the right end of a UTF-32 string.

std::u8string_view trim_right(std::u8string_view str) constexpr noexcept

Trims whitespace from the right end of a UTF-8 string.