code: public static boolean resemblesPattern(String pattern, int pos) {
          return ((pos+1) < pattern.length() &&
                  pattern.charAt(pos) == '[') ||
                  resemblesPropertyPattern(pattern, pos);
      }
docs: Return true if the given position, in the given pattern, appears
  to be the start of a UnicodeSet pattern.
  @hide unsupported on Android