[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: urlstring testing/enhancement
From: |
Chad Yates |
Subject: |
RE: urlstring testing/enhancement |
Date: |
Thu, 30 Jan 2003 12:50:45 -0800 |
(snip)
>
> I guess there is no good solution for this. The first copy
> seems unavoidable and the second one, as far as I know, could only be
> avoided if the core routine operated over a string object instead of
> the array of char, but that would be a lot worse. Well, after all, you
> loose some performance, but you can save significant space :).
>
> Also, what about adding an encode method that takes a string
> object as argument.
Albert suggested the same thing. I'm going to leave it as it is for now,
and maybe add an overloaded pair to allow the string ref to be passed in.
I've attached a patch to urlstring with the current code changes (It will be
required to compile the ccxx_tests without modifying the urlstring test
cases)
,Chad
urlstring_stdstring.patch
Description: Binary data