This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *s = @"L'asso du jour est g\\U00e9niale"; | |
NSMutableString *result = [NSMutableString string]; | |
NSScanner *scanner = [NSScanner scannerWithString:s]; | |
[scanner setCharactersToBeSkipped:nil]; | |
while (![scanner isAtEnd]) { | |
NSString *chunk; | |
[scanner scanUpToString:@"\\U" intoString:&chunk]; |