code: @Deprecated
      public static String getRangeFormat(ULocale forLocale, FormatWidth width) {
          // TODO fix Hack for French
          if (forLocale.getLanguage().equals("fr")) {
              return getRangeFormat(ULocale.ROOT, width);
          }
          String result = localeIdToRangeFormat.get(forLocale);
          if (result == null) {
              ICUResourceBundle rb = (ICUResourceBundle)UResourceBundle.
                      getBundleInstance(ICUData.ICU_BASE_NAME, forLocale);
              ULocale realLocale = rb.getULocale();
              if (!forLocale.equals(realLocale)) { // if the child would inherit, then add a cache entry for it.
                  result = localeIdToRangeFormat.get(forLocale);
                  if (result != null) {
                      localeIdToRangeFormat.put(forLocale, result);
                      return result;
                  }
              }
              // At this point, both the forLocale and the realLocale don't have an item
              // So we have to make one.
              NumberingSystem ns = NumberingSystem.getInstance(forLocale);
  
              String resultString = null;
              try {
                  resultString = rb.getStringWithFallback("NumberElements/" + ns.getName() + "/miscPatterns/range");
              } catch ( MissingResourceException ex ) {
                  resultString = rb.getStringWithFallback("NumberElements/latn/patterns/range");
              }
              result = SimpleFormatterImpl.compileToStringMinMaxArguments(
                      resultString, new StringBuilder(), 2, 2);
              localeIdToRangeFormat.put(forLocale, result);
              if (!forLocale.equals(realLocale)) {
                  localeIdToRangeFormat.put(realLocale, result);
              }
          }
          return result;
      }
docs: Return a formatter (compiled SimpleFormatter pattern) for a range, such as "{0}–{1}".
  @param forLocale locale to get the format for
  @param width the format width
  @return range formatter, such as "{0}–{1}"
  @deprecated This API is ICU internal only.
  @hide original deprecated declaration
  @hide draft / provisional / internal are hidden on Android