- (
NSString
*)phonetic:(
NSString
*)sourceString {
NSMutableString *source = [sourceString mutableCopy ];
CFStringTransform (( __bridge CFMutableStringRef )source, NULL , kCFStringTransformMandarinLatin , NO );
CFStringTransform (( __bridge CFMutableStringRef )source, NULL , kCFStringTransformStripDiacritics , NO );
return source;
}
NSMutableString *source = [sourceString mutableCopy ];
CFStringTransform (( __bridge CFMutableStringRef )source, NULL , kCFStringTransformMandarinLatin , NO );
CFStringTransform (( __bridge CFMutableStringRef )source, NULL , kCFStringTransformStripDiacritics , NO );
return source;
}