|
Dillo
|
#include <iterator.hh>
Public Types | |
| enum | { START = 257, END = 258 } |
Public Member Functions | |
| CharIterator (Widget *widget) | |
| ~CharIterator () | |
| lout::object::Object * | clone () |
| Return an exact copy of the object. | |
| int | compareTo (lout::misc::Comparable *other) |
| Compare two objects c1 and c2. | |
| bool | next () |
| bool | prev () |
| int | getChar () |
| CharIterator * | cloneCharIterator () |
Public Member Functions inherited from lout::object::Object | |
| virtual | ~Object () |
| The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly. | |
| virtual bool | equals (Object *other) |
| Returns, whether two objects are equal. | |
| virtual int | hashValue () |
| Return a hash value for the object. | |
| virtual void | intoStringBuffer (misc::StringBuffer *sb) |
| Store a textual representation of the object in a misc::StringBuffer. | |
| const char * | toString () |
| Use object::Object::intoStringBuffer to return a textual representation of the object. | |
| virtual size_t | sizeOf () |
| Return the number of bytes, this object totally uses. | |
Public Member Functions inherited from lout::misc::Comparable | |
| virtual | ~Comparable () |
Static Public Member Functions | |
| static void | highlight (CharIterator *it1, CharIterator *it2, HighlightLayer layer) |
| static void | unhighlight (CharIterator *it1, CharIterator *it2, HighlightLayer layer) |
| static void | scrollTo (CharIterator *it1, CharIterator *it2, HPosition hpos, VPosition vpos) |
Static Public Member Functions inherited from lout::misc::Comparable | |
| static int | compareFun (const void *p1, const void *p2) |
| This static method may be used as compare function for qsort(3), for an array of Object* (Object*[] or Object**). | |
Private Member Functions | |
| CharIterator () | |
Private Attributes | |
| DeepIterator * | it |
| int | pos |
| int | ch |
|
private |
| dw::core::CharIterator::CharIterator | ( | Widget * | widget | ) |
| dw::core::CharIterator::~CharIterator | ( | ) |
|
virtual |
Return an exact copy of the object.
Reimplemented from lout::object::Object.
References ch, dw::core::DeepIterator::cloneDeepIterator(), it, and pos.
Referenced by cloneCharIterator().
|
inline |
References clone().
Referenced by dw::core::FindtextState::search(), and dw::core::FindtextState::unhighlight().
|
virtual |
Compare two objects c1 and c2.
return a value < 0, when c1 is less than c2, a value > 0, when c1 is greater than c2, or 0, when c1 and c2 are equal.
If also object::Object is implemented, and if c1.equals(c2), c1.compareTo(c2) must be 0, but, unlike you may expect, the reversed is not necessarily true. This method returns 0, if, according to the rules for sorting, there is no difference, but there may still be differences (not relevant for sorting), which "equals" will care about.
Implements lout::misc::Comparable.
References lout::misc::Comparable::compareTo(), it, and pos.
|
inline |
References ch.
Referenced by highlight(), and dw::core::FindtextState::search0().
|
static |
References dw::core::DeepIterator::cloneDeepIterator(), dw::core::DeepIterator::compareTo(), END, getChar(), dw::core::DeepIterator::getContent(), dw::core::DeepIterator::highlight(), it, dw::core::DeepIterator::next(), pos, prev(), dw::core::Content::TEXT, dw::core::Content::text, and dw::core::Content::type.
Referenced by dw::core::FindtextState::search().
| bool dw::core::CharIterator::next | ( | ) |
References dw::core::Content::BREAK, dw::core::DeepIterator::next(), and dw::core::Content::TEXT.
Referenced by dw::core::FindtextState::search(), and dw::core::FindtextState::search0().
| bool dw::core::CharIterator::prev | ( | ) |
|
inlinestatic |
References it, pos, and dw::core::DeepIterator::scrollTo().
Referenced by dw::core::FindtextState::search().
|
static |
|
private |
Referenced by clone(), compareTo(), highlight(), scrollTo(), and unhighlight().
|
private |
Referenced by clone(), compareTo(), highlight(), and scrollTo().
1.8.2