Lines Matching refs:options

63  * <p>You can specify options to <a href="#RegularExpression(java.lang.String, java.lang.String)"><code>RegularExpression(</code><var>regex</var><code>, </code><var>options</var><code>)</code></a>
64 * or <a href="#setPattern(java.lang.String, java.lang.String)"><code>setPattern(</code><var>regex</var><code>, </code><var>options</var><code>)</code></a>.
65 * This <var>options</var> parameter consists of the following characters.
344 * <dt class="REGEX"><kbd>(?</kbd><var>options</var><kbd>:</kbd><var>X</var><kbd>)</kbd>
345 * <dt class="REGEX"><kbd>(?</kbd><var>options</var><kbd>-</kbd><var>options2</var><kbd>:</kbd><var>X</var><kbd>)</kbd>
347 * <dd>The <var>options</var> or the <var>options2</var> consists of 'i' 'm' 's' 'w'.
350 * <dt class="REGEX"><kbd>(?</kbd><var>options</var><kbd>)</kbd>
351 * <dt class="REGEX"><kbd>(?</kbd><var>options</var><kbd>-</kbd><var>options2</var><kbd>)</kbd>
432 * regex ::= ('(?' options ')')? term ('|' term)*
439 * | '(?>' regex ')' | '(?' options ':' regex ')'
441 * options ::= [imsw]* ('-' [imsw]+)?
730 if (RegularExpression.isSet(this.options, XMLSCHEMA_MODE)) {
731 int matchEnd = this. match(con, this.operations, con.start, 1, this.options);
786 if (isSet(this.options, SINGLE_LINE)) {
788 matchEnd = this. match(con, this.operations, con.start, 1, this.options);
798 matchStart, 1, this.options)))
822 matchStart, 1, this.options))) {
833 if (0 <= (matchEnd = this. match(con, this.operations, matchStart, 1, this.options)))
915 if (RegularExpression.isSet(this.options, XMLSCHEMA_MODE)) {
919 int matchEnd = this. match(con, this.operations, con.start, 1, this.options);
977 if (isSet(this.options, SINGLE_LINE)) {
979 matchEnd = this.match(con, this.operations, con.start, 1, this.options);
989 matchStart, 1, this.options)))
1013 matchStart, 1, this.options))) {
1024 if (0 <= (matchEnd = this.match(con, this.operations, matchStart, 1, this.options)))
1594 if (RegularExpression.isSet(this.options, XMLSCHEMA_MODE)) {
1595 int matchEnd = this.match(con, this.operations, con.start, 1, this.options);
1650 if (isSet(this.options, SINGLE_LINE)) {
1652 matchEnd = this.match(con, this.operations, con.start, 1, this.options);
1662 matchStart, 1, this.options)))
1686 matchStart, 1, this.options))) {
1697 if (0 <= (matchEnd = this. match(con, this.operations, matchStart, 1, this.options)))
1725 int options;
2098 Op anchor = Op.createAnchor(isSet(this.options, SINGLE_LINE) ? 'A' : '@');
2108 if (!isSet(this.options, PROHIBIT_HEAD_CHARACTER_OPTIMIZATION)
2109 && !isSet(this.options, XMLSCHEMA_MODE)) {
2111 int fresult = this.tokentree.analyzeFirstCharacter(firstChar, this.options);
2135 this.fixedStringOptions = this.options;
2138 } else if (!isSet(this.options, PROHIBIT_FIXED_STRING_OPTIMIZATION)
2139 && !isSet(this.options, XMLSCHEMA_MODE)) {
2141 this.tokentree.findFixedString(container, this.options);
2143 this.fixedStringOptions = container.options;
2233 private static final boolean isSet(int options, int flag) {
2234 return (options & flag) == flag;
2248 * Creates a new RegularExpression instance with options.
2251 * @param options A String consisted of "i" "m" "s" "u" "w" "," "X"
2254 public RegularExpression(String regex, String options) throws ParseException {
2255 this.setPattern(regex, options);
2259 * Creates a new RegularExpression instance with options.
2262 * @param options A String consisted of "i" "m" "s" "u" "w" "," "X"
2265 public RegularExpression(String regex, String options, Locale locale) throws ParseException {
2266 this.setPattern(regex, options, locale);
2269 RegularExpression(String regex, Token tok, int parens, boolean hasBackReferences, int options) {
2273 this.options = options;
2285 this.setPattern(newPattern, this.options, locale);
2288 private void setPattern(String newPattern, int options, Locale locale) throws ParseException {
2290 this.options = options;
2291 RegexParser rp = RegularExpression.isSet(this.options, RegularExpression.XMLSCHEMA_MODE)
2293 this.tokentree = rp.parse(this.regex, this.options);
2303 public void setPattern(String newPattern, String options) throws ParseException {
2304 this.setPattern(newPattern, options, Locale.getDefault());
2307 public void setPattern(String newPattern, String options, Locale locale) throws ParseException {
2308 this.setPattern(newPattern, REUtil.parseOptions(options), locale);
2322 return this.tokentree.toString(this.options);
2334 return REUtil.createOptionString(this.options);
2338 * Return true if patterns are the same and the options are equivalent.
2345 return this.regex.equals(r.regex) && this.options == r.options;
2348 boolean equals(String pattern, int options) {
2349 return this.regex.equals(pattern) && this.options == options;