FOSSology  4.4.0
Open Source License Compliance by Open Source Software
doctorBuffer_utils.h
1 /*
2  SPDX-FileCopyrightText: © 2006-2014 Hewlett-Packard Development Company, L.P.
3  SPDX-FileCopyrightText: © 2014 Siemens AG
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
8 #ifndef DOCTORBUFFER_UTILS_H_
9 #define DOCTORBUFFER_UTILS_H_
10 int compressDoctoredBuffer( char* textBuffer);
11 void removeHtmlComments(char* buf);
12 void removeLineComments(char* buf);
13 void cleanUpPostscript(char* buf);
15 void convertWhitespaceToSpaceAndRemoveSpecialChars( char* buf,int isCR);
16 void dehyphen(char* buf);
17 void removePunctuation(char* buf);
18 void ignoreFunctionCalls(char* buf);
19 void convertSpaceToInvisible(char* buf);
20 void doctorBuffer(char *buf, int isML, int isPS, int isCR);
21 
22 #ifdef DOCTORBUFFER_OLD
23 void doctorBuffer_old(char *buf, int isML, int isPS, int isCR);
24 #endif
25 #endif /* DOCTORBUFFER_UTILS_H_ */
void dehyphen(char *buf)
void removeBackslashesAndGTroffIndicators(char *buf)
Remove groff/troff font-size indicators, the literal string backslash-n and all backslahes,...
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 convertSpaceToInvisible(char *buf)
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 convertWhitespaceToSpaceAndRemoveSpecialChars(char *buf, int isCR)
Convert white-space to real spaces, and remove unnecessary punctuation.
void ignoreFunctionCalls(char *buf)
Ignore function calls to print routines.
void removeHtmlComments(char *buf)
Remove HTML comments from buffer without removing comment text.