ifish/Ifish/controllers/IfishTabControllers/消息/IfishIMFiles/Sessions/Util/Spelling/NTESSpellingCenter.h

27 lines
780 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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