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
NSMutableString *ms = [[NSMutableString alloc] initWithString:@"我是中国人"]; | |
if (CFStringTransform((__bridge CFMutableStringRef)ms, 0, kCFStringTransformMandarinLatin, NO)) { | |
NSLog(@"Pingying: %@", ms); // wǒ shì zhōng guó rén | |
} | |
if (CFStringTransform((__bridge CFMutableStringRef)ms, 0, kCFStringTransformStripDiacritics, NO)) { | |
NSLog(@"Pingying: %@", ms); // wo shi zhong guo ren | |
} |
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
// | |
// NSNull+LCFMessageForwarding.h | |
// NSNull | |
// | |
// Created by leichunfeng on 15/12/22. | |
// Copyright © 2015年 leichunfeng. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
NewerOlder