Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFStringUppercase ?



On Sun, 6 Mar 2005 05:20:39 -0500 Alice Hartley <email@hidden> wrote:.

CFStringUppercase for the character code 223 (0xDF) - which looks like a version of beta - returns 83 which is the character
code for upper case S. The upper case result is only 1 "character" long.

FWIW, works for me:

CFStringRef str = CFStringCreateWithCString(0, "\xc3\x9f", kCFStringEncodingUTF8);
CFMutableStringRef str2 = CFStringCreateMutableCopy(0, 0, str);
CFStringUppercase(str2, 0);
CFIndex len = CFStringGetLength(str2);
CFShow(str2);


  Here, len == 2 and "SS" is printed to the console. I'm running 10.3.7.

- WBR, Alexey Proskuryakov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >CFStringUppercase ? (From: Alice Hartley <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.