Re: Gtk::ustring and std::getline()

On Mon, 2008-05-05 at 13:40 -0400, Jamiil wrote:
> ==== snip ====
> std::string stdstr;
> Glib::ustring glibstr;
> std::getline( file_source, /*glibstr*/stdstr, '^' );
> glibstr = stdstr;
> This is a patch up job, a very bad solution, but I hope that with our 
> help it will be a temporarily one. I don't want to use the UTF8
> benefits 
> of ustring!
> What can I do?

Why do you need a Glib::ustring?
If all you need is store UTF-8 std::string works fine.


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