| 432 | } |
| 433 | |
| 434 | void TextIterator::clear() |
| 435 | { |
| 436 | if (mText.empty()) |
| 437 | return; |
| 438 | |
| 439 | // записываем в историю |
| 440 | if (mHistory) |
| 441 | mHistory->push_back(TextCommandInfo(mText, 0, TextCommandInfo::COMMAND_ERASE)); |
| 442 | |
| 443 | // все сбрасываем |
| 444 | mText.clear(); |
| 445 | mCurrent = mText.begin(); |
| 446 | mEnd = mSave = mText.end(); |
| 447 | mSize = ITEM_NONE; |
| 448 | } |
| 449 | |
| 450 | void TextIterator::cutMaxLength(size_t _max) |
| 451 | { |
nothing calls this directly
no test coverage detected