This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: String and std::string
- From: Pavel Tsekov <ptsekov at gmx dot net>
- To: Max Bowsher <maxb at ukf dot net>
- Cc: cygwin-apps at cygwin dot com
- Date: Sun, 16 Mar 2003 16:06:33 +0100 (CET)
- Subject: 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.