mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
use 10.0 behavior if we have no ICU
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32260 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8e1fcfe9d5
commit
f756c612ca
3 changed files with 63 additions and 17 deletions
|
@ -83,7 +83,7 @@ typedef NSUInteger NSNumberFormatterRoundingMode;
|
|||
#endif
|
||||
|
||||
/**
|
||||
* <p><em><strong>This class is currently not implemented in GNUstep! All set
|
||||
* <p><em><strong>This class is currently not fully implemented! All set
|
||||
* methods will work, but stringForObject: will ignore the format completely.
|
||||
* The documentation below describes what the behavior SHOULD
|
||||
* be...</strong></em></p>
|
||||
|
@ -153,7 +153,6 @@ GS_NSNumberFormatter_IVARS;
|
|||
#endif
|
||||
}
|
||||
|
||||
// Format
|
||||
/**
|
||||
* Returns the format string this instance was initialized with.
|
||||
*/
|
||||
|
@ -358,10 +357,31 @@ GS_NSNumberFormatter_IVARS;
|
|||
- (void) setMinimum: (NSDecimalNumber*)aMinimum;
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST)
|
||||
/** Sets the behavior of the formatter.<br />
|
||||
* NB. If GNUstep has been built without the ICU library,
|
||||
* NSNumberFormatterBehavior10_0 is currently used irrespective of
|
||||
* this setting.
|
||||
*/
|
||||
- (void) setFormatterBehavior: (NSNumberFormatterBehavior) behavior;
|
||||
|
||||
/** Returns the behavior of the receiver, either the default behavior
|
||||
* set for number formatters, or the behavior specified by an earlier
|
||||
* call to the -setFormatterBehavior: method.
|
||||
*/
|
||||
- (NSNumberFormatterBehavior) formatterBehavior;
|
||||
|
||||
/** Sets the default behavior of number formatters.<br />
|
||||
* NB. If GNUstep has been built without the ICU library,
|
||||
* NSNumberFormatterBehavior10_0 is currently used irrespective of
|
||||
* this setting.
|
||||
*/
|
||||
+ (void) setDefaultFormatterBehavior: (NSNumberFormatterBehavior) behavior;
|
||||
|
||||
/** Returns the formatter behavior previously set as the default
|
||||
* using the +setDefaultFormatterBehavior: method.
|
||||
*/
|
||||
+ (NSNumberFormatterBehavior) defaultFormatterBehavior;
|
||||
|
||||
- (void) setNumberStyle: (NSNumberFormatterStyle) style;
|
||||
- (NSNumberFormatterStyle) numberStyle;
|
||||
- (void) setGeneratesDecimalNumbers: (BOOL) flag;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue