mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-27 05:50:27 +00:00
25 lines
737 B
Objective-C
25 lines
737 B
Objective-C
#import <Foundation/NSObject.h>
|
|
|
|
@class NSArray, NSDictionary;
|
|
|
|
@interface NSOrthography : NSObject {
|
|
NSString *_dominantScript;
|
|
NSDictionary *_languageMap;
|
|
}
|
|
|
|
+ orthographyWithDominantScript: (NSString *) script
|
|
languageMap: (NSDictionary *) languageMap;
|
|
|
|
- initWithDominantScript: (NSString *) script
|
|
languageMap: (NSDictionary *) languageMap;
|
|
|
|
@property(readonly) NSDictionary *languageMap;
|
|
@property(readonly) NSArray *allLanguages;
|
|
@property(readonly) NSArray *allScripts;
|
|
@property(readonly) NSString *dominantLanguage;
|
|
@property(readonly) NSString *dominantScript;
|
|
|
|
- (NSString *) dominantLanguageForScript: (NSString *) script;
|
|
- (NSArray *) languagesForScript: (NSString *) script;
|
|
|
|
@end |