libhext: C++ Library Documentation
1.0.12-3ea013c
|
Changes the case of a string. Changes to lower case by default. More...
Public Types | |
enum | Option { ToLower = 1 << 1 , ToUpper = 1 << 2 } |
CasePipe's options. More... | |
Public Member Functions | |
CasePipe (Option option=Option::ToLower) noexcept | |
Constructs a CasePipe. More... | |
std::string | transform (std::string str) const override |
Changes the case of str. More... | |
Public Member Functions inherited from hext::Cloneable< CasePipe, 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. More... | |
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. More... | |
void | append (std::unique_ptr< StringPipe > pipe) noexcept |
Append a StringPipe at the end of the chain. More... | |
template<typename StringPipeType , typename... Args> | |
void | emplace (Args &&... arg) |
Construct a StringPipe at the end of the chain. More... | |
Changes the case of a string. Changes to lower case by default.
Definition at line 32 of file CasePipe.h.
|
explicitnoexcept |
Constructs a CasePipe.
option | Change the string to this case. Default: to lower case. |
|
overridevirtual |
Changes the case of str.
Implements hext::StringPipe.