TA的每日心情 | 汗 2024-10-15 10:05 |
---|
签到天数: 372 天 [LV.9]以坛为家II
|
本帖最后由 Sian 于 2014-8-20 14:55 编辑
- 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
- }
复制代码 |
|