| 382 | |
| 383 | |
| 384 | void 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 |
nothing calls this directly
no test coverage detected