API  0.9.10
CPNumberFormatter.j File Reference

Go to the source code of this file.

Macros

#define SET_NEEDS_NUMBER_HANDLER_UPDATE()   _numberHandler = nil
 

Typedefs

typedef CPNumberFormatterStyle CPNumberFormatterNoStyle = 0
 
typedef CPNumberFormatterRoundingMode CPNumberFormatterRoundCeiling = CPRoundUp
 

Variables

var CPNumberFormatterCurrencyCodeKey = @"@"CPNumberFormatterCurrencyCodeKey"
 
 CPNumberFormatterCurrencyStyle = 2
 
var CPNumberFormatterCurrencySymbolKey = @"@"CPNumberFormatterCurrencySymbolKey"
 
 CPNumberFormatterDecimalStyle = 1
 
var CPNumberFormatterGeneratesDecimalNumbers = @"@"CPNumberFormatterGeneratesDecimalNumbers"
 
var CPNumberFormatterGroupingSeparatorKey = @"@"CPNumberFormatterGroupingSeparatorKey"
 
var CPNumberFormatterMaximumFractionDigitsKey = @"@"CPNumberFormatterMaximumFractionDigitsKey"
 
var CPNumberFormatterMaximumKey = @"@"CPNumberFormatterMaximumKey"
 
var CPNumberFormatterMinimumFractionDigitsKey = @"@"CPNumberFormatterMinimumFractionDigitsKey"
 
var CPNumberFormatterMinimumKey = @"@"CPNumberFormatterMinimumKey"
 
 CPNumberFormatterPercentStyle = 3
 
 CPNumberFormatterRoundDown = CPRoundDown
 
 CPNumberFormatterRoundFloor = CPRoundDown
 
 CPNumberFormatterRoundHalfDown = _CPRoundHalfDown
 
 CPNumberFormatterRoundHalfEven = CPRoundBankers
 
 CPNumberFormatterRoundHalfUp = CPRoundPlain
 
var CPNumberFormatterRoundingModeKey = @"@"CPNumberFormatterRoundingModeKey"
 
 CPNumberFormatterRoundUp = CPRoundUp
 
 CPNumberFormatterScientificStyle = 4
 
 CPNumberFormatterSpellOutStyle = 5
 
var CPNumberFormatterStyleKey = @"@"CPNumberFormatterStyleKey"
 
var NumberRegex = new RegExp('(-)?(\\d*)(\\.(\\d*))?')
 

Macro Definition Documentation

◆ SET_NEEDS_NUMBER_HANDLER_UPDATE

#define SET_NEEDS_NUMBER_HANDLER_UPDATE ( )    _numberHandler = nil

Definition at line 43 of file CPNumberFormatter.j.

Typedef Documentation

◆ CPNumberFormatterNoStyle

typedef CPNumberFormatterStyle CPNumberFormatterNoStyle = 0

Definition at line 25 of file CPNumberFormatter.j.

◆ CPNumberFormatterRoundCeiling

typedef CPNumberFormatterRoundingMode CPNumberFormatterRoundCeiling = CPRoundUp

Definition at line 33 of file CPNumberFormatter.j.

Variable Documentation

◆ CPNumberFormatterCurrencyCodeKey

var CPNumberFormatterCurrencyCodeKey = @"@"CPNumberFormatterCurrencyCodeKey"

Definition at line 294 of file CPNumberFormatter.j.

◆ CPNumberFormatterCurrencyStyle

CPNumberFormatterCurrencyStyle = 2

Definition at line 27 of file CPNumberFormatter.j.

◆ CPNumberFormatterCurrencySymbolKey

var CPNumberFormatterCurrencySymbolKey = @"@"CPNumberFormatterCurrencySymbolKey"

Definition at line 295 of file CPNumberFormatter.j.

◆ CPNumberFormatterDecimalStyle

CPNumberFormatterDecimalStyle = 1

Definition at line 26 of file CPNumberFormatter.j.

◆ CPNumberFormatterGeneratesDecimalNumbers

var CPNumberFormatterGeneratesDecimalNumbers = @"@"CPNumberFormatterGeneratesDecimalNumbers"

Definition at line 296 of file CPNumberFormatter.j.

◆ CPNumberFormatterGroupingSeparatorKey

var CPNumberFormatterGroupingSeparatorKey = @"@"CPNumberFormatterGroupingSeparatorKey"

Definition at line 293 of file CPNumberFormatter.j.

◆ CPNumberFormatterMaximumFractionDigitsKey

var CPNumberFormatterMaximumFractionDigitsKey = @"@"CPNumberFormatterMaximumFractionDigitsKey"

Definition at line 289 of file CPNumberFormatter.j.

◆ CPNumberFormatterMaximumKey

var CPNumberFormatterMaximumKey = @"@"CPNumberFormatterMaximumKey"

Definition at line 291 of file CPNumberFormatter.j.

◆ CPNumberFormatterMinimumFractionDigitsKey

var CPNumberFormatterMinimumFractionDigitsKey = @"@"CPNumberFormatterMinimumFractionDigitsKey"

Definition at line 288 of file CPNumberFormatter.j.

◆ CPNumberFormatterMinimumKey

var CPNumberFormatterMinimumKey = @"@"CPNumberFormatterMinimumKey"

Definition at line 290 of file CPNumberFormatter.j.

◆ CPNumberFormatterPercentStyle

CPNumberFormatterPercentStyle = 3

Definition at line 28 of file CPNumberFormatter.j.

◆ CPNumberFormatterRoundDown

CPNumberFormatterRoundDown = CPRoundDown

Definition at line 35 of file CPNumberFormatter.j.

◆ CPNumberFormatterRoundFloor

CPNumberFormatterRoundFloor = CPRoundDown

Definition at line 34 of file CPNumberFormatter.j.

◆ CPNumberFormatterRoundHalfDown

CPNumberFormatterRoundHalfDown = _CPRoundHalfDown

Definition at line 38 of file CPNumberFormatter.j.

◆ CPNumberFormatterRoundHalfEven

CPNumberFormatterRoundHalfEven = CPRoundBankers

Definition at line 37 of file CPNumberFormatter.j.

◆ CPNumberFormatterRoundHalfUp

CPNumberFormatterRoundHalfUp = CPRoundPlain

Definition at line 39 of file CPNumberFormatter.j.

◆ CPNumberFormatterRoundingModeKey

var CPNumberFormatterRoundingModeKey = @"@"CPNumberFormatterRoundingModeKey"

Definition at line 292 of file CPNumberFormatter.j.

◆ CPNumberFormatterRoundUp

CPNumberFormatterRoundUp = CPRoundUp

Definition at line 36 of file CPNumberFormatter.j.

◆ CPNumberFormatterScientificStyle

CPNumberFormatterScientificStyle = 4

Definition at line 29 of file CPNumberFormatter.j.

◆ CPNumberFormatterSpellOutStyle

CPNumberFormatterSpellOutStyle = 5

Definition at line 30 of file CPNumberFormatter.j.

◆ CPNumberFormatterStyleKey

var CPNumberFormatterStyleKey = @"@"CPNumberFormatterStyleKey"

Definition at line 287 of file CPNumberFormatter.j.

◆ NumberRegex

var NumberRegex = new RegExp('(-)?(\\d*)(\\.(\\d*))?')

Definition at line 41 of file CPNumberFormatter.j.