Strings » trim_left() module

Trims whitespace from the left end of a UTF string.

Functions

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

Function documentation

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

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

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

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

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

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

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

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

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

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