caseFoldOff
See caseFoldOn.
caseFoldOn
Ignore case distinctions in both the pattern and the string.
hasMatch
Returns true if a match is found, false otherwise.
leadingDirOff
See leadingDirOn.
leadingDirOn
Ignore rest after successful pattern matching.
matchFor(aString)
Returns self if aString matches the pattern, otherwise returns nil.
noEscapeOff
See noEscapeOn.
noEscapeOn
If not set, a backslash character (\) in pattern followed by any other
character will match that second character in string.
In particular, "\\" will match a backslash in string.
If set, a backslash character will be treated as an ordinary character.
pathNameOff
See pathNameOn.
pathNameOn
If set, a slash (/) character in string will be explicitly matched
by a slash in pattern; it will not be matched by either the asterisk (*)
or question-mark (?) special characters, nor by a bracket ([]) expression.
If not set, the slash character is treated as an ordinary character.
pattern
Returns the pattern string.
periodOff
"See periodOn.
periodOn
If set, a leading period in string will match a period in pattern; where the location of ``leading'' is indicated by the value of FNM_PATHNAME:
- If FNM_PATHNAME is set, a period is ``leading'' if it is the first character in string or if it immediately follows a slash.
- If FNM_PATHNAME is not set, a period is ``leading'' only if it is the first character of string.
If not set, no special restrictions are placed on matching a period.
setPattern(aString)
Sets the pattern string. Returns self.
setString(aString)
Sets the string to do matching on.
string
The string to do matching on.
|