String and std::string
Pavel Tsekov
ptsekov@gmx.net
Sun Mar 16 15:05:00 GMT 2003
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.
More information about the Cygwin-apps
mailing list