Need a string_unescape function returning c-string

chromatic chromatic at wgz.org
Wed Jan 14 00:54:23 UTC 2009


On Tuesday 13 January 2009 15:09:24 kjstol wrote:

> PIRC absolutely needs this, and in that case it's absolutely safe to use,
> as there is no encoding yet: I'm now converting the c-string into a STRING
> (because that's what the unescaping function happens to return) , to then
> convert it back into a c-string. Not useful. Not efficient.

I don't buy that; when PIRC parses PIR/PASM, there's definitely an encoding in 
place.  It just so happens that the current assumption is likely always 
Latin-1, which won't work everywhere in the future.

What are you doing with C strings that you can't do with STRINGs?

-- c


More information about the parrot-dev mailing list