ESHalfYearLocalizerPOD Class Reference
Inherits from | NSObject |
Conforms to | ESHalfYearLocalizer |
Declared in | ESHalfYearLocalizerPOD.h ESHalfYearLocalizerPOD.m |
Properties
formatForFirstHalfYear
A value passed in the constructor.
@property (nonatomic, readonly) NSString *formatForFirstHalfYear
Discussion
First half year format string. For example,
- @“%@ 年 上半期”
- @“H1 ‘%@”
Declared In
ESHalfYearLocalizerPOD.h
formatForSecondHalfYear
A value passed in the constructor.
@property (nonatomic, readonly) NSString *formatForSecondHalfYear
Discussion
Second half year format string. For example,
- @“%@ 年 下半期”
- @“H2 ‘%@”
Declared In
ESHalfYearLocalizerPOD.h
shouldTruncateYear
A boolean representation of the [ESHalfYearLocalizerPOD yearTruncationMode]. Throws an exception for the invalid format.
@property (nonatomic, readonly) BOOL shouldTruncateYear
Declared In
ESHalfYearLocalizerPOD.h
Class Methods
Instance Methods
init
Unsupported initializer. Throws an exception.
- (instancetype)init
Return Value
nil if asserts are disabled.
Declared In
ESHalfYearLocalizerPOD.h
initWithFirstHalfFormat:secondHalfFormat:yearTruncationMode:
First half year format string. For example,
- (instancetype)initWithFirstHalfFormat:(NSString *)firstHalfFormat secondHalfFormat:(NSString *)secondHalfFormat yearTruncationMode:(NSString *)yearTruncationMode
Parameters
- firstHalfFormat
First half year format string. For example,
- @“%@ 年 上半期”
- @“H1 ‘%@”
- secondHalfFormat
Second half year format string. For example,
- @“%@ 年 下半期”
- @“H2 ‘%@”
- yearTruncationMode
An identifier from the SQL function. It chould be ‘short’ or ‘long’ Note : year mode is case insensitive
Return Value
A properly initialized ESHalfYearLocalizerPOD object.
Declared In
ESHalfYearLocalizerPOD.h