code: private static final int getCaseLocale(String language) {
          // Check the subtag length to reduce the number of comparisons
          // for locales without special behavior.
          // Fastpath for English "en" which is often used for default (=root locale) case mappings,
          // and for Chinese "zh": Very common but no special case mapping behavior.
          if(language.length()==2) {
              if(language.equals("en") || language.charAt(0)>'t') {
                  return LOC_ROOT;
              } else if(language.equals("tr") || language.equals("az")) {
                  return LOC_TURKISH;
              } else if(language.equals("el")) {
                  return LOC_GREEK;
              } else if(language.equals("lt")) {
                  return LOC_LITHUANIAN;
              } else if(language.equals("nl")) {
                  return LOC_DUTCH;
              }
          } else if(language.length()==3) {
              if(language.equals("tur") || language.equals("aze")) {
                  return LOC_TURKISH;
              } else if(language.equals("ell")) {
                  return LOC_GREEK;
              } else if(language.equals("lit")) {
                  return LOC_LITHUANIAN;
              } else if(language.equals("nld")) {
                  return LOC_DUTCH;
              }
          }
          return LOC_ROOT;
      }
docs: Accepts both 2- and 3-letter language subtags.