MCPcopy Create free account
hub / github.com/mozilla/rhino / getLocale

Method getLocale

rhino/src/main/java/org/mozilla/javascript/Context.java:793–796  ·  view source on GitHub ↗

Get the current locale. Returns the default locale if none has been set. @see java.util.Locale

()

Source from the content-addressed store, hash-verified

791 * @see java.util.Locale
792 */
793 public final Locale getLocale() {
794 if (locale == null) locale = Locale.getDefault();
795 return locale;
796 }
797
798 /**
799 * Set the current locale.

Callers 6

getMessageMethod · 0.95
getMessageMethod · 0.95
js_localeCompareMethod · 0.80
js_toLocaleLowerCaseMethod · 0.80
js_toLocaleUpperCaseMethod · 0.80
js_toLocaleStringMethod · 0.80

Calls 1

getDefaultMethod · 0.80

Tested by

no test coverage detected