class: StringPattern
authorClaus Gittinger <cg@exept.de>
Thu, 05 Mar 2015 11:37:28 +0100
changeset 3524 7bfa53fd9072
parent 3523 66addfd9ee0a
child 3525 c18264bb92f2
class: StringPattern comment/format in: #match:from:to:case:relax: #matchObject: #matchObject:relax:
StringPattern.st
--- a/StringPattern.st	Tue Mar 03 00:30:17 2015 +0100
+++ b/StringPattern.st	Thu Mar 05 11:37:28 2015 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "{ Package: 'stx:libbasic2' }"
 
 "{ NameSpace: Smalltalk }"
@@ -159,7 +161,7 @@
 
 match: string from: from to: to case: case relax: relax
     "Answers true if receiver matches the given `string`
-     portion starting at `from`, enditn at `to`.
+     portion starting at `from`, ending at `to`.
      If `case` is true, then perform natch case sensitive,
      otherwise match case insensitive.
 
@@ -206,8 +208,7 @@
 matchObject: anObject
     "Return true if pattern matches given object with relax level 1.
 
-    Some heuristics is performed to obtain objects textual
-    representation."
+    Some heuristics is performed to obtain the object's textual representation."
 
     self matchObject: anObject relax: 1
 
@@ -215,10 +216,9 @@
 !
 
 matchObject: object relax: relax
-    "Return true if pattern matches given object..
+    "Return true if pattern matches given object.
 
-    Some heuristics is performed to obtain objects textual
-    representation."
+    Some heuristics is performed to obtain the object's textual representation."
 
     object isString ifTrue:[
         ^self match: object relax: relax.
@@ -425,10 +425,10 @@
 !StringPattern class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic2/StringPattern.st,v 1.11 2015-01-24 00:05:51 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/StringPattern.st,v 1.12 2015-03-05 10:37:28 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic2/StringPattern.st,v 1.11 2015-01-24 00:05:51 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/StringPattern.st,v 1.12 2015-03-05 10:37:28 cg Exp $'
 ! !