"Fossies" - the Fresh Open Source Software Archive 
Member "ansifilter-2.18/src/plaintextgenerator.cpp" (30 Jan 2021, 1611 Bytes) of package /linux/privat/ansifilter-2.18.tar.bz2:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "plaintextgenerator.cpp" see the
Fossies "Dox" file reference documentation and the last
Fossies "Diffs" side-by-side code changes report:
2.13_vs_2.14.
1 /***************************************************************************
2 htmlgenerator.cpp - description
3 -------------------
4
5 copyright : (C) 2007 by Andre Simon
6 email : a.simon@mailbox.org
7 ***************************************************************************/
8
9 /*
10 This file is part of ANSIFilter.
11
12 ANSIFilter is free software: you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation, either version 3 of the License, or
15 (at your option) any later version.
16
17 ANSIFilter is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with ANSIFilter. If not, see <http://www.gnu.org/licenses/>.
24 */
25
26 #include "plaintextgenerator.h"
27 #include "version.h"
28
29 namespace ansifilter
30 {
31
32 PlaintextGenerator::PlaintextGenerator ():
33 CodeGenerator(TEXT),
34 fileSuffix(".txt")
35 {
36 newLineTag="\n";
37 styleCommentOpen="";
38 styleCommentClose="";
39 spacer=" ";
40 }
41
42
43 string PlaintextGenerator::getHeader()
44 {
45 return "";
46 }
47
48 string PlaintextGenerator::getFooter()
49 {
50 return "";
51 }
52
53 void PlaintextGenerator::printBody()
54 {
55 processInput();
56 }
57
58 string PlaintextGenerator::maskCharacter(unsigned char c)
59 {
60 if (c>0x1f || c=='\t') {
61 return string( 1, c );
62 } else {
63 return "";
64 }
65 }
66
67 }