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

Method clearNewLine

MyGUIEngine/src/MyGUI_TextIterator.cpp:289–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287 }
288
289 void TextIterator::clearNewLine(UString& _text)
290 {
291 for (UString::iterator iter = _text.begin(); iter != _text.end(); iter.moveNext())
292 {
293 auto character = iter.getCharacter();
294 if (character == FontCodeType::NEL || character == FontCodeType::CR || character == FontCodeType::LF)
295 {
296 (*iter) = FontCodeType::Space;
297 }
298 }
299 }
300
301 bool TextIterator::saveStartPoint()
302 {

Callers

nothing calls this directly

Calls 4

moveNextMethod · 0.80
getCharacterMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected