Lines Matching refs:length
7 KUndoItem::KUndoItem(const char* redo_text, int32 length, int32 offset,
11 Length = length;
16 RedoText = (char*)malloc(length);
19 memcpy(RedoText, redo_text, length);
41 KUndoItem::Merge(const char* text, int32 length)
43 RedoText = (char*)realloc(RedoText, Length + length);
44 memcpy(&RedoText[Length], text, length);
45 Length += length;
120 KUndoBuffer::NewUndo(const char* text, int32 length, int32 offset,
123 KUndoItem* NewUndoItem = new KUndoItem(text, length, offset, history,
138 KUndoBuffer::AddUndo(const char* text, int32 length, int32 offset,
147 status = NewUndo(text, length, offset, history, cursor_pos);
161 CurrentUndoItem->Merge(text, length);
163 status = NewUndo(text, length, offset, history,
168 status = NewUndo(text, length, offset, history,
173 status = NewUndo(text, length, offset, history, cursor_pos);
193 KUndoBuffer::Undo(char** text, int32* length, int32* offset,
203 *length = undoItem->Length;
216 KUndoBuffer::Redo(char** text, int32* length, int32* offset,
226 *length = undoItem->Length;