Simon Cozens <simon(_at_)cozens(_dot_)net> writes:
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
details, and I would beg and plead that this doesn't happen.
Me too - that is _exactly_ what my names are trying to avoid.
The 'utf8' in there is _NOT_ perls internal form but what user has/wants.
See Graham's comments about LDAP.
The 'chars' is the perl-internal side and is deliberately implementation
neutral.
Now it may be that chars_to_utf8bytes() is just SvPVX() if the internals
are already in right state - but that is an implementation detail
and the API should not be based on those.
--
Nick Ing-Simmons <nik(_at_)tiuk(_dot_)ti(_dot_)com>
Via, but not speaking for: Texas Instruments Ltd.