#BUGFIX by cg expecco_19_2_1
authorClaus Gittinger <cg@exept.de>
Mon, 27 Jan 2020 13:47:24 +0100
changeset 25204 b12f8693fe6f
parent 25203 a3ba0cf0dd07
child 25205 50e8c9926899
#BUGFIX by cg class: CharacterArray added: #asImmutableCollection #asImmutableString
CharacterArray.st
--- 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