eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'StringPattern::Matches':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: Matches (private in StringPattern

This class is only visible from within StringPattern.

Inheritance:

   Object
   |
   +--StringPattern
      |
      +--StringPattern::Matches

Package:
stx:libbasic2
Category:
Collections-Text-Support
Owner:
StringPattern

Instance protocol:

conversion
o  asString
Returns a string representation of the pattern.

`StringPattern fromString: pattern asString` should return
the same pattern (same meaning equal)

matching
o  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.



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 29 Mar 2024 08:02:02 GMT