class: CharacterArray
comment/format in:
#asArrayOfSubstrings
#replString:withString:
#subString:to:
--- a/CharacterArray.st Sat May 23 03:47:30 2015 +0000
+++ b/CharacterArray.st Sat May 23 14:37:36 2015 +0200
@@ -317,7 +317,6 @@
"Created: 3.8.1997 / 18:16:40 / cg"
! !
-
!CharacterArray class methodsFor:'cleanup'!
lowSpaceCleanup
@@ -361,7 +360,6 @@
"
! !
-
!CharacterArray class methodsFor:'pattern matching'!
matchEscapeCharacter
@@ -860,8 +858,8 @@
asArrayOfSubstrings
"return an array of substrings from the receiver, interpreting
separators (i.e. spaces & newlines) as word-delimiters.
- This has been added for ST/V compatibility; the actual work is done
- in asCollectionOfWords.
+ This has been added for ST/V compatibility
+ - the actual work is done in asCollectionOfWords.
(sigh: it is called #'subStrings' in V'Age, #'substrings' in Squeak
and #'asCollectionOfWords' in ST/X) "
@@ -871,7 +869,7 @@
'1 one two three four 5 five' asArrayOfSubstrings
'1
one
- two three four 5 five' asArrayOfSubstrings
+ two three four 5 five' asArrayOfSubstrings
"
!
@@ -933,7 +931,8 @@
replString:subString withString:newString
"return a copy of the receiver, with all sequences of subString replaced
- by newString (i.e. slice in the newString in place of the oldString)."
+ by newString (i.e. slice in the newString in place of the oldString).
+ This is an ST/V compatibility method."
^ self copyReplaceString:subString withString:newString
@@ -943,13 +942,16 @@
'12345678901234567890' replString:'234' withString:'foo'
('a string with spaces' replChar:$ withString:' foo ')
- replString:'foo' withString:'bar'
+ replString:'foo' withString:'bar'
"
"Modified: / 12-05-2004 / 12:00:27 / cg"
!
subString:start to:end
+ "same as copyFrom:to:
+ This is an ST/V compatibility method."
+
^ self copyFrom:start to:end
"
@@ -4470,8 +4472,6 @@
! !
-
-
!CharacterArray methodsFor:'matching - glob expressions'!
compoundMatch:aString
@@ -5817,7 +5817,6 @@
"Modified: 17.4.1997 / 12:50:23 / cg"
! !
-
!CharacterArray methodsFor:'special string converting'!
asUnixFilenameString
@@ -7409,15 +7408,14 @@
^ aVisitor visitString:self with:aParameter
! !
-
!CharacterArray class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.585 2015-05-16 09:48:42 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.586 2015-05-23 12:37:36 cg Exp $'
!
version_CVS
- ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.585 2015-05-16 09:48:42 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.586 2015-05-23 12:37:36 cg Exp $'
! !