mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Skeletons
This commit is contained in:
parent
d7b854a0d2
commit
d23af67ea7
2 changed files with 136 additions and 2 deletions
|
@ -78,10 +78,13 @@ typedef NSUInteger NSDateComponentsFormatterZeroFormattingBehavior;
|
|||
NSCalendar *_calendar;
|
||||
NSDate *_referenceDate;
|
||||
BOOL _allowsFractionalUnits;
|
||||
BOOL _maximumUnitCount;
|
||||
BOOL _collapsesLargestUnit;
|
||||
BOOL _includesAppoximatePhrase;
|
||||
BOOL _includesApproximationPhrase;
|
||||
NSFormattingContext _formattingContext;
|
||||
NSInteger _maximumUnitCount;
|
||||
NSDateComponentsFormatterZeroFormattingBehavior _zeroFormattingBehavior;
|
||||
NSCalendarUnit _allowedUnits;
|
||||
NSDateComponentsFormatterUnitsStyle _unitsStyle;
|
||||
}
|
||||
|
||||
- (NSString *) stringForObjectValue: (id)obj;
|
||||
|
|
|
@ -25,6 +25,137 @@
|
|||
#include <Foundation/NSDateComponentsFormatter.h>
|
||||
|
||||
@implementation NSDateComponentsFormatter
|
||||
|
||||
- (NSString *) stringForObjectValue: (id)obj
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *) stringFromDateComponents: (NSDateComponents *)components
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *) stringFromDate: (NSDate *)startDate toDate:(NSDate *)endDate
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *) stringFromTimeInterval: (NSTimeInterval)ti
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSDateComponentsFormatterUnitsStyle) unitsStyle
|
||||
{
|
||||
return _unitsStyle;
|
||||
}
|
||||
|
||||
- (void) setUnitsStyle: (NSDateComponentsFormatterUnitsStyle)style
|
||||
{
|
||||
_unitsStyle = style;
|
||||
}
|
||||
|
||||
- (NSCalendarUnit) allowedUnits
|
||||
{
|
||||
return _allowedUnits;
|
||||
}
|
||||
|
||||
- (void) setAllowedUnits: (NSCalendarUnit)units
|
||||
{
|
||||
_allowedUnits = units;
|
||||
}
|
||||
|
||||
- (NSDateComponentsFormatterZeroFormattingBehavior) zeroFormattingBehavior
|
||||
{
|
||||
return _zeroFormattingBehavior;
|
||||
}
|
||||
|
||||
- (void) setZeroFormattingBehavior: (NSDateComponentsFormatterZeroFormattingBehavior)behavior;
|
||||
{
|
||||
_zeroFormattingBehavior = behavior;
|
||||
}
|
||||
|
||||
- (NSCalendar *) calendar
|
||||
{
|
||||
return _calendar;
|
||||
}
|
||||
|
||||
- (void) setCalender: (NSCalendar *)calendar
|
||||
{
|
||||
ASSIGNCOPY(_calendar, calendar);
|
||||
}
|
||||
|
||||
- (NSDate *) referenceDate
|
||||
{
|
||||
return _referenceDate;
|
||||
}
|
||||
|
||||
- (void) setReferenceDate: (NSDate *)referenceDate
|
||||
{
|
||||
ASSIGNCOPY(_referenceDate, referenceDate);
|
||||
}
|
||||
|
||||
- (BOOL) allowsFractionalUnits
|
||||
{
|
||||
return _allowsFractionalUnits;
|
||||
}
|
||||
|
||||
- (void) setAllowsFractionalUnits: (BOOL)allowsFractionalUnits
|
||||
{
|
||||
_allowsFractionalUnits = allowsFractionalUnits;
|
||||
}
|
||||
|
||||
- (NSInteger) maximumUnitCount
|
||||
{
|
||||
return _maximumUnitCount;
|
||||
}
|
||||
|
||||
- (void) setMaximumUnitCount: (NSInteger)maximumUnitCount
|
||||
{
|
||||
_maximumUnitCount = maximumUnitCount;
|
||||
}
|
||||
|
||||
- (BOOL) collapsesLargestUnit
|
||||
{
|
||||
return _collapsesLargestUnit;
|
||||
}
|
||||
|
||||
- (void) setCollapsesLargestUnit: (BOOL)collapsesLargestUnit
|
||||
{
|
||||
_collapsesLargestUnit = collapsesLargestUnit;
|
||||
}
|
||||
|
||||
- (BOOL) includesApproximationPhrase
|
||||
{
|
||||
return _includesApproximationPhrase;
|
||||
}
|
||||
|
||||
- (void) setIncludesApproximationPhrase: (BOOL)includesApproximationPhrase
|
||||
{
|
||||
_includesApproximationPhrase = includesApproximationPhrase;
|
||||
}
|
||||
|
||||
- (NSFormattingContext) formattingContext
|
||||
{
|
||||
return _formattingContext;
|
||||
}
|
||||
|
||||
- (void) setFormattingContext: (NSFormattingContext)formattingContext
|
||||
{
|
||||
_formattingContext = formattingContext;
|
||||
}
|
||||
|
||||
- (BOOL) getObjectValue: (id*)obj forString: (NSString *)string errorDescription: (NSString **)error
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
+ (NSString *) localizedStringFromDateComponents: (NSDateComponents *)components
|
||||
unitsStyle: (NSDateComponentsFormatterUnitsStyle)unitsStyle
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue