#include <StringManipulator.hpp>
Inheritance diagram for Ionflux::Tools::StringTruncate:
Public Member Functions | |
StringTruncate () | |
Constructor. | |
virtual | ~StringTruncate () |
Destructor. | |
virtual std::string | process (const std::string &bytes, std::vector< std::string > *args=0) |
Process bytes. | |
virtual std::string | getName () |
Get name. | |
Static Public Attributes | |
static const std::string | STRINGMANIP_NAME = "truncate" |
Name of this string manipulator. |
truncate(l, [d])
l - Length to truncate string to.
d - Dot string to be appended (optional)
Note: The total length of the string will always be l, whether a dot string is specified or not.
|
Constructor.
|
|
Destructor.
|
|
Get name.
Implements Ionflux::Tools::StringManipulator. |
|
Process bytes. Processes a byte string and returns the result.
Implements Ionflux::Tools::StringManipulator. |
|
Name of this string manipulator.
|