// // NTESSpellingCenter.h // NIM // 用于拼音全称和简称生成查询读取的类 // Created by amao on 13-1-21. // Copyright (c) 2013年 Netease. All rights reserved. // #import @interface NIMSpellingUnit : NSObject @property (nonatomic,strong) NSString *fullSpelling; @property (nonatomic,strong) NSString *shortSpelling; @end @interface NIMSpellingCenter : NSObject { NSMutableDictionary *_spellingCache; //全拼,简称cache NSString *_filepath; } + (NIMSpellingCenter *)sharedCenter; - (void)saveSpellingCache; //写入缓存 - (NIMSpellingUnit *)spellingForString: (NSString *)source; //全拼,简拼 (全是小写) - (NSString *)firstLetter: (NSString *)input; //首字母 @end