static BidiGlobalDir getBidiGlobalDir(String localeString) {
    boolean isRtl;
    try {
      isRtl =
          localeString != null
              && (BidiUtils.isRtlLanguage(localeString)
                  || FAKE_RTL_LOCALES_PATTERN.matcher(localeString).matches());
    } catch (IllegalArgumentException localeException) {
      isRtl = false;
    }
    return BidiGlobalDir.forStaticIsRtl(isRtl);
  }
static BidiGlobalDir getBidiGlobalDir ( String localeString ) { boolean isRtl ; try { isRtl = localeString != null && ( BidiUtils . isRtlLanguage ( localeString ) || FAKE_RTL_LOCALES_PATTERN . matcher ( localeString ) . matches ( ) ) ; } catch ( IllegalArgumentException localeException ) { isRtl = false ; } return BidiGlobalDir . forStaticIsRtl ( isRtl ) ; }
Gets the bidi global directionality from a language/locale string (ltr=1, rtl=-1).

@param localeString The language/locale string for which to get the bidi global directionality.
@return 1 if the language/locale is left-to-right or unknown, and -1 if it's right-to-left.