FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSNumberFormatter.h
Go to the documentation of this file.
1 //
2 // NSNumberFormatter.h
3 // FoundationExtension
4 //
5 // Created by Jeong YunWon on 10. 11. 1..
6 // Copyright 2010 youknowone.org All rights reserved.
7 //
8 
15 #import <Foundation/Foundation.h>
16 
21 
25 + (NSNumberFormatter *)formatter;
26 
34 - (instancetype)initWithNumberStyle:(NSNumberFormatterStyle)style;
39 + (NSNumberFormatter *)formatterWithNumberStyle:(NSNumberFormatterStyle)style;
40 
46 + (NSString *)formattedStringByDecimalStyleForNumber:(NSNumber *)number;
51 + (NSString *)formattedStringByDecimalStyleForInteger:(NSInteger)integer;
52 
55 @property(assign) NSNumberFormatterStyle numberStyle;
58 @property(assign) BOOL generatesDecimalNumbers;
60 @property(assign) NSLocale *locale;
61 
62 @end
NSNumberFormatterStyle numberStyle
Property shortcut for old compilers.
Definition: NSNumberFormatter.h:56
BOOL generatesDecimalNumbers
Property shortcut for old compilers.
Definition: NSNumberFormatter.h:58
NSNumberFormatter * formatter()
Creates and returns default formatter.
NSLocale * locale
Property shortcut for old compilers.
Definition: NSNumberFormatter.h:60
Common shortcuts.
Definition: NSNumberFormatter.h:20