On Tue, Sep 12, 2000 at 11:17:50AM +0100, Simon Cozens wrote:
On Tue, Sep 12, 2000 at 11:24:47AM +0200, Gisle Aas wrote:
Nick Ing-Simmons <nick(_at_)ing-simmons(_dot_)net> writes:
My stab at names would be:
utf8bytes_to_chars()
chars_to_utf8bytes();
That works for me.
That screams of getting the user *WAY* too involved with the underlying
Not really. I read that as
utf8bytes_to_chars()
Here is a buffer of bytes that are actually a UTF8 encoding of some string,
please convert it to charaters of whatever encoding the system uses internally.
chars_to_utf8bytes()
Here is a buffer which contains a string of chars encoded in whatever
the system decided, please give me a utf8 encoding of that string.
OK, right now the system uses utf8 so these may just be turning
on/off the utf8 flag. But the fact that they convert utf8<=>chars
allows the system to use whatever encoding it likes for chars.
Graham.