mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Correct names in test output. Add initial coding in formatter
This commit is contained in:
parent
e26b902801
commit
a8658d172f
3 changed files with 23 additions and 2 deletions
|
@ -48,6 +48,20 @@ GS_PRIVATE_INTERNAL(NSByteCountFormatter)
|
|||
|
||||
|
||||
@implementation NSByteCountFormatter
|
||||
|
||||
+ (NSString *)stringFromByteCount: (long long)byteCount
|
||||
countStyle: (NSByteCountFormatterCountStyle)countStyle
|
||||
{
|
||||
NSByteCountFormatter *formatter = [[NSByteCountFormatter alloc] init];
|
||||
[formatter setCountStyle: countStyle];
|
||||
return [formatter stringFromByteCount: byteCount];
|
||||
}
|
||||
|
||||
- (NSString *)stringFromByteCount: (long long)byteCount
|
||||
{
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (id) init
|
||||
{
|
||||
|
@ -59,6 +73,9 @@ GS_PRIVATE_INTERNAL(NSByteCountFormatter)
|
|||
|
||||
GS_CREATE_INTERNAL(NSByteCountFormatter);
|
||||
|
||||
internal->_countStyle = NSByteCountFormatterCountStyleFile;
|
||||
internal->_allowedUnits |= NSByteCountFormatterUseMB;
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue