CharacterArray.st
changeset 23188 709c48bf557e
parent 23187 0f22aaefc623
child 23209 fe7673542e5f
--- a/CharacterArray.st	Tue Jul 03 11:01:21 2018 +0200
+++ b/CharacterArray.st	Tue Jul 03 11:09:55 2018 +0200
@@ -1523,6 +1523,15 @@
     "
 !
 
+trimBoth
+    "return a copy of the receiver without leading and trailing whiteSpace.
+     Added for Squeak compatibility (an alias for withoutSeparators)"
+
+    ^ self withoutSeparators
+
+    "Created: / 03-07-2018 / 11:08:29 / Claus Gittinger"
+!
+
 truncateTo:smallSize
     "return myself or a copy shortened to smallSize.  1/18/96 sw"