#FEATURE by Stefan Reise
authorsr
Wed, 19 Feb 2020 16:18:04 +0100
changeset 25271 3b763ce09c7e
parent 25270 abd76d94ad4f
child 25272 bf1e69fc36c5
#FEATURE by Stefan Reise class: ISO10646_to_UTF8 added: #isUtfEncoder
CharacterEncoderImplementations__ISO10646_to_UTF8.st
--- a/CharacterEncoderImplementations__ISO10646_to_UTF8.st	Wed Feb 19 16:17:53 2020 +0100
+++ b/CharacterEncoderImplementations__ISO10646_to_UTF8.st	Wed Feb 19 16:18:04 2020 +0100
@@ -213,6 +213,17 @@
     "Modified (comment): / 17-01-2018 / 13:24:08 / stefan"
 ! !
 
+!ISO10646_to_UTF8 methodsFor:'testing'!
+
+isUtfEncoder
+    "answer true, if this encodes from/to any UTF (regardless of how many bytes and byte-order).
+     In other words: does it make sense to prepend a BOM"
+
+    ^ true
+
+    "Created: / 19-02-2020 / 16:16:35 / Stefan Reise"
+! !
+
 !ISO10646_to_UTF8 class methodsFor:'documentation'!
 
 version