This is a virtual base type defining the interface for derived struct StringEscaperStandard and possible custom derivates.
However, this class is not abstract but instead implements the interface by just copying the strings to the given target buffers. The rationale for this is that it can be used in situations, where no externalization and import of externalized strings are needed. In other words: In situations where a function expects a StringEscaper where none is necessary a local instance of this type can be created and just passed.
Definition at line 29 of file escaper.hpp.
#include <escaper.hpp>
Public Method Index: | |
virtual | ~StringEscaper () |
Virtual destructor. | |
virtual AString & | Escape (const String &src, AString &dest, const String &delimiters) const |
virtual ALIB_API int | EscapeTokens (StringVectorMA &result, const String &src, const String &delimiters) const |
virtual AString & | Unescape (const String &src, AString &dest) const |
virtual int | UnescapeTokens (StringVectorMA &result, const String &src, const String &delimiters) const |
|
inlinevirtual |
Virtual destructor.
Definition at line 32 of file escaper.hpp.
|
inlinevirtual |
Just copies the given src string to dest.
src | The source string. |
dest | The destination string. |
delimiters | Ignored |
Reimplemented in StringEscaperStandard.
Definition at line 43 of file escaper.hpp.
|
virtual |
Simply tokenizes src and feeds the tokens into result.
result | The destination list of strings. |
src | The source string. |
delimiters | A set of characters accepted as delimiters. |
Reimplemented in StringEscaperStandard.
Definition at line 20 of file escaper.cpp.
Just copies the given src string to dest.
src | The source string. |
dest | The destination string. |
Reimplemented in StringEscaperStandard.
Definition at line 54 of file escaper.hpp.
|
inlinevirtual |
Simply tokenizes src and feeds the tokens into result. (In fact, EscapeTokens is called.)
result | The destination list of strings. |
src | The source string. |
delimiters | A set of characters accepted as delimiters. |
Reimplemented in StringEscaperStandard.
Definition at line 83 of file escaper.hpp.