General Utility Library for C++14
2.12
|
Implementation of trim(), trim_left(), trim_right(), trim_sv(), trim_left_sv(), and trim_right_sv().
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the license, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see https://www.gnu.org/licenses/.
#include "gul14/trim.h"
Namespaces | |
gul14 | |
Namespace gul14 contains all functions and classes of the General Utility Library. | |
Functions | |
GUL_EXPORT std::string | gul14::trim (string_view str, string_view ws_chars=default_whitespace_characters) |
Trim leading and trailing whitespace (or a custom set of characters) from a string, returning a new std::string. More... | |
GUL_EXPORT string_view | gul14::trim_sv (string_view str, string_view ws_chars=default_whitespace_characters) |
Trim leading and trailing whitespace (or a custom set of characters) from a string, returning a view into the original string. More... | |
GUL_EXPORT std::string | gul14::trim_left (string_view str, string_view ws_chars=default_whitespace_characters) |
Trim leading whitespace (or a custom set of characters) from a string, returning a new std::string. More... | |
GUL_EXPORT string_view | gul14::trim_left_sv (string_view str, string_view ws_chars=default_whitespace_characters) |
Trim leading whitespace (or a custom set of characters) from a string, returning a view into the original string. More... | |
GUL_EXPORT std::string | gul14::trim_right (string_view str, string_view ws_chars=default_whitespace_characters) |
Trim trailing whitespace (or a custom set of characters) from a string, returning a new std::string. More... | |
GUL_EXPORT string_view | gul14::trim_right_sv (string_view str, string_view ws_chars=default_whitespace_characters) |
Trim trailing whitespace (or a custom set of characters) from a string, returning a view into the original string. More... | |