sources/mystring.cpp

branch
protocol5
changeset 103
b78c0ca832a9
parent 84
3bd32eec3d57
child 106
7b156b764d11
equal deleted inserted replaced
84:3bd32eec3d57 103:b78c0ca832a9
493 if (a == b) 493 if (a == b)
494 m_string = ""; 494 m_string = "";
495 else if (a != 0 or b != length() - 1) 495 else if (a != 0 or b != length() - 1)
496 m_string = m_string.substr (a, b - a + 1); 496 m_string = m_string.substr (a, b - a + 1);
497 } 497 }
498
499 // -------------------------------------------------------------------------------------------------
500 //
501 String String::normalized (int (*filter)(int)) const
502 {
503 String result = *this;
504 result.normalize(filter);
505 return result;
506 }

mercurial