help using Glib::ustring
- From: "Jamiil Abduqadir" <jalqadir gmail com>
- To: "Gtkmm Mailing List" <gtkmm-list gnome org>
- Subject: help using Glib::ustring
- Date: Wed, 19 Dec 2007 18:54:54 -0500
I am porting my old code to Gtkmm, I have started with the most fundamental of applications, a string manipulation class.
What I am trying to do is very simple, but the new paradigm has me a bit confused, to convert a string to upper case here is my code
const Glib::ustring& jme::strtools::toUpper( const Glib::ustring& s ) {
//global variable
tmp.clear();
tmp = s;
//remove non-printable characters
tmp = this->trimIt( tmp );
//Iterate through the string until the end of the is found
for ( Glib::ustring::iterator i = tmp.begin(); i != tmp.end(); ++i ) {
*i = toupper( i ); <<=== the old version
}
return tmp;
}
i = i.uppercase() ?? did not work
any suggestions?
Thanks folks
--
Happiness has many doors, and when one of them closes another opens, yet we spent so much time looking at the one that is shut that we don't see the one that just opened.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]