FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
doctorBuffer_utils.h
1 /***************************************************************
2  Copyright (C) 2006-2014 Hewlett-Packard Development Company, L.P.
3  Copyright (C) 2014, Siemens AG
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License
7  version 2 as published by the Free Software Foundation.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 
18  ***************************************************************/
19 
20 #ifndef DOCTORBUFFER_UTILS_H_
21 #define DOCTORBUFFER_UTILS_H_
22 int compressDoctoredBuffer( char* textBuffer);
23 void removeHtmlComments(char* buf);
24 void removeLineComments(char* buf);
25 void cleanUpPostscript(char* buf);
27 void convertWhitespaceToSpaceAndRemoveSpecialChars( char* buf,int isCR);
28 void dehyphen(char* buf);
29 void removePunctuation(char* buf);
30 void ignoreFunctionCalls(char* buf);
31 void convertSpaceToInvisible(char* buf);
32 void doctorBuffer(char *buf, int isML, int isPS, int isCR);
33 
34 #ifdef DOCTORBUFFER_OLD
35 void doctorBuffer_old(char *buf, int isML, int isPS, int isCR);
36 #endif
37 #endif /* DOCTORBUFFER_UTILS_H_ */
void convertSpaceToInvisible(char *buf)
void removeBackslashesAndGTroffIndicators(char *buf)
Remove groff/troff font-size indicators, the literal string backslash-n and all backslahes, ala.
void doctorBuffer(char *buf, int isML, int isPS, int isCR)
Convert a buffer of multiple stuff to text-only, separated by spaces.
int compressDoctoredBuffer(char *textBuffer)
garbage collect: eliminate all INVISIBLE characters in the buffer
void ignoreFunctionCalls(char *buf)
Ignore function calls to print routines.
void dehyphen(char *buf)
void convertWhitespaceToSpaceAndRemoveSpecialChars(char *buf, int isCR)
Convert white-space to real spaces, and remove unnecessary punctuation.
void removePunctuation(char *buf)
Clean up miscellaneous punctuation.
void removeLineComments(char *buf)
Remove comments that start at the beginning of a line.
void cleanUpPostscript(char *buf)
Remove newlines from buffer.
void removeHtmlComments(char *buf)
Remove HTML comments from buffer without removing comment text.