#BUGFIX by cg
class: CharacterArray
added:
#asImmutableCollection
#asImmutableString
--- a/CharacterArray.st Mon Jan 27 12:19:36 2020 +0100
+++ b/CharacterArray.st Mon Jan 27 13:47:24 2020 +0100
@@ -679,6 +679,7 @@
"
! !
+
!CharacterArray class methodsFor:'pattern matching'!
matchEscapeCharacter
@@ -1086,6 +1087,7 @@
^ Unicode32String
! !
+
!CharacterArray class methodsFor:'utilities'!
through:aCharacter in:inStream
@@ -3930,6 +3932,20 @@
"
!
+asImmutableCollection
+ "fallback for subclasses of me which are not single byte strings.
+ return myself"
+
+ ^ self
+!
+
+asImmutableString
+ "fallback for subclasses of me which are not single byte strings.
+ return myself"
+
+ ^ self
+!
+
asInteger
"convert the receiver into an integer.
Notice, that errors may occur during the read,
@@ -7795,6 +7811,7 @@
"Modified: 17.4.1997 / 12:50:23 / cg"
! !
+
!CharacterArray methodsFor:'special string converting'!
asUnixFilenameString
@@ -9759,6 +9776,7 @@
"Modified (comment): / 12-12-2019 / 14:15:09 / Stefan Vogel"
! !
+
!CharacterArray methodsFor:'substring searching'!
findRangeOfString:subString