to{upper,lower}_ascii in Samba 3
Jelmer Vernooij
jelmer at samba.org
Fri Jun 25 10:35:07 MDT 2010
Samba 3 has some nice utility functions for converting ascii characters
to uppercase or lowercase. However, there appear to be two versions:
to{upper,lower}_ascii and to{upper,lower}_ascii_fast
The first pair of functions seems to do conversion to uppercase by
converting to UCS2, changing case and then converting back. The second
pair uses a lookup table.
Is there a good reason for keeping both around rather than using the
second pair everywhere?
(I'd like to move these functions into the common lib/util so Samba 4
can use them)
Cheers,
Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100625/6ddd4fe5/attachment.pgp>
More information about the samba-technical
mailing list