The Inbox: Multilingual-tonyg.235.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Multilingual-tonyg.235.mcz

commits-2
A new version of Multilingual was added to project The Inbox:
http://source.squeak.org/inbox/Multilingual-tonyg.235.mcz

==================== Summary ====================

Name: Multilingual-tonyg.235
Author: tonyg
Time: 31 January 2018, 8:38:16.621047 pm
UUID: 8ca52bc8-a45a-4b10-91dc-a0b4586b459e
Ancestors: Multilingual-tonyg.234

Add
        ByteArray>>utf8Decoded
        String>>utf8Encoded
per discussion on mailing-list on 28 Jan 2018, http://lists.squeakfoundation.org/pipermail/squeak-dev/2018-January/197082.html

=============== Diff against Multilingual-tonyg.234 ===============

Item was added:
+ ----- 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."
+ "Equivalent to the Pharo method of the same name."
+ ^ self asString utf8ToSqueak!

Item was added:
+ ----- Method: String>>utf8Encoded (in category '*Multilingual-converting') -----
+ utf8Encoded
+ "Yields a ByteArray containing the UTF8 encoding of the receiver's contents."
+ "Equivalent to the Pharo method of the same name."
+ ^ self squeakToUtf8 asByteArray!