#include <StringManipulator.hpp>
Inheritance diagram for Ionflux::Tools::StringManipulator:
Public Member Functions | |
StringManipulator () | |
Constructor. | |
virtual | ~StringManipulator () |
Destructor. | |
virtual std::string | process (const std::string &bytes, std::vector< std::string > *args=0)=0 |
Process bytes. | |
virtual std::string | getName ()=0 |
Get name. |
This is an abstract base class to encapsulate an object that manipulates byte strings (i.e. generates one string from another string). String manipulators can thus be used as function objects for constructing string filters.
Each string manipulator should have an unique name by which it can be identified in a set of string manipulators. This name can be obtained with the getName() function.
|
Constructor. Construct new StringManipulator object. |
|
Destructor. Destruct StringManipulator object. |
|
|
Process bytes. Processes a byte string and returns the result.
Implemented in Ionflux::Tools::StringUppercase, Ionflux::Tools::StringLowercase, Ionflux::Tools::StringErase, Ionflux::Tools::StringReplace, Ionflux::Tools::StringTrim, Ionflux::Tools::StringLTrim, Ionflux::Tools::StringRTrim, Ionflux::Tools::StringTruncate, Ionflux::Tools::StringCenter, Ionflux::Tools::StringMove, Ionflux::Tools::StringAppend, Ionflux::Tools::StringInsert, Ionflux::Tools::StringNumFormat, Ionflux::Tools::StringTranslate, Ionflux::Tools::StringSubstr, Ionflux::Tools::StringLPad, Ionflux::Tools::StringRPad, Ionflux::Tools::StringSWrap, Ionflux::Tools::StringXMLEscape, and Ionflux::Tools::StringURLEncode. |