Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public static int | |
public static int | Returns: the Regexp option bitsopposite of RegexpMatcher.MATCH_CASE_INSENSITIVE caseSensitive)Convert flag to regex options. |
public static int | Returns: the Regexp option bitsopposite of RegexpMatcher.MATCH_CASE_INSENSITIVE caseSensitive, boolean RegexpMatcher.MATCH_MULTILINE multiLine, boolean RegexpMatcher.MATCH_SINGLELINE singleLine)Convert flags to regex options. |
public static boolean | Returns: true if the flag is setan options, int int valuean flag)int valueCheck the options has a particular flag set. |
public static int | Returns: the options with the flag unsetan options, int int valuean flag)int valueRemove a particular flag from an int value contains the option flags. |
RegexpUtil | back to summary |
---|---|
public RegexpUtil() |
asOptions | back to summary |
---|---|
public static int asOptions(String flags) convert regex option flag characters to regex options
|
asOptions | back to summary |
---|---|
public static int asOptions(boolean caseSensitive) Convert flag to regex options.
|
asOptions | back to summary |
---|---|
public static int asOptions(boolean caseSensitive, boolean multiLine, boolean singleLine) Convert flags to regex options.
|
hasFlag | back to summary |
---|---|
public static boolean hasFlag(int options, int flag) Check the options has a particular flag set.
|
removeFlag | back to summary |
---|---|
public static int removeFlag(int options, int flag) Remove a particular flag from an int value contains the option flags.
|