1 | protected int getCompilerOptions(int options) {↵ | | 1 | protected int getCompilerOptions(int options) {↵
|
2 | int cOptions = Perl5Compiler.DEFAULT_MASK↵ | | 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 |= Perl5Compiler.CASE_INSENSITIVE_MASK;↵ | | 5 | cOptions |= Pattern.CASE_INSENSITIVE;↵
|
6 | }↵ | | 6 | }↵
|
7 | if (RegexpUtil.hasFlag(options, MATCH_MULTILINE)) {↵ | | 7 | if (RegexpUtil.hasFlag(options, MATCH_MULTILINE)) {↵
|
8 | cOptions |= Perl5Compiler.MULTILINE_MASK;↵ | | 8 | cOptions |= Pattern.MULTILINE;↵
|
9 | }↵ | | 9 | }↵
|
10 | if (RegexpUtil.hasFlag(options, MATCH_SINGLELINE)) {↵ | | 10 | if (RegexpUtil.hasFlag(options, MATCH_SINGLELINE)) {↵
|
11 | cOptions |= Perl5Compiler.SINGLELINE_MASK;↵ | | 11 | cOptions |= Pattern.DOTALL;↵
|
12 | }↵ | | 12 | }↵
|
|
13 | return cOptions;↵ | | 13 | return cOptions;↵
|
14 | | | 14 |
|