|
libhext: C++ Library Documentation 1.0.14-6065bc7
|
Prepends a given string to a string. More...
#include <PrependPipe.h>


Public Member Functions | |
| PrependPipe (std::string prefix) noexcept | |
| Constructs a PrependPipe. | |
| std::string | transform (std::string str) const override |
| Prepends a given string to str. | |
Public Member Functions inherited from hext::Cloneable< PrependPipe, 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. | |
Prepends a given string to a string.
Definition at line 32 of file PrependPipe.h.
|
explicitnoexcept |
Constructs a PrependPipe.
| prefix | The string to prepend. |
|
overridevirtual |
Prepends a given string to str.
Implements hext::StringPipe.