Package apple.foundation.enums
Class NSRegularExpressionOptions
- java.lang.Object
-
- apple.foundation.enums.NSRegularExpressionOptions
-
public final class NSRegularExpressionOptions extends java.lang.ObjectNSRegularExpression is a class used to represent and apply regular expressions. An instance of this class is an immutable representation of a compiled regular expression pattern and various option flags.
-
-
Field Summary
Fields Modifier and Type Field Description static longAllowCommentsAndWhitespaceIgnore whitespace and #-prefixed comments in the pattern.static longAnchorsMatchLinesAllow ^ and $ to match the start and end of lines.static longCaseInsensitiveMatch letters in the pattern independent of case.static longDotMatchesLineSeparatorsAllow . to match any character, including line separators.static longIgnoreMetacharactersTreat the entire pattern as a literal string.static longUseUnicodeWordBoundariesUse Unicode TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used).static longUseUnixLineSeparatorsTreat only \n as a line separator (otherwise, all standard line separators are used).
-
-
-
Field Detail
-
CaseInsensitive
public static final long CaseInsensitive
Match letters in the pattern independent of case.- See Also:
- Constant Field Values
-
AllowCommentsAndWhitespace
public static final long AllowCommentsAndWhitespace
Ignore whitespace and #-prefixed comments in the pattern.- See Also:
- Constant Field Values
-
IgnoreMetacharacters
public static final long IgnoreMetacharacters
Treat the entire pattern as a literal string.- See Also:
- Constant Field Values
-
DotMatchesLineSeparators
public static final long DotMatchesLineSeparators
Allow . to match any character, including line separators.- See Also:
- Constant Field Values
-
AnchorsMatchLines
public static final long AnchorsMatchLines
Allow ^ and $ to match the start and end of lines.- See Also:
- Constant Field Values
-
UseUnixLineSeparators
public static final long UseUnixLineSeparators
Treat only \n as a line separator (otherwise, all standard line separators are used).- See Also:
- Constant Field Values
-
UseUnicodeWordBoundaries
public static final long UseUnicodeWordBoundaries
Use Unicode TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used).- See Also:
- Constant Field Values
-
-