1 | protected int getCompilerOptions(int options) {↵ | | 1 | protected int getCompilerOptions(int options) {↵
|
2 | int cOptions = RE.MATCH_NORMAL↵ | | 2 | // be strict about line separator↵
|
3 | ;↵ | | 3 | int cOptions = Pattern.UNIX_LINES;↵
|
|
4 | if (RegexpUtil.hasFlag(options, MATCH_CASE_INSENSITIVE)) {↵ | | 4 | if (RegexpUtil.hasFlag(options, MATCH_CASE_INSENSITIVE)) {↵
|
5 | cOptions |= RE.MATCH_CASEINDEPENDENT;↵ | | 5 | cOptions |= Pattern.CASE_INSENSITIVE;↵
|
6 | }↵ | | 6 | }↵
|
7 | if (RegexpUtil.hasFlag(options, MATCH_MULTILINE)) {↵ | | 7 | if (RegexpUtil.hasFlag(options, MATCH_MULTILINE)) {↵
|
8 | cOptions |= RE.MATCH_MULTILINE;↵ | | 8 | cOptions |= Pattern.MULTILINE;↵
|
9 | }↵ | | 9 | }↵
|
10 | if (RegexpUtil.hasFlag(options, MATCH_SINGLELINE)) {↵ | | 10 | if (RegexpUtil.hasFlag(options, MATCH_SINGLELINE)) {↵
|
11 | cOptions |= RE.MATCH_SINGLELINE;↵ | | 11 | cOptions |= Pattern.DOTALL;↵
|
12 | }↵ | | 12 | }↵
|
|
13 | return cOptions;↵ | | 13 | return cOptions;↵
|
14 | | | 14 |
|