|
libhext: C++ Library Documentation 1.0.14-6065bc7
|
Trims characters from the beginning and end of a string. More...
#include <TrimPipe.h>


Public Member Functions | |
| TrimPipe (std::string trim_any_of=" ") | |
| Constructs a TrimPipe. | |
| std::string | transform (std::string str) const override |
| Removes all left and right characters that were given in the constructor from str. | |
Public Member Functions inherited from hext::Cloneable< TrimPipe, StringPipe > | |
| virtual std::unique_ptr< StringPipe > | clone () const override |
| Clones objects of template type Derived and returns an owning pointer to the newly allocated Base. | |
Public Member Functions inherited from hext::StringPipe | |
| StringPipe () noexcept | |
| StringPipe (const StringPipe &other) | |
| StringPipe (StringPipe &&) noexcept=default | |
| StringPipe & | operator= (const StringPipe &other) |
| StringPipe & | operator= (StringPipe &&) noexcept=default |
| virtual | ~StringPipe () noexcept=default |
| std::string | pipe (std::string str) const |
| Calls StringPipe::transform successively until the whole StringPipe chain was traversed. | |
| void | append (std::unique_ptr< StringPipe > pipe) noexcept |
| Append a StringPipe at the end of the chain. | |
| template<typename StringPipeType , typename... Args> | |
| void | emplace (Args &&... arg) |
| Construct a StringPipe at the end of the chain. | |
Trims characters from the beginning and end of a string.
Trims space by default.
Definition at line 33 of file TrimPipe.h.
|
explicit |
Constructs a TrimPipe.
| trim_any_of | Trim any of these characters from beginning or end of the string. Default: Trim spaces. |
|
overridevirtual |
Removes all left and right characters that were given in the constructor from str.
Implements hext::StringPipe.