A structure keeping the position of C/C++ strings or characters in a program. More...
Public Types | |
enum | Type { String, Character } |
String or character. More... | |
Public Member Functions | |
StringPosition () | |
Constructor. More... | |
StringPosition (unsigned int os, unsigned int oe, unsigned int ps, unsigned int pe, Type t) | |
Constructor. More... | |
Public Attributes | |
unsigned int | originalEnd |
The ending position of the comment in the original program (i.e. the position of the closing " or ') More... | |
unsigned int | originalStart |
The starting position of the comment in the original program (i.e. the position of the opening " or ') More... | |
unsigned int | parsedEnd |
The ending position of the comment in the parsed program (i.e. the position of the closing " or ') More... | |
unsigned int | parsedStart |
The starting position of the comment in the parsed program (i.e. the position of the opening " or ') More... | |
Type | type |
Whether this is a string or a character. More... | |
Detailed Description
A structure keeping the position of C/C++ strings or characters in a program.
This structure is used by the removeComments() function to return the position of strings and characters in a program, both in the original program and in the parsed one
Definition at line 129 of file farsamiscutilities.h.
Member Enumeration Documentation
enum Type |
String or character.
Enumerator | |
---|---|
String |
A string (enclosed in "") |
Character |
A character (enclosed in '') |
Definition at line 134 of file farsamiscutilities.h.
Constructor & Destructor Documentation
|
inline |
Constructor.
Definition at line 142 of file farsamiscutilities.h.
|
inline |
Constructor.
- Parameters
-
os The starting position of the comment in the original program (i.e. the position of the opening " or ') oe The ending position of the comment in the original program (i.e. the position of the closing " or ') ps The starting position of the comment in the parsed program (i.e. the position of the opening " or ') pe The ending position of the comment in the parsed program (i.e. the position of the closing " or ') t whether this is a string or a character
Definition at line 164 of file farsamiscutilities.h.
Member Data Documentation
unsigned int originalEnd |
The ending position of the comment in the original program (i.e. the position of the closing " or ')
Definition at line 183 of file farsamiscutilities.h.
Referenced by farsa::removeComments().
unsigned int originalStart |
The starting position of the comment in the original program (i.e. the position of the opening " or ')
Definition at line 177 of file farsamiscutilities.h.
Referenced by farsa::removeComments().
unsigned int parsedEnd |
The ending position of the comment in the parsed program (i.e. the position of the closing " or ')
Definition at line 195 of file farsamiscutilities.h.
Referenced by farsa::removeComments().
unsigned int parsedStart |
The starting position of the comment in the parsed program (i.e. the position of the opening " or ')
Definition at line 189 of file farsamiscutilities.h.
Referenced by farsa::removeComments().
Type type |
Whether this is a string or a character.
Definition at line 200 of file farsamiscutilities.h.
Referenced by farsa::removeComments().
The documentation for this struct was generated from the following file:
- utilities/include/farsamiscutilities.h