dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dw::core::CharIterator Class Reference

#include <iterator.hh>

Inheritance diagram for dw::core::CharIterator:
[legend]
Collaboration diagram for dw::core::CharIterator:
[legend]

Public Types

enum  { START = 257, END = 258 }
 

Public Member Functions

 CharIterator (Widget *widget)
 
 ~CharIterator ()
 
lout::object::Objectclone ()
 Return an exact copy of the object. More...
 
int compareTo (lout::object::Comparable *other)
 Compare two objects c1 and c2. More...
 
bool next ()
 
bool prev ()
 
int getChar ()
 
CharIteratorcloneCharIterator ()
 
- 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. More...
 
virtual bool equals (Object *other)
 Returns, whether two objects are equal. More...
 
virtual int hashValue ()
 Return a hash value for the object. More...
 
virtual void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer. More...
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object. More...
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses. More...
 

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::object::Comparable
static int compareFun (const void *p1, const void *p2)
 This static method may be used as compare function for qsort(3) and bsearch(3), for an array of Object* (Object*[] or Object**). More...
 

Private Member Functions

 CharIterator ()
 

Private Attributes

DeepIteratorit
 
int pos
 
int ch
 

Detailed Description

Definition at line 219 of file iterator.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
START 
END 

Definition at line 224 of file iterator.hh.

Constructor & Destructor Documentation

◆ CharIterator() [1/2]

dw::core::CharIterator::CharIterator ( )
private

Definition at line 640 of file iterator.cc.

◆ CharIterator() [2/2]

dw::core::CharIterator::CharIterator ( Widget widget)

◆ ~CharIterator()

dw::core::CharIterator::~CharIterator ( )

Definition at line 653 of file iterator.cc.

Member Function Documentation

◆ clone()

object::Object * dw::core::CharIterator::clone ( )
virtual

Return an exact copy of the object.

Reimplemented from lout::object::Object.

Definition at line 659 of file iterator.cc.

References ch, dw::core::DeepIterator::cloneDeepIterator(), it, and pos.

Referenced by cloneCharIterator().

◆ cloneCharIterator()

CharIterator* dw::core::CharIterator::cloneCharIterator ( )
inline

Definition at line 242 of file iterator.hh.

References clone().

Referenced by dw::core::FindtextState::search(), and dw::core::FindtextState::unhighlight().

◆ compareTo()

int dw::core::CharIterator::compareTo ( lout::object::Comparable other)
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 c1.equals(c2) (as defined in Object), 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::object::Comparable.

Definition at line 668 of file iterator.cc.

References lout::object::Comparable::compareTo(), it, and pos.

◆ getChar()

int dw::core::CharIterator::getChar ( )
inline

Definition at line 241 of file iterator.hh.

References ch.

Referenced by highlight(), and dw::core::FindtextState::search0().

◆ highlight()

◆ next()

bool dw::core::CharIterator::next ( )

◆ prev()

◆ scrollTo()

static void dw::core::CharIterator::scrollTo ( CharIterator it1,
CharIterator it2,
HPosition  hpos,
VPosition  vpos 
)
inlinestatic

Definition at line 249 of file iterator.hh.

References it, pos, and dw::core::DeepIterator::scrollTo().

Referenced by dw::core::FindtextState::search().

◆ unhighlight()

Member Data Documentation

◆ ch

int dw::core::CharIterator::ch
private

Definition at line 228 of file iterator.hh.

Referenced by clone(), and getChar().

◆ it

DeepIterator* dw::core::CharIterator::it
private

Definition at line 227 of file iterator.hh.

Referenced by clone(), compareTo(), highlight(), scrollTo(), and unhighlight().

◆ pos

int dw::core::CharIterator::pos
private

Definition at line 228 of file iterator.hh.

Referenced by clone(), compareTo(), highlight(), and scrollTo().


The documentation for this class was generated from the following files: