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 } |