--- a/sources/mystring.cpp Sat Jan 09 17:20:25 2016 +0200 +++ b/sources/mystring.cpp Sat Jan 09 17:48:28 2016 +0200 @@ -315,7 +315,7 @@ // ------------------------------------------------------------------------------------------------- // -bool String::starts_with (const String& other) +bool String::starts_with (const String& other) const { if (length() < other.length()) return false; @@ -509,4 +509,13 @@ m_string = m_string.substr (a, b - a + 1); } +// ------------------------------------------------------------------------------------------------- +// +String String::normalized (int (*filter)(int)) const +{ + String result = *this; + result.normalize(filter); + return result; +} + END_ZFC_NAMESPACE