|
Class: Matches (private in StringPattern
This class is only visible from within
StringPattern.
Object
|
+--StringPattern
|
+--StringPattern::Matches
- Package:
- stx:libbasic2
- Category:
- Collections-Text-Support
- Owner:
- StringPattern
conversion
-
asString
-
Returns a string representation of the pattern.
`StringPattern fromString: pattern asString` should return
the same pattern (same meaning equal)
matching
-
match: string from: from to: to case: case relax: relax
-
(comment from inherited method)
Answers true if receiver matches the given `string`
portion starting at `from`, ending at `to`.
If `case` is true, then perform natch case sensitive,
otherwise match case insensitive.
`relax` argument say how much the matching should
be relaxed - relax is a number in <1..3>, where
1 means no relaxing at all (aka exact match).
All patterns should support relax == 1. If the relax
level is not supported by a pattern, false must be
returned.
|