This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: String and std::string


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.

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. There was a short discussion in the past 
about this I think.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]