-
Notifications
You must be signed in to change notification settings - Fork 2
/
CharacterEncoding.h
61 lines (41 loc) · 1.14 KB
/
CharacterEncoding.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
// CharacterEncoding.h
// iMusicTags
//
// Created by Kevin Chen on 10-8-24.
// Copyright 2010 KevinChen's workstation. All rights reserved.
//
#import <Cocoa/Cocoa.h>
enum E_CharacterCatalog {
C_CATALOG_CHOOSE = 0,
C_SIMPLIFIED_CHINESE = 1,
C_TRADITIONAL_CHINESE = 2,
C_LAST_ONE = 0xFF
};
@interface CharacterEncoding : NSObject {
NSString *description;
NSInteger encodingType;
NSInteger encodingCode;
}
@property NSInteger encodingType;
@property NSInteger encodingCode;
@property(readwrite, copy) NSString *description;
- (id)initWithEncoding:(CFStringEncoding)anEncodingCode desciption:(NSString *)aDescription type:(NSInteger)aType;
@end
@interface CharacterCatalog : NSObject
{
NSString *description;
NSInteger catalogType;
}
@property NSInteger catalogType;
@property(readwrite, copy)NSString *description;
- (id)initWithValue:(NSInteger)aValue description:(NSString *)aDescription;
+ (NSArray *)catalogs;
@end
@interface CharacterEncodingUtil : NSObject
- (NSArray *)encodings:(NSInteger)catalogType;
@end
@interface CharacterEncodingUtil (Private)
- (NSArray *)simplifiedChinese;
- (NSArray *)traditionalChinese;
@end