Return to Snippet

Revision: 44542
at April 13, 2011 22:38 by rabc


Initial Code
-(NSString*)stringWithoutAccentsFromString:(NSString*)s
{
    if (!s) return nil;
    NSMutableString *result = [NSMutableString stringWithString:s];
    CFStringFold((CFMutableStringRef)result, kCFCompareDiacriticInsensitive, NULL);
    return result;
}

Initial URL

                                

Initial Description

                                

Initial Title
Remove accent from string

Initial Tags

                                

Initial Language
Objective C