okteta
wordbytearrayservice.cpp
Go to the documentation of this file.
34 WordByteArrayService::WordByteArrayService( const AbstractByteArrayModel* byteArrayModel, const CharCodec* charCodec )
217 return !::isWordChar(byte(index)) ? indexOfBehindLeftWordEnd(index) : indexOfBehindRightWordEnd(index+1)
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
Address indexOfLeftWordSelect(Address index) const
Definition: wordbytearrayservice.cpp:146
const CharCodec *const mCharCodec
Definition: wordbytearrayservice.h:131
Address indexOfNextWordStart(Address index) const
searches for the start of the next word not including the given index.
Definition: wordbytearrayservice.cpp:80
Address indexOfWordStart(Address index) const
searches for the start of the word including the given index.
Definition: wordbytearrayservice.cpp:121
virtual Character decode(Byte byte) const =0
virtual Size size() const =0
Definition: charcodec.h:42
Address indexOfBeforeNextWordStart(Address index) const
searches for the start of the next word not including the given index.
Definition: wordbytearrayservice.cpp:100
AddressRange wordSection(Address index) const
returns the section with a word around index.
Definition: wordbytearrayservice.cpp:39
virtual Byte byte(Address offset) const =0
locates working range The idea behind is to tell buffer which range will be requested in the followin...
const AbstractByteArrayModel *const mByteArrayModel
Definition: wordbytearrayservice.h:130
WordByteArrayService(const AbstractByteArrayModel *byteArrayModel, const CharCodec *charCodec)
Definition: wordbytearrayservice.cpp:34
Address indexOfRightWordSelect(Address index) const
searches for the first char after the end of the word including the given index.
Definition: wordbytearrayservice.cpp:175
~WordByteArrayService()
Definition: wordbytearrayservice.cpp:275
bool isWordChar(Address index) const
if index is out of range the behaviour is undefined
Definition: wordbytearrayservice.cpp:47
Definition: character.h:35
Address indexOfPreviousWordStart(Address index) const
searches for the first char after the end of the word including the given index.
Definition: wordbytearrayservice.cpp:54
Address indexOfWordEnd(Address index) const
searches for the end of the word including the given index.
Definition: wordbytearrayservice.cpp:133
QString text(Address index, Address lastIndex=-1) const
returns the text starting at the given index until the first non-text byte if there is no text byte a...
Definition: wordbytearrayservice.cpp:246
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.