--- a/str.cpp Mon Mar 18 04:03:05 2013 +0200 +++ b/str.cpp Mon Mar 18 12:15:23 2013 +0200 @@ -82,7 +82,7 @@ // ============================================================================ // Adds a new character at the end of the string. -void str::append (char c) { +void str::append (const char c) { // Out of space, thus resize if (curs == alloclen) resize (alloclen + 1); @@ -103,6 +103,10 @@ append (c.chars()); } +void str::append (QString c) { + append (c.toUtf8 ().constData ()); +} + // ============================================================================ void str::appendformat (const char* c, ...) { va_list v; @@ -256,6 +260,7 @@ } // ============================================================================ +// It works otherwise but I'm having trouble with the initializer_list /* void str::strip (char c) { strip ({c});