CharacterEncoder.st
changeset 24942 7ecac95aa6b6
parent 24474 e08f13d39b3f
child 25124 861a0fd6a262
--- a/CharacterEncoder.st	Thu Nov 21 22:23:07 2019 +0100
+++ b/CharacterEncoder.st	Thu Nov 21 22:24:12 2019 +0100
@@ -1496,6 +1496,14 @@
 
 !CharacterEncoder methodsFor:'error handling'!
 
+decodesToUnicode
+    "answer true, if this encoder decodes data to unicode"
+
+    ^ self class nameOfDecodedCode == #unicode
+
+    "Created: / 21-11-2019 / 18:42:51 / Stefan Vogel"
+!
+
 decodingError 
     "report an error that there is no unicode-codePoint for a given codePoint in this encoding.
      (which is unlikely) or that the encoding is undefined for that value