--- a/TwoByteString.st Sun May 15 08:38:43 2016 +0100
+++ b/TwoByteString.st Tue May 17 10:05:14 2016 +0100
@@ -115,44 +115,6 @@
^ super basicAt:index.
! !
-!TwoByteString methodsFor:'encoding'!
-
-utf8Encoded
- "Return my UTF-8 representation as a new String"
-
- ^ CharacterEncoderImplementations::ISO10646_to_UTF8 new encodeString:self
-
-
- "
- 'abcdef' asUnicode16String utf8Encoded
- 'abcdefäöü' asUnicode16String utf8Encoded
- "
-!
-
-utf8EncodedOn:aStream
- "write to aStream in utf8 encoding"
-
- self containsNon7BitAscii ifTrue:[
- aStream nextPutAllUtf8:self.
- ] ifFalse:[
- |sz "{Class: SmallInteger}"|
-
- sz := self size.
- 1 to:sz do:[:idx|
- aStream nextPut:(self basicAt:idx).
- ].
- ].
-
- "
- String streamContents:[:w|
- 'abcde1234' asUnicode16String utf8EncodedOn:w
- ].
- String streamContents:[:w|
- 'abcdeäöüß' asUnicode16String utf8EncodedOn:w
- ].
- "
-! !
-
!TwoByteString methodsFor:'filling and replacing'!
replaceFrom:start to:stop with:aString startingAt:repStart