darling-cocotron/Foundation/NSOrthography.h
2020-05-12 17:04:15 -04:00

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