farsamiscutilities.h
Go to the documentation of this file.
59 CppComment
136 Character
225 QString FARSA_UTIL_API removeComments(const QString& program, CommentsPositions* commentsPos = NULL, StringsPositions* stringsPos = NULL);
This file contains the common type defitions used on the whole framework.
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
StringPosition(unsigned int os, unsigned int oe, unsigned int ps, unsigned int pe, Type t)
Constructor.
Definition: farsamiscutilities.h:164
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
CommentPosition(unsigned int s, unsigned int e, unsigned int p, CommentType t)
Constructor.
Definition: farsamiscutilities.h:84
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