This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [RFC] libstdc++/9817 or "passing C++ strings to C functions"


Paolo Carlini wrote:

For concreteness, you will find attached a *very* rough and redundant
(please, be gentle ;) implementation of the idea. I'm still not sure
if this is allowed by the standard and if less costly solutions are
worthy (for instance calling the underlying strcoll more than one time
for each hunk).

Sigh :(


As written, this cannot possibly be correct: if one string happens to have
the chosen char (e.g., '$') in exactly the same place where the other had
'\0' before the preprocessing they end up comparing wrongly equal...

Double :(

Paolo.


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