Changeset View
Changeset View
Standalone View
Standalone View
src/kcodecsqp.cpp
Show First 20 Lines • Show All 365 Lines • ▼ Show 20 Line(s) | 329 | while (scursor != send && dcursor != dend) { | |||
---|---|---|---|---|---|
366 | uchar ch = *scursor++; | 366 | uchar ch = *scursor++; | ||
367 | uchar value = 255; | 367 | uchar value = 255; | ||
368 | 368 | | |||
369 | if (mExpectLF && ch != '\n') { | 369 | if (mExpectLF && ch != '\n') { | ||
370 | //qWarning() << "QuotedPrintableDecoder:" | 370 | //qWarning() << "QuotedPrintableDecoder:" | ||
371 | // "illegally formed soft linebreak or lonely CR!"; | 371 | // "illegally formed soft linebreak or lonely CR!"; | ||
372 | mInsideHexChar = false; | 372 | mInsideHexChar = false; | ||
373 | mExpectLF = false; | 373 | mExpectLF = false; | ||
374 | assert(mAccu == 0); | 374 | if (mAccu != 0) | ||
375 | return false; | ||||
375 | } | 376 | } | ||
376 | 377 | | |||
377 | if (mInsideHexChar) { | 378 | if (mInsideHexChar) { | ||
378 | // next char(s) represent nibble instead of itself: | 379 | // next char(s) represent nibble instead of itself: | ||
379 | if (ch <= '9') { | 380 | if (ch <= '9') { | ||
380 | if (ch >= '0') { | 381 | if (ch >= '0') { | ||
381 | value = ch - '0'; | 382 | value = ch - '0'; | ||
382 | } else { | 383 | } else { | ||
▲ Show 20 Lines • Show All 389 Lines • Show Last 20 Lines |