mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
GPLv2 from GPLv3... remove copying file for GPLv3. Added methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26821 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0016ac9cf8
commit
e8da2462c7
4 changed files with 33 additions and 675 deletions
|
@ -783,4 +783,20 @@
|
|||
return [NSString stringWithCharacters: &_thousandSeparator length: 1];
|
||||
}
|
||||
|
||||
- (NSString *) stringFromNumber: (NSNumber *)number
|
||||
{
|
||||
return [self stringForObjectValue: number];
|
||||
}
|
||||
|
||||
- (NSNumber *) numberFromString: (NSString *)string
|
||||
{
|
||||
id number = nil;
|
||||
NSString *error;
|
||||
|
||||
[self getObjectValue: &number
|
||||
forString: string
|
||||
errorDescription: &error];
|
||||
|
||||
return number;
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue