OSDN Git Service

move functions about manipulating unicode (and surrogate pair) to new class
[sawarabi-fonts/sawarabi-fonts.git] / chartool / objective-c / UnicharUtil.h
1 //
2 //  UnicharUtil.h
3 //  chartool
4 //
5 //  Created by mshio on 11/02/09.
6 //  Copyright 2011 mshio. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10
11
12 @interface UnicharUtil : NSObject {
13
14 }
15 + (UnicharUtil*) instance;
16 - (NSString*) getUnicharFromCharCode: (NSString*) code;
17 - (BOOL) characterIsHighSurrogate: (unichar) ch;
18 - (BOOL) characterIsLowSurrogate: (unichar) ch;
19 - (BOOL) characterIsHexCharacter: (unichar) ch;
20 - (NSString*) getCharCodeFromUnichar: (NSString*) ch;
21
22 @end