15 #ifndef HEXT_TRIM_PIPE_H_INCLUDED
16 #define HEXT_TRIM_PIPE_H_INCLUDED
40 explicit TrimPipe(std::string trim_any_of =
" ");
44 std::string
transform(std::string str)
const override;
47 std::string trim_any_of_;
Defines template hext::Cloneable.
Declares hext::StringPipe.
Defines HEXT_PUBLIC and HEXT_PRIVATE.
Curiously recurring template pattern that extends a base class to provide a virtual method Cloneable:...
Trims characters from the beginning and end of a string.
std::string transform(std::string str) const override
Removes all left and right characters that were given in the constructor from str.
TrimPipe(std::string trim_any_of=" ")
Constructs a TrimPipe.