farsamiscutilities.cpp
27 QString removeComments(const QString& program, CommentsPositions* commentsPos, StringsPositions* stringsPos)
a file with miscellaneous functions
QList< StringPosition > StringsPositions
A list of positions of strings.
Definition: farsamiscutilities.h:206
QList< CommentPosition > CommentsPositions
A list of positions of comments.
Definition: farsamiscutilities.h:119
unsigned int originalEnd
The ending position of the comment in the original program (i.e. the position of the closing " or ') ...
Definition: farsamiscutilities.h:183
unsigned int parsedStart
The starting position of the comment in the parsed program (i.e. the position of the opening " or ') ...
Definition: farsamiscutilities.h:189
QString removeComments(const QString &program, CommentsPositions *commentsPos, StringsPositions *stringsPos)
A simple function to remove all C and C++ comments from a program.
Definition: farsamiscutilities.cpp:27
unsigned int originalStart
The starting position of the comment in the original program (i.e. the position of the opening " or '...
Definition: farsamiscutilities.h:177
unsigned int originalStart
The starting position of the comment in the original program (i.e. the position of the first characte...
Definition: farsamiscutilities.h:96
unsigned int originalEnd
The ending position of the comment in the original program (i.e. the position of the last character) ...
Definition: farsamiscutilities.h:102
A structure keeping the position of C/C++ strings or characters in a program.
Definition: farsamiscutilities.h:129
unsigned int parsedPosition
The position of the space with which the comment was substituted in the parsed program.
Definition: farsamiscutilities.h:108
A structure keeping the position of C/C++ comments in a string.
Definition: farsamiscutilities.h:52
unsigned int parsedEnd
The ending position of the comment in the parsed program (i.e. the position of the closing " or ') ...
Definition: farsamiscutilities.h:195