15 class TextBufferChange;
43 int at(
int idx )
const;
71 int offsetDeltaIndex_;
int offsetDeltaIndex()
Definition: lineoffsetvector.h:49
This clas represents a text buffer change and is used to pass around between events This is a sharedd...
Definition: textbuffer.h:45
friend class LineOffsetVectorTest
Definition: lineoffsetvector.h:74
GapVector< int > offsetList()
Definition: lineoffsetvector.h:54
LineOffsetVector()
a structure to describe the line change that happend
Definition: lineoffsetvector.cpp:15
This class implements the vector for storing the line numbers at certain offsets/ The class allows th...
Definition: lineoffsetvector.h:26
int findLineFromOffset(int offset)
this method searches the line from the given offset
Definition: lineoffsetvector.cpp:101
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
int at(int idx) const
this method returns the line offset at the given line offset
Definition: lineoffsetvector.cpp:85
void changeOffsetDelta(int index, int delta)
This method moves the offset delta to the given location.
Definition: lineoffsetvector.cpp:257
int offsetDelta()
Definition: lineoffsetvector.h:48
int length() const
Definition: lineoffsetvector.cpp:94
void moveDeltaToIndex(int index)
This method moves the delta to the given index.
Definition: lineoffsetvector.cpp:220
int searchOffsetIgnoringOffsetDelta(int offset, int org_start, int org_end)
This method returns the line from the start position. This method uses a binary search. Warning this method uses RAW values from the offsetList it does NOT take in account the offsetDelta.
Definition: lineoffsetvector.cpp:174
void applyChange(TextBufferChange change)
Definition: lineoffsetvector.cpp:25
void appendOffset(int offset)
This method appends an offset to the end of the list It simply applies the current offsetDelta becaus...
Definition: lineoffsetvector.cpp:128
void initForUnitTesting(int offsetDelta, int offsetDeltaIndex,...)
initializes the construct for unit testing
Definition: lineoffsetvector.cpp:153
QString toUnitTestString()
This method returns the offset to string.
Definition: lineoffsetvector.cpp:134