|
a/src/common/textsplit.cpp |
|
b/src/common/textsplit.cpp |
|
... |
|
... |
362 |
*
|
362 |
*
|
363 |
* @return true if ok, false for error. Splitting should stop in this case.
|
363 |
* @return true if ok, false for error. Splitting should stop in this case.
|
364 |
* @param spanerase Set if the current span is at its end. Process it.
|
364 |
* @param spanerase Set if the current span is at its end. Process it.
|
365 |
* @param bp The current BYTE position in the stream
|
365 |
* @param bp The current BYTE position in the stream
|
366 |
*/
|
366 |
*/
|
367 |
inline bool TextSplit::doemit(bool spanerase, size_t bp)
|
367 |
inline bool TextSplit::doemit(bool spanerase, size_t _bp)
|
368 |
{
|
368 |
{
|
|
|
369 |
int bp = int(_bp);
|
369 |
LOGDEB2(("TextSplit::doemit: sper %d bp %d spp %d spanwords %u wS %d wL %d "
|
370 |
LOGDEB2(("TextSplit::doemit: sper %d bp %d spp %d spanwords %u wS %d wL %d "
|
370 |
"inn %d span [%s]\n",
|
371 |
"inn %d span [%s]\n",
|
371 |
spanerase, int(bp), m_spanpos, m_words_in_span.size(),
|
372 |
spanerase, bp, m_spanpos, m_words_in_span.size(),
|
372 |
m_wordStart, m_wordLen, m_inNumber, m_span.c_str()));
|
373 |
m_wordStart, m_wordLen, m_inNumber, m_span.c_str()));
|
373 |
|
374 |
|
374 |
if (m_wordLen) {
|
375 |
if (m_wordLen) {
|
375 |
// We have a current word. Remember it
|
376 |
// We have a current word. Remember it
|
376 |
|
377 |
|