/** * Return true if the given position, in the given pattern, appears * to be the start of a UnicodeSet pattern. * @stable ICU 2.0 */ public static boolean resemblesPattern(String pattern, int pos) { return ((pos+1) < pattern.length() && pattern.charAt(pos) == '[') || resemblesPropertyPattern(pattern, pos); }
if (resemblesPropertyPattern(chars, opts)) { setMode = SETMODE2_PROPERTYPAT;