static String getOptions(int flags) { StringBuilder b = new StringBuilder(); appendOption(b, flags, Pattern.CANON_EQ, "CANON_EQ"); appendOption(b, flags, Pattern.CASE_INSENSITIVE, "CASE_INSENSITIVE"); appendOption(b, flags, Pattern.COMMENTS, "COMMENTS"); appendOption(b, flags, Pattern.DOTALL, "DOTALL"); appendOption(b, flags, Pattern.LITERAL, "LITERAL"); appendOption(b, flags, Pattern.MULTILINE, "MULTILINE"); appendOption(b, flags, Pattern.UNICODE_CASE, "UNICODE_CASE"); appendOption(b, flags, Pattern.UNIX_LINES, "UNIX_LINES"); return b.toString(); } }
static String getOptions(int flags) { StringBuilder b = new StringBuilder(); appendOption(b, flags, Pattern.CANON_EQ, "CANON_EQ"); appendOption(b, flags, Pattern.CASE_INSENSITIVE, "CASE_INSENSITIVE"); appendOption(b, flags, Pattern.COMMENTS, "COMMENTS"); appendOption(b, flags, Pattern.DOTALL, "DOTALL"); appendOption(b, flags, Pattern.LITERAL, "LITERAL"); appendOption(b, flags, Pattern.MULTILINE, "MULTILINE"); appendOption(b, flags, Pattern.UNICODE_CASE, "UNICODE_CASE"); appendOption(b, flags, Pattern.UNIX_LINES, "UNIX_LINES"); return b.toString(); } }