Add method +[NSLocale localeWithLocaleIdentifier:], which was

introduced in OS X 10.6.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39516 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2016-03-10 08:48:40 +00:00
parent 0c0cc7aedc
commit afc8ff1c47
3 changed files with 17 additions and 0 deletions

View file

@ -588,6 +588,11 @@ static NSRecursiveLock *classLock = nil;
return AUTORELEASE(result);
}
+ (id) localeWithLocaleIdentifier:(NSString *)string
{
return AUTORELEASE([[NSLocale alloc] initWithLocaleIdentifier: string]);
}
+ (NSString *) localeIdentifierFromComponents: (NSDictionary *) dict
{
NSString *result;