Pavel Tsekov wrote: > On Sun, 16 Mar 2003, Max Bowsher wrote: > >> I've been toying with some ideas for UserSetting persistence in >> setup.conf, and have run into the following issue: >> >> String, from String++.* lacks some functionality I need. std::string >> has the necessary functionality. >> >> Is one of String and std::string deprecated as far as setup is >> concerned? >> >> Are there any features String has but std::string does not? > > Except for casecompare() I think not. Of course you can perform > caseless comparison with std::string. It's just a bit tricky :). > Hint: char_traits.
What fun. I think it's time to improve my STL knowledge. > And there is the other difference that string is standard. > >> Should I add the needed functionality to String, or convert all >> relevant parts of setup away from String, to std::string? > > This will require a BIG patch. Yep! > There was a short discussion in the > past about this I think. Can anyone point me to it? "String" doesn't make a very good search term! Max.
