[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing NSString getBytes

From: Luboš Doležel
Subject: Re: Implementing NSString getBytes
Date: Mon, 10 Jun 2013 11:21:06 +0200
User-agent: Roundcube Webmail/0.5

On Mon, 10 Jun 2013 10:07:50 +0100, Richard Frith-Macdonald wrote:
I think you are not looking at the whole documentation and/or code:

If GSUniShortOk is set, the function will return a buffer containing
any decoded characters even if the whole conversion fails.

This means that it will convert and return as many characters as it
can (if you specify the GSUniShortOk option).

Aah, missed that one!

What it doesn't currently do is return the number of
converted/remaining characters in the source, only the number of bytes
produced in the destination, which is why I'm saying we should just
modify it to return the number of source characters not converted.
This seems to me a very minor (and logical) extension of existing

Sound good!

Luboš Doležel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]