Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 3 | 0.978 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 316 | Closure/closure/goog/locale/locale.js |
2 | 9 | 359 | Closure/closure/goog/locale/locale.js |
| ||||
/** * Returns the localized country name for the provided language code in the * current or provided locale symbols set. * * This method depends on goog.locale.LocaleNameConstants__<locale> available * from //javascript/googledata/i18n/js_locale_data. User of this method * has to add dependency to this. * * @param {string} languageCode Language code to lookup the country name for. * @param {Object=} opt_localeSymbols If omitted the current locale symbol * set is used. * * @return {string} Localized country name. */ goog.locale.getLocalizedCountryName= function (languageCode, opt_localeSymbols){ if (!opt_localeSymbols) { opt_localeSymbols= goog.locale.getResource('LocaleNameConstants', goog.locale.getLocale( )); } var code= goog.locale.getRegionSubTag(languageCode); return code in opt_localeSymbols.COUNTRY ?opt_localeSymbols.COUNTRY[code] : languageCode; } ; |
| ||||
/** * Returns the localized language name for the provided language code in * the current or provided locale symbols set. * * This method depends on goog.locale.LocaleNameConstants__<locale> available * from //javascript/googledata/i18n/js_locale_data. User of this method * has to add dependency to this. * * @param {string} languageCode Language code to lookup the language name for. * @param {Object=} opt_localeSymbols locale symbol set if given. * * @return {string} Localized language name of the provided language code. */ goog.locale.getLocalizedLanguageName= function (languageCode, opt_localeSymbols){ if (!opt_localeSymbols) { opt_localeSymbols= goog.locale.getResource('LocaleNameConstants', goog.locale.getLocale( )); } var code= goog.locale.getLanguageSubTag(languageCode); return code in opt_localeSymbols.LANGUAGE ?opt_localeSymbols.LANGUAGE[code] : languageCode; } ; |
| |||
/** * Returns the localized language name for the provided language code in * the current or provided locale symbols set. * * This method depends on goog.locale.LocaleNameConstants__<locale> available * from //javascript/googledata/i18n/js_locale_data. User of this method * has to add dependency to this. * * @param {string} languageCode Language code to lookup the language name for. * @param {Object=} opt_localeSymbols locale symbol set if given. * * @return {string} Localized language name of the provided language code. */ /** * Returns the localized country name for the provided language code in the * current or provided locale symbols set. * * This method depends on goog.locale.LocaleNameConstants__<locale> available * from //javascript/googledata/i18n/js_locale_data. User of this method * has to add dependency to this. * * @param {string} languageCode Language code to lookup the country name for. * @param {Object=} opt_localeSymbols If omitted the current locale symbol * set is used. * * @return {string} Localized country name. */ goog.locale. [[#variable599f1480]]= function (languageCode,opt_localeSymbols) { if (!opt_localeSymbols) { opt_localeSymbols=goog.locale.getResource('LocaleNameConstants',goog.locale.getLocale( )); } var code=goog.locale. [[#variable599f1420]](languageCode); return code in opt_localeSymbols. [[#variable599f13c0]] ?opt_localeSymbols. [[#variable599f13c0]][code] :languageCode; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#599f1480]] | getLocalizedLanguageName |
1 | 2 | [[#599f1480]] | getLocalizedCountryName |
2 | 1 | [[#599f1420]] | getLanguageSubTag |
2 | 2 | [[#599f1420]] | getRegionSubTag |
3 | 1 | [[#599f13c0]] | LANGUAGE |
3 | 2 | [[#599f13c0]] | COUNTRY |