#include <ut_growbuf.h>
Public Member Functions | |
UT_GrowBuf (UT_uint32 iChunk=0) | |
~UT_GrowBuf () | |
bool | append (const UT_GrowBufElement *pValue, UT_uint32 length) |
bool | ins (UT_uint32 position, const UT_GrowBufElement *pValue, UT_uint32 length) |
bool | ins (UT_uint32 position, UT_uint32 length) |
bool | del (UT_uint32 position, UT_uint32 amount) |
bool | overwrite (UT_uint32 position, UT_GrowBufElement *pValue, UT_uint32 length) |
void | truncate (UT_uint32 position) |
UT_uint32 | getLength (void) const |
UT_GrowBufElement * | getPointer (UT_uint32 position) const |
Private Member Functions | |
bool | _growBuf (UT_uint32 spaceNeeded) |
Private Attributes | |
UT_GrowBufElement * | m_pBuf |
UT_uint32 | m_iSize |
UT_uint32 | m_iSpace |
UT_uint32 | m_iChunk |
bool UT_GrowBuf::_growBuf | ( | UT_uint32 | spaceNeeded | ) | [private] |
References m_iChunk, m_iSize, m_iSpace, m_pBuf, and UT_calloc().
Referenced by ins(), and overwrite().
bool UT_GrowBuf::append | ( | const UT_GrowBufElement * | pValue, | |
UT_uint32 | length | |||
) |
References ins(), and m_iSize.
Referenced by IE_Imp_Applix::_applixDecodeText(), IE_Imp_Applix::_applixPageBreak(), IE_Imp_Text::_parseStream(), GR_Graphics::appendRenderedCharsToBuff(), fp_TextRun::appendTextToBuf(), FV_View::cmdTableToText(), FV_View::getAnnotationText(), Abi_GrammarCheck::GetEnglishText(), and UT_decodeUTF8string().
UT_uint32 UT_GrowBuf::getLength | ( | void | ) | const |
References m_iSize.
Referenced by IE_Imp_RTF::_appendSpan(), IE_Imp_Applix::_applixDecodeText(), IE_Imp_Applix::_applixNewPara(), IE_Imp_Applix::_applixPageBreak(), AP_Dialog_Paragraph::_createPreviewFromGC(), FV_View::_findGetNextBlockBuffer(), FV_View::_findGetPrevBlockBuffer(), FV_View::_getDocPosFromPoint(), IE_Imp_Text::_insertSpan(), IE_Imp_RTF::_insertSpan(), IE_Imp_PalmDoc::_parseFile(), IE_Imp_ClarisWorks::_parseFile(), IE_Imp_Text::_parseStream(), XAP_Dictionary::_parseUTF8(), fp_TextRun::_refreshDrawBuffer(), AbiOts_invoke(), IE_Imp_RTF::AddChar(), pt_VarSet::appendBuf(), fl_BlockLayout::appendUTF8String(), IE_Imp_RTF::ApplyCharacterAttributes(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), FV_View::cmdTableToText(), FV_View::cmdTextToTable(), FL_DocLayout::considerSmartQuoteCandidateAt(), FV_View::countWords(), fl_BlockLayout::debugFlashing(), IE_Imp_RTF::FlushStoredChars(), FV_View::getAnnotationText(), pt_PieceTable::getBlockBuf(), Abi_GrammarCheck::GetEnglishText(), fl_BlockLayout::getNextTableElement(), FV_View::getSelectionText(), FV_View::getTextBetweenPos(), IE_Imp_RTF::HandleCell(), XAP_Prefs::savePrefsFile(), XAP_DiskStringSet::setValue(), AP_DiskStringSet::setValue(), and FV_View::toggleCase().
UT_GrowBufElement * UT_GrowBuf::getPointer | ( | UT_uint32 | position | ) | const |
References m_iSize, m_pBuf, and UT_ASSERT.
Referenced by IE_Imp_RTF::_appendSpan(), IE_Imp_Applix::_applixDecodeText(), IE_Imp_Applix::_applixNewPara(), IE_Imp_Applix::_applixPageBreak(), AP_Dialog_Paragraph::_createPreviewFromGC(), FV_View::_findGetNextBlockBuffer(), FV_View::_findGetPrevBlockBuffer(), FV_View::_getDocPosFromPoint(), IE_Imp_Text::_insertSpan(), IE_Imp_RTF::_insertSpan(), FV_View::_isSpaceBefore(), IE_Imp_PalmDoc::_parseFile(), IE_Imp_ClarisWorks::_parseFile(), XAP_Dictionary::_parseUTF8(), fp_TextRun::_refreshDrawBuffer(), AbiOts_invoke(), fp_TextRun::appendTextToBuf(), fl_BlockLayout::appendUTF8String(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), FV_View::cmdTableToText(), FL_DocLayout::considerSmartQuoteCandidateAt(), FV_View::countWords(), fp_TextRun::findFirstNonBlankSplitPoint(), FV_View::getAnnotationText(), Abi_GrammarCheck::GetEnglishText(), fl_BlockLayout::getNextTableElement(), FV_View::getSelectionText(), FV_View::getTextBetweenPos(), XAP_Prefs::savePrefsFile(), XAP_DiskStringSet::setValue(), AP_DiskStringSet::setValue(), and FV_View::toggleCase().
bool UT_GrowBuf::ins | ( | UT_uint32 | position, | |
const UT_GrowBufElement * | pValue, | |||
UT_uint32 | length | |||
) |
References _growBuf(), m_iSize, m_iSpace, m_pBuf, and UT_ASSERT.
Referenced by IE_Imp_PalmDoc::_parseFile(), IE_Imp_ClarisWorks::_parseFile(), XAP_Dictionary::_parseUTF8(), IE_Imp_RTF::AddChar(), append(), and pt_PieceTable::getBlockBuf().
References _growBuf(), m_iSize, m_iSpace, and m_pBuf.
bool UT_GrowBuf::overwrite | ( | UT_uint32 | position, | |
UT_GrowBufElement * | pValue, | |||
UT_uint32 | length | |||
) |
References _growBuf(), m_iSpace, m_pBuf, and UT_ASSERT.
void UT_GrowBuf::truncate | ( | UT_uint32 | position | ) |
References m_iChunk, m_iSize, m_iSpace, and m_pBuf.
Referenced by IE_Imp_Applix::_applixDecodeText(), IE_Imp_Applix::_applixPageBreak(), AP_Dialog_Paragraph::_createPreviewFromGC(), FV_View::_findGetNextBlockBuffer(), FV_View::_findGetPrevBlockBuffer(), FV_View::_getDocPosFromPoint(), IE_Imp_Text::_insertSpan(), IE_Imp_PalmDoc::_parseFile(), IE_Imp_ClarisWorks::_parseFile(), XAP_Dictionary::_parseUTF8(), AbiOts_invoke(), IE_Imp_RTF::ApplyCharacterAttributes(), FV_View::cmdTableToText(), FV_View::getAnnotationText(), FV_View::getTextBetweenPos(), and FV_View::toggleCase().
UT_uint32 UT_GrowBuf::m_iChunk [private] |
Referenced by _growBuf(), del(), truncate(), and UT_GrowBuf().
UT_uint32 UT_GrowBuf::m_iSize [private] |
Referenced by _growBuf(), append(), del(), getLength(), getPointer(), ins(), and truncate().
UT_uint32 UT_GrowBuf::m_iSpace [private] |
Referenced by _growBuf(), del(), ins(), overwrite(), and truncate().
UT_GrowBufElement* UT_GrowBuf::m_pBuf [private] |
Referenced by _growBuf(), del(), getPointer(), ins(), overwrite(), truncate(), and ~UT_GrowBuf().