CharacterArray.st
changeset 16733 3f4622673efc
parent 16697 c462faf821b7
child 16738 bd9416219f7c
--- a/CharacterArray.st	Wed Jul 09 18:21:17 2014 +0200
+++ b/CharacterArray.st	Wed Jul 09 18:21:21 2014 +0200
@@ -283,7 +283,6 @@
     "Created: 3.8.1997 / 18:16:40 / cg"
 ! !
 
-
 !CharacterArray class methodsFor:'cleanup'!
 
 lowSpaceCleanup
@@ -327,7 +326,6 @@
     "
 ! !
 
-
 !CharacterArray class methodsFor:'pattern matching'!
 
 matchEscapeCharacter
@@ -725,7 +723,6 @@
     ^ self == CharacterArray
 ! !
 
-
 !CharacterArray methodsFor:'Compatibility-ANSI'!
 
 addLineDelimiters
@@ -4123,8 +4120,6 @@
 ! !
 
 
-
-
 !CharacterArray methodsFor:'matching - glob expressions'!
 
 compoundMatch:aString
@@ -4808,7 +4803,6 @@
 ! !
 
 
-
 !CharacterArray methodsFor:'padded copying'!
 
 centerPaddedTo:newSize
@@ -5437,7 +5431,6 @@
     "Modified: 17.4.1997 / 12:50:23 / cg"
 ! !
 
-
 !CharacterArray methodsFor:'special string converting'!
 
 expandPlaceholders:escapeCharacter with:argArrayOrDictionary
@@ -6384,7 +6377,6 @@
     "
 ! !
 
-
 !CharacterArray methodsFor:'substring searching'!
 
 findRangeOfString:subString
@@ -6780,7 +6772,7 @@
 
     |i|
 
-    (self first == $:) ifFalse:[^ false].
+    (self at:1) == $: ifFalse:[^ false].
     i := self indexOf:$: startingAt:2.
     i == 0 ifTrue:[^ false].
     self size <= (i+1) ifTrue:[^ false].
@@ -6963,19 +6955,19 @@
 !CharacterArray methodsFor:'visiting'!
 
 acceptVisitor:aVisitor with:aParameter
+    "dispatch for visitor pattern; send #visitString:with: to aVisitor"
 
     ^ aVisitor visitString:self with:aParameter
 ! !
 
-
 !CharacterArray class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.535 2014-07-08 20:48:38 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.536 2014-07-09 16:21:21 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.535 2014-07-08 20:48:38 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.536 2014-07-09 16:21:21 cg Exp $'
 ! !