MCPcopy Create free account
hub / github.com/buggins/coolreader / CommitText

Method CommitText

crengine/src/rtfimp.cpp:384–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382
383
384void LVRtfParser::CommitText()
385{
386 if ( txtpos==0 )
387 return;
388 txtbuf[txtpos] = 0;
389#ifdef LOG_RTF_PARSING
390 if ( CRLog::isLogLevelEnabled(CRLog::LL_TRACE ) ) {
391 lString16 s = txtbuf;
392 lString8 s8 = UnicodeToUtf8( s );
393 CRLog::trace( "Text(%s)", s8.c_str() );
394 }
395#endif
396 m_stack.getDestination()->OnText( txtbuf, txtpos, TXTFLG_RTF );
397 txtpos = 0;
398}
399
400#define MAX_TXT_SIZE 65535
401

Callers

nothing calls this directly

Calls 4

UnicodeToUtf8Function · 0.85
getDestinationMethod · 0.80
c_strMethod · 0.45
OnTextMethod · 0.45

Tested by

no test coverage detected