Static Public Member Functions | |
| static bool | isValid (const Substring &substr) |
Public Attributes | |
| unsigned | line |
| const byte_type * | str |
| unsigned | strLen |
| const byte_type * | substr |
| unsigned | substrLen |
| static bool fe::Substring::isValid | ( | const Substring & | substr | ) | [inline, static] |
Returns true if Substring::str, Substring::strLen, Substring::substr and Substring::substrLen fields of the given substr are mutually correct.
The function is intended to be used with assert-s.
| substr | value to test. |
| unsigned fe::Substring::line |
Index of a text line the fe::Substring belongs to.
| const byte_type* fe::Substring::str |
Pointer to text line data. Points to the first byte of the text line.
| unsigned fe::Substring::strLen |
| const byte_type* fe::Substring::substr |
| unsigned fe::Substring::substrLen |
Size of the fe::Substring in bytes. str + strLen <= substr + substrLen;