Idea: partially pure functions
Janice Caron
caron800 at googlemail.com
Wed Apr 30 07:57:35 PDT 2008
2008/4/30 Robert Fraser <fraserofthenight at gmail.com>:
> Can
> you give me an example of a character where the number of bytes in that
> character's representation changes when its case is changed?
Your wish is my command:
Character '\u023A' is LATIN CAPITAL LETTER A WITH STROKE
In UTF-8: [ 0xC8, 0xBA ]
Character '\u2C65' is LATIN SMALL LETTER A WITH STROKE
In UTF-8: [ 0xE2, 0xB1, 0xA5 ]
So it gets longer when you lowercase it, shorter when you uppercase it.
More information about the Digitalmars-d
mailing list