mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
light tidying
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39568 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bc2927bd2d
commit
1ee226b495
2 changed files with 37 additions and 32 deletions
|
@ -853,11 +853,12 @@ static NSRecursiveLock *classLock = nil;
|
|||
return _localeId;
|
||||
}
|
||||
|
||||
- (BOOL) isEqual: (id) obj
|
||||
- (BOOL) isEqual: (id)obj
|
||||
{
|
||||
if ([obj isKindOfClass: [self class]])
|
||||
return [_localeId isEqual: [obj localeIdentifier]];
|
||||
|
||||
{
|
||||
return [_localeId isEqual: [obj localeIdentifier]];
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
@ -1050,28 +1051,26 @@ static NSRecursiveLock *classLock = nil;
|
|||
|
||||
- (NSString *) _getDecimalSeparator
|
||||
{
|
||||
NSNumberFormatter *nFor;
|
||||
NSString *result;
|
||||
NSNumberFormatter *nFor;
|
||||
NSString *result;
|
||||
|
||||
nFor = [[NSNumberFormatter alloc] init];
|
||||
[nFor setLocale: self];
|
||||
[nFor setNumberStyle: NSNumberFormatterDecimalStyle];
|
||||
result = [nFor decimalSeparator];
|
||||
|
||||
RELEASE(nFor);
|
||||
return result;
|
||||
}
|
||||
|
||||
- (NSString *) _getGroupingSeparator
|
||||
{
|
||||
NSNumberFormatter *nFor;
|
||||
NSString *result;
|
||||
NSNumberFormatter *nFor;
|
||||
NSString *result;
|
||||
|
||||
nFor = [[NSNumberFormatter alloc] init];
|
||||
[nFor setLocale: self];
|
||||
[nFor setNumberStyle: NSNumberFormatterDecimalStyle];
|
||||
result = [nFor groupingSeparator];
|
||||
|
||||
RELEASE(nFor);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue