Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 3 | 0.955 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 265 | Closure/closure/goog/locale/formatting.js |
2 | 5 | 283 | Closure/closure/goog/locale/formatting.js |
| ||||
/** * To obtain a NumberFormat object that can be used for number format/parse. * @param {string} pattern number format pattern string. * @param {string=} opt_currencyCode optional international currency code, it * determines the currency code/symbol should be used in format/parse. If * not given, the currency code for current locale will be used. * @return {goog.locale.NumberFormat} A goog.locale.NumberFormat instance * for the given pattern and currency. * @deprecated Use goog.i18n.NumberFormat. */ goog.locale.getNumberFormatter= function (pattern, opt_currencyCode){ var formatter= new goog.locale.NumberFormat( ); formatter.applyPattern(pattern, opt_currencyCode); return formatter; } ; |
| ||||
/** * To obtain a NumberFormat object that can be used for number format/parse from * a predefined pattern type. * @param {number} patternType identifies a predefined number format pattern. * @param {string=} opt_currencyCode optional international currency code. It * determines the currency code/symbol used in format/parse. If not given, * the currency code for current locale will be used. * @return {goog.locale.NumberFormat} A goog.locale.NumberFormat instance for * the predefined pattern type and currency code. * @deprecated Use goog.i18n.NumberFormat. */ goog.locale.getStandardNumberFormatter= function (patternType, opt_currencyCode){ var formatter= new goog.locale.NumberFormat( ); formatter.applyStandardPattern(patternType, opt_currencyCode); return formatter; } ; |
| |||
/** * To obtain a NumberFormat object that can be used for number format/parse from * a predefined pattern type. * @param {number} patternType identifies a predefined number format pattern. * @param {string=} opt_currencyCode optional international currency code. It * determines the currency code/symbol used in format/parse. If not given, * the currency code for current locale will be used. * @return {goog.locale.NumberFormat} A goog.locale.NumberFormat instance for * the predefined pattern type and currency code. * @deprecated Use goog.i18n.NumberFormat. */ /** * To obtain a NumberFormat object that can be used for number format/parse. * @param {string} pattern number format pattern string. * @param {string=} opt_currencyCode optional international currency code, it * determines the currency code/symbol should be used in format/parse. If * not given, the currency code for current locale will be used. * @return {goog.locale.NumberFormat} A goog.locale.NumberFormat instance * for the given pattern and currency. * @deprecated Use goog.i18n.NumberFormat. */ goog.locale. [[#variable21117180]]= function ( [[#variable21117100]],opt_currencyCode) { var formatter=new goog.locale.NumberFormat( ); formatter. [[#variable21117080]]( [[#variable21117100]],opt_currencyCode); return formatter; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#21117180]] | getStandardNumberFormatter |
1 | 2 | [[#21117180]] | getNumberFormatter |
2 | 1 | [[#21117100]] | patternType |
2 | 2 | [[#21117100]] | pattern |
3 | 1 | [[#21117080]] | applyStandardPattern |
3 | 2 | [[#21117080]] | applyPattern |