diff -r b4466472aecd -r ca10837a2a9e sources/mystring.h --- a/sources/mystring.h Sat Jan 09 17:20:25 2016 +0200 +++ b/sources/mystring.h Sat Jan 09 17:48:28 2016 +0200 @@ -100,6 +100,7 @@ void insert (int pos, const char*c) { m_string.insert (pos, c); } void modify_index (int &a) { if (a < 0) { a = length() - a; } } void normalize (int (*filter)(int) = &isspace); + String normalized (int (*filter)(int) = &isspace) const; void prepend (String a) { m_string = (a + m_string).std_string(); } void remove (int pos, int len) { m_string.replace (pos, len, ""); } void remove_at (int pos) { m_string.erase (m_string.begin() + pos); } @@ -110,8 +111,9 @@ void shrink_to_fit() { m_string.shrink_to_fit(); } void __cdecl sprintf (const char* fmtstr, ...); void vsprintf (const char* fmtstr, va_list args); - bool starts_with (const String &other); - String strip (const List& unwanted); + bool starts_with (const String &other) const; + String strip (char unwanted) { return strip ({unwanted}); } + String strip (const List &unwanted); void trim (int n); static String from_number (short int a);