[squeak-dev] The Trunk: Multilingual-mt.288.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu Mar 30 07:24:01 UTC 2023
Marcel Taeumel uploaded a new version of Multilingual to project The Trunk:
http://source.squeak.org/trunk/Multilingual-mt.288.mcz
==================== Summary ====================
Name: Multilingual-mt.288
Author: mt
Time: 30 March 2023, 9:24:00.543449 am
UUID: 5301b1ee-1cd2-be44-9f02-a8829a3a2505
Ancestors: Multilingual-pre.287
Expands commentary on utf8 encoding/decoding. Documents the #changeClassTo: idiom.
=============== Diff against Multilingual-pre.287 ===============
Item was changed:
----- Method: ByteArray>>utf8Decoded (in category '*Multilingual-converting') -----
utf8Decoded
+ "Interprets the receiver as a UTF8-encoded String. Yields a String, or an InvalidUTF8 exception if the receiver is not valid UTF8.
+ If the receiver is only temporary (and writable), class adoption can be faster:
+ self changeClassTo: ByteString; utf8ToSqueak."
+
- "Interprets the receiver as a UTF8-encoded String. Yields a String, or an InvalidUTF8 exception if the receiver is not valid UTF8."
- "Equivalent to the Pharo method of the same name."
^ self asString utf8ToSqueak!
Item was changed:
----- Method: String>>utf8Encoded (in category '*Multilingual-converting') -----
utf8Encoded
+ "Yields a ByteArray containing the UTF8 encoding of the receiver's contents.
+ If the receiver is only temporary (and writable), class adoption can be faster:
+ self squeakToUtf8 changeClassTo: ByteArray."
+
- "Yields a ByteArray containing the UTF8 encoding of the receiver's contents."
- "Equivalent to the Pharo method of the same name."
^ self squeakToUtf8 asByteArray!
More information about the Squeak-dev
mailing list
|