Simon Cozens <[EMAIL PROTECTED]> writes:
>On Tue, Sep 12, 2000 at 11:24:47AM +0200, Gisle Aas wrote:
>> Nick Ing-Simmons <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
Via, but not speaking for: Texas Instruments Ltd.