| 606 | } |
| 607 | |
| 608 | void TextIterator::normaliseNewLine(UString& _text) |
| 609 | { |
| 610 | for (size_t index = 0; index < _text.size(); ++index) |
| 611 | { |
| 612 | Char character = _text[index]; |
| 613 | if ((character == FontCodeType::CR) && ((index + 1) < _text.size()) && |
| 614 | (_text[index + 1] == FontCodeType::LF)) |
| 615 | { |
| 616 | _text.erase(index, 1); |
| 617 | } |
| 618 | } |
| 619 | } |
| 620 | |
| 621 | } // namespace MyGUI |