Re: [gtkmm] Glib::Unicode::toupper can't be used the same way as toupper



>> Morten Brix Pedersen <morten wtf dk> writes:

 > It's Glib::ustring which fails, not std::string.

 Oh.  I'm sorry.

 Looking at ustring.h, operator* returns a value, not a reference.
 Transform needs a reference in order to work.  The documentation for
 Glib::ustring says:

 * A writeable iterator isn't provided because:  The number of bytes of
 * the old UTF-8 character and the new one to write could be different.
 * Therefore, any write operation would invalidate all other iterators
 * pointing into the same string.

-- 
Marcelo



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]