MCPcopy Create free account
hub / github.com/MyGUI/mygui / normaliseNewLine

Method normaliseNewLine

MyGUIEngine/src/MyGUI_TextIterator.cpp:608–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected