fe::Substring Struct Reference
[Ferry Core library]

Part of editor's text line. More...

List of all members.

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


Detailed Description

Part of editor's text line.

Member Function Documentation

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.

Parameters:
substr value to test.


Member Data Documentation

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.

Size of text line data in bytes. *(str + strLen) == 0;

const byte_type* fe::Substring::substr

Pointer to the first byte of the fe::Substring. (str <= substr) && (str + strLen <= substr);

Size of the fe::Substring in bytes. str + strLen <= substr + substrLen;


The documentation for this struct was generated from the following file:

Generated on Tue Nov 18 21:08:23 2008 for Ferry by doxygen 1.5.7.1
http://sourceforge.net