|
strusAnalyzer
0.17
|
Structure describing a position in a document source by segment and offset. More...
#include <position.hpp>
Public Member Functions | |
| Position () | |
| Default constructor. More... | |
| Position (int seg_, int ofs_) | |
| Constructor. More... | |
| Position (const Position &o) | |
| Copy constructor. More... | |
| int | seg () const |
| Get the position of the segment in the original source. More... | |
| int | ofs () const |
| Get the byte position in the translated document segment (UTF-8) More... | |
| void | setSeg (int seg_) |
| Set the segment position. More... | |
| void | setOfs (int ofs_) |
| Set the byte offset in the segment. More... | |
| int | compare (const Position &o) const |
| Compare with another position. More... | |
| bool | operator<= (const Position &o) const |
| bool | operator== (const Position &o) const |
| bool | operator< (const Position &o) const |
| bool | operator> (const Position &o) const |
Structure describing a position in a document source by segment and offset.
|
inline |
Default constructor.
|
inline |
Constructor.
| [in] | seg_ | the position of the segment in the original source |
| [in] | ofs_ | the byte position in the translated document segment (UTF-8) |
|
inline |
Copy constructor.
|
inline |
Compare with another position.
|
inline |
Get the byte position in the translated document segment (UTF-8)
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the position of the segment in the original source.
|
inline |
Set the byte offset in the segment.
|
inline |
Set the segment position.
1.8.6