codegenerator.h (ansifilter-2.17.tar.bz2) | : | codegenerator.h (ansifilter-2.18.tar.bz2) | ||
---|---|---|---|---|
/*************************************************************************** | /*************************************************************************** | |||
codegenerator.h - description | codegenerator.h - description | |||
------------------- | ------------------- | |||
copyright : (C) 2007-2020 by Andre Simon | copyright : (C) 2007-2021 by Andre Simon | |||
email : a.simon@mailbox.org | email : a.simon@mailbox.org | |||
***************************************************************************/ | ***************************************************************************/ | |||
/* | /* | |||
This file is part of ANSIFilter. | This file is part of ANSIFilter. | |||
ANSIFilter is free software: you can redistribute it and/or modify | ANSIFilter is free software: you can redistribute it and/or modify | |||
it under the terms of the GNU General Public License as published by | it under the terms of the GNU General Public License as published by | |||
the Free Software Foundation, either version 3 of the License, or | the Free Software Foundation, either version 3 of the License, or | |||
(at your option) any later version. | (at your option) any later version. | |||
skipping to change at line 326 | skipping to change at line 326 | |||
CodeGenerator() {} | CodeGenerator() {} | |||
/** \param c Character to be masked | /** \param c Character to be masked | |||
\return Escape sequence of output format */ | \return Escape sequence of output format */ | |||
virtual string maskCharacter(unsigned char c) = 0; | virtual string maskCharacter(unsigned char c) = 0; | |||
/** \param c Character to be masked | /** \param c Character to be masked | |||
\return Codepage 437 escape sequence of output format */ | \return Codepage 437 escape sequence of output format */ | |||
virtual string maskCP437Character(unsigned char c) { return maskCharacter(c) ; } | virtual string maskCP437Character(unsigned char c) { return maskCharacter(c) ; } | |||
/** \param uri URI | ||||
* \param txt Description | ||||
\return returns link formatting sequence */ | ||||
virtual string getHyperlink(string uri, string txt) { return txt+"["+uri+"]" | ||||
; } | ||||
/** Tag for inserting line feeds*/ | /** Tag for inserting line feeds*/ | |||
string newLineTag; | string newLineTag; | |||
/** SVG document dimensions */ | /** SVG document dimensions */ | |||
string width, height; | string width, height; | |||
/** file input*/ | /** file input*/ | |||
istream *in; | istream *in; | |||
/** file output*/ | /** file output*/ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 7 lines changed or added |