org.apache.tools.ant.util.regexp
public class RegexpUtil extends Object
Method Summary | |
---|---|
static int | asOptions(String flags)
convert regex option flag characters to regex options
|
static int | asOptions(boolean caseSensitive)
Convert flag to regex options.
|
static int | asOptions(boolean caseSensitive, boolean multiLine, boolean singleLine)
Convert flags to regex options.
|
static boolean | hasFlag(int options, int flag)
Check the options has a particular flag set.
|
static int | removeFlag(int options, int flag)
Remove a particular flag from an int value contains the option flags.
|
Parameters: flags the string containing the flags
Returns: the Regexp option bits
Since: Ant 1.8.2
Parameters: caseSensitive opposite of RegexpMatcher.MATCH_CASE_INSENSITIVE
Returns: the Regexp option bits
Since: Ant 1.8.2
Parameters: caseSensitive opposite of RegexpMatcher.MATCH_CASE_INSENSITIVE multiLine RegexpMatcher.MATCH_MULTILINE singleLine RegexpMatcher.MATCH_SINGLELINE
Returns: the Regexp option bits
Since: Ant 1.8.2
Parameters: options an int
value flag an int
value
Returns: true if the flag is set
Parameters: options an int
value flag an int
value
Returns: the options with the flag unset