Re: [gtkmm] std::getline() for Glib::ustring



Am 12.07.2002 21:56 schrieb(en) Morten Brix Pedersen:
Hi,

In gtkmm 1.2, I was using streams and strings together with
std::getline(), however, this doesn't work with Glib::ustring since it's
specialised for the basic_string<> template.

Has anyone implemented something like it for Glib::ustring?

If the strings from the data source are not UTF8 the right way is
to keep using std::getline() with std::string and build a UTF8 string
with Glib::locale_to_utf8() when necessary.

Regards,

  Martin



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