CFNUmberFormatter Reference

CFNumberFormatter can be used to format and parse CFStrings into numbers. More...

## Detailed Description

Unlike other Core Foundation types with similar names to Cocoa classes CFNumberFormatter is not "toll-free bridged" to NSNumberFormatter.

## Typedefs

typedef struct __CFNumberFormatter * | CFNumberFormatterRef
typedef CFOptionFlags | CFNumberFormatterOptionFlags
typedef CFIndex | CFNumberFormatterPadPosition

## Enumerations

enum | { kCFNumberFormatterParseIntegersOnly = 1 }
enum | { kCFNumberFormatterPadBeforePrefix = 0 , kCFNumberFormatterPadAfterPrefix = 1 , kCFNumberFormatterPadBeforeSuffix = 2 , kCFNumberFormatterPadAfterSuffix = 3 }
enum | CFNumberFormatterRoundingMode { kCFNumberFormatterRoundCeiling = 0 , kCFNumberFormatterRoundFloor = 1 , kCFNumberFormatterRoundDown = 2 , kCFNumberFormatterRoundUp = 3 , kCFNumberFormatterRoundHalfEven = 4 , kCFNumberFormatterRoundHalfDown = 5 , kCFNumberFormatterRoundHalfUp = 6 }
enum | CFNumberFormatterStyle { kCFNumberFormatterNoStyle = 0 , kCFNumberFormatterDecimalStyle = 1 , kCFNumberFormatterCurrencyStyle = 2 , kCFNumberFormatterPercentStyle = 3 , kCFNumberFormatterScientificStyle = 4 , kCFNumberFormatterSpellOutStyle = 5 }

## Functions

CFNumberFormatterRef | CFNumberFormatterCreate (CFAllocatorRef allocator, CFLocaleRef locale, CFNumberFormatterStyle style)
void | CFNumberFormatterSetFormat (CFNumberFormatterRef formatter, CFStringRef formatString)
void | CFNumberFormatterSetProperty (CFNumberFormatterRef formatter, CFStringRef key, CFTypeRef value)
CFNumberRef | CFNumberFormatterCreateNumberFromString (CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFStringRef string, CFRange *rangep, CFOptionFlags options)
CFStringRef | CFNumberFormatterCreateStringWithNumber (CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFNumberRef number)
CFStringRef | CFNumberFormatterCreateStringWithValue (CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFNumberType numberType, const void *valuePtr)
Boolean | CFNumberFormatterGetDecimalInfoForCurrencyCode (CFStringRef currencyCode, SInt32 *defaultFractionDigits, double *roundingIncrement)
Boolean | CFNumberFormatterGetValueFromString (CFNumberFormatterRef formatter, CFStringRef string, CFRange *rangep, CFNumberType numberType, void *valuePtr)
CFTypeRef | CFNumberFormatterCopyProperty (CFNumberFormatterRef formatter, CFStringRef key)
CFStringRef | CFNumberFormatterGetFormat (CFNumberFormatterRef formatter)
CFLocaleRef | CFNumberFormatterGetLocale (CFNumberFormatterRef formatter)
CFNumberFormatterStyle | CFNumberFormatterGetStyle (CFNumberFormatterRef formatter)
CFTypeID | CFNumberFormatterGetTypeID (void)

## Variables

const CFStringRef | kCFNumberFormatterCurrencyCode
const CFStringRef | kCFNumberFormatterDecimalSeparator
const CFStringRef | kCFNumberFormatterCurrencyDecimalSeparator
const CFStringRef | kCFNumberFormatterAlwaysShowDecimalSeparator
const CFStringRef | kCFNumberFormatterGroupingSeparator
const CFStringRef | kCFNumberFormatterUseGroupingSeparator
const CFStringRef | kCFNumberFormatterPercentSymbol
const CFStringRef | kCFNumberFormatterZeroSymbol
const CFStringRef | kCFNumberFormatterNaNSymbol
const CFStringRef | kCFNumberFormatterInfinitySymbol
const CFStringRef | kCFNumberFormatterMinusSign
const CFStringRef | kCFNumberFormatterPlusSign
const CFStringRef | kCFNumberFormatterCurrencySymbol
const CFStringRef | kCFNumberFormatterExponentSymbol
const CFStringRef | kCFNumberFormatterMinIntegerDigits
const CFStringRef | kCFNumberFormatterMaxIntegerDigits
const CFStringRef | kCFNumberFormatterMinFractionDigits
const CFStringRef | kCFNumberFormatterMaxFractionDigits
const CFStringRef | kCFNumberFormatterGroupingSize
const CFStringRef | kCFNumberFormatterSecondaryGroupingSize
const CFStringRef | kCFNumberFormatterRoundingMode
const CFStringRef | kCFNumberFormatterRoundingIncrement
const CFStringRef | kCFNumberFormatterFormatWidth
const CFStringRef | kCFNumberFormatterPaddingPosition
const CFStringRef | kCFNumberFormatterPaddingCharacter
const CFStringRef | kCFNumberFormatterDefaultFormat
const CFStringRef | kCFNumberFormatterMultiplier
const CFStringRef | kCFNumberFormatterPositivePrefix
const CFStringRef | kCFNumberFormatterPositiveSuffix
const CFStringRef | kCFNumberFormatterNegativePrefix
const CFStringRef | kCFNumberFormatterNegativeSuffix
const CFStringRef | kCFNumberFormatterPerMillSymbol
const CFStringRef | kCFNumberFormatterInternationalCurrencySymbol
const CFStringRef | kCFNumberFormatterCurrencyGroupingSeparator
const CFStringRef | kCFNumberFormatterIsLenient
const CFStringRef | kCFNumberFormatterUseSignificantDigits
const CFStringRef | kCFNumberFormatterMinSignificantDigits
const CFStringRef | kCFNumberFormatterMaxSignificantDigits