a:14:{s:9:"#provides";s:13:"dojo.currency";s:9:"#resource";s:11:"currency.js";s:9:"#requires";a:3:{i:0;a:2:{i:0;s:6:"common";i:1;s:11:"dojo.number";}i:1;a:2:{i:0;s:6:"common";i:1;s:9:"dojo.i18n";}i:2;a:2:{i:0;s:6:"common";i:1;s:18:"dojo.cldr.monetary";}}s:28:"dojo.currency.__ParseOptions";a:5:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:26:"dojo.number.__ParseOptions";}s:4:"call";a:1:{i:0;s:26:"dojo.number.__ParseOptions";}}s:7:"private";b:1;s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:33:"dojo.currency.__ParseOptions.type";a:4:{s:9:"prototype";s:28:"dojo.currency.__ParseOptions";s:4:"type";s:6:"String";s:7:"summary";s:25:"currency, set by default.";s:14:"private_parent";b:1;}s:35:"dojo.currency.__ParseOptions.symbol";a:4:{s:9:"prototype";s:28:"dojo.currency.__ParseOptions";s:4:"type";s:6:"String";s:7:"summary";s:176:"override currency symbol. Normally, will be looked up in table of supported currencies, and ISO currency code will be used if not found. See dojo.i18n.cldr.nls->currency.js";s:14:"private_parent";b:1;}s:35:"dojo.currency.__ParseOptions.places";a:4:{s:9:"prototype";s:28:"dojo.currency.__ParseOptions";s:4:"type";s:6:"Number";s:7:"summary";s:68:"number of decimal places to accept. Default is defined by currency.";s:14:"private_parent";b:1;}s:39:"dojo.currency.__ParseOptions.fractional";a:4:{s:9:"prototype";s:28:"dojo.currency.__ParseOptions";s:4:"type";s:14:"Boolean?|Array";s:7:"summary";s:176:"where places are implied by pattern or explicit 'places' parameter, whether to include the fractional portion. By default for currencies, it the fractional portion is optional.";s:14:"private_parent";b:1;}s:13:"dojo.currency";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:56:"localized formatting and parsing routines for currencies";}s:28:"dojo.currency._mixInDefaults";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"options";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:558:" options = options || {}; options.type = "currency"; // Get locale-depenent currency data, like the symbol var bundle = dojo.i18n.getLocalization("dojo.cldr", "currency", options.locale) || {}; // Mixin locale-independent currency data, like # of places var iso = options.currency; var data = dojo.cldr.monetary.getData(iso); dojo.forEach(["displayName","symbol","group","decimal"], function(prop){ data[prop] = bundle[iso+"_"+prop]; }); data.fractional = [true, false]; // Mixin with provided options return dojo.mixin(data, options);";s:7:"private";b:1;s:7:"summary";s:0:"";}s:20:"dojo.currency.format";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"value";a:2:{s:4:"type";s:6:"Number";s:7:"summary";s:27:"the number to be formatted.";}s:7:"options";a:2:{s:8:"optional";b:1;s:4:"type";s:27:"dojo.number.__FormatOptions";}}s:6:"source";s:73:" return dojo.number.format(value, dojo.currency._mixInDefaults(options));";s:7:"summary";s:61:"Format a Number as a currency, using locale-specific settings";s:11:"description";s:268:"Create a string from a Number using a known, localized pattern. [Formatting patterns](http://www.unicode.org/reports/tr35/#Number_Elements) appropriate to the locale are chosen from the [CLDR](http://unicode.org/cldr) as well as the appropriate symbols and delimiters.";}s:20:"dojo.currency.regexp";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"options";a:2:{s:8:"optional";b:1;s:4:"type";s:27:"dojo.number.__RegexpOptions";}}s:6:"source";s:76:" return dojo.number.regexp(dojo.currency._mixInDefaults(options)); // String";s:7:"summary";s:51:"Builds the regular needed to parse a currency value";s:11:"description";s:196:"Returns regular expression with positive and negative match, group and decimal separators Note: the options.places default, the number of decimal places to accept, is defined by the currency type.";s:7:"returns";s:6:"String";}s:19:"dojo.currency.parse";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:10:"expression";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:35:"A string representation of a Number";}s:7:"options";a:2:{s:8:"optional";b:1;s:4:"type";s:28:"dojo.currency.__ParseOptions";}}s:6:"source";s:77:" return dojo.number.parse(expression, dojo.currency._mixInDefaults(options));";s:7:"summary";s:99:"Convert a properly formatted currency string to a primitive Number, using locale-specific settings.";s:11:"description";s:184:"Create a Number from a string using a known, localized pattern. [Formatting patterns](http://www.unicode.org/reports/tr35/#Number_Format_Patterns) are chosen appropriate to the locale.";}s:4:"dojo";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}