#FEATURE by stefan
authorStefan Vogel <sv@exept.de>
Sat, 27 Jul 2019 14:58:29 +0200
changeset 24474 e08f13d39b3f
parent 24473 699cce1b1667
child 24475 afb26f52146e
#FEATURE by stefan class: CharacterEncoder added: #isUnicodeSubsetEncoder #isUtf16Encoder class: CharacterEncoder class changed: #initializeEncoderClassesByName
CharacterEncoder.st
--- a/CharacterEncoder.st	Sat Jul 27 11:53:16 2019 +0200
+++ b/CharacterEncoder.st	Sat Jul 27 14:58:29 2019 +0200
@@ -615,7 +615,7 @@
 
         (ISO10646_to_UTF8       unicode   ( utf8 'utf-8' 'utf_8' ))
         (ISO10646_to_UTF16BE    unicode   ( utf16b utf16be 'utf-16b' 'utf-16be' ))
-        (ISO10646_to_UTF16LE    unicode   ( utf16l utf16le 'utf-16e' 'utf-16le' ))
+        (ISO10646_to_UTF16LE    unicode   ( utf16l utf16le 'utf-16e' 'utf-16le' 'utf-16'))
 
         (ISO10646_to_UTF8_MAC   unicode   ( 'utf8-mac' 'utf-8-mac' ))
         (ISO10646_to_XMLUTF8    unicode   ( 'utf8-XML' ))
@@ -752,6 +752,7 @@
     "Modified: / 27-02-2017 / 16:17:43 / stefan"
     "Modified: / 12-11-2017 / 13:05:38 / cg"
     "Modified: / 08-10-2018 / 08:59:01 / Claus Gittinger"
+    "Modified: / 26-07-2019 / 16:35:46 / Stefan Vogel"
 ! !
 
 !CharacterEncoder class methodsFor:'constants'!
@@ -1641,6 +1642,25 @@
     "Modified: / 16-01-2018 / 20:12:07 / stefan"
 ! !
 
+!CharacterEncoder methodsFor:'testing'!
+
+isUnicodeSubsetEncoder
+    "answer true, if this encodes a subset of Unicode, that is an 1-to-1 
+     mapping to unicode"
+
+    ^ false
+
+    "Created: / 27-07-2019 / 14:51:28 / Stefan Vogel"
+!
+
+isUtf16Encoder
+    "answer true, if this encodes from/to UTF-16 (regardless of byte-order)"
+
+    ^ false
+
+    "Created: / 27-07-2019 / 14:44:52 / Stefan Vogel"
+! !
+
 !CharacterEncoder::CompoundEncoder class methodsFor:'documentation'!
 
 documentation