initial checkin
authorClaus Gittinger <cg@exept.de>
Sun, 12 Nov 2017 11:48:13 +0100
changeset 22341 8650acafad1a
parent 22340 08aa4efd5869
child 22342 fe11692a7fc4
initial checkin
CharacterEncoderImplementations__ASCII7.st
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CharacterEncoderImplementations__ASCII7.st	Sun Nov 12 11:48:13 2017 +0100
@@ -0,0 +1,72 @@
+"
+ COPYRIGHT (c) 2017 by eXept Software AG
+              All Rights Reserved
+
+ This software is furnished under a license and may be used
+ only in accordance with the terms of that license and with the
+ inclusion of the above copyright notice.   This software may not
+ be provided or otherwise made available to, or used by, any
+ other person.  No title to or ownership of the software is
+ hereby transferred.
+"
+"{ Package: 'stx:libbasic' }"
+
+"{ NameSpace: CharacterEncoderImplementations }"
+
+ASCII subclass:#ASCII7
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'Collections-Text-Encodings'
+!
+
+!ASCII7 class methodsFor:'documentation'!
+
+copyright
+"
+ COPYRIGHT (c) 2017 by eXept Software AG
+              All Rights Reserved
+
+ This software is furnished under a license and may be used
+ only in accordance with the terms of that license and with the
+ inclusion of the above copyright notice.   This software may not
+ be provided or otherwise made available to, or used by, any
+ other person.  No title to or ownership of the software is
+ hereby transferred.
+"
+!
+
+documentation
+"
+    Ascii7 - 7bit identity subset of Unicode.
+    Ignores the high bit.
+
+    [author:]
+        Claus Gittinger
+"
+! !
+
+!ASCII7 methodsFor:'encoding & decoding'!
+
+decode:codeArg
+    "Automagically generated by generateCode - do not modify.
+     Decode from my encoding into unicode."
+
+    |code "{ Class: SmallInteger }"|
+
+    code := codeArg.
+    ^ code bitAnd:16r7F.
+
+    "Modified: / 12-11-2017 / 11:42:27 / cg"
+! !
+
+!ASCII7 class methodsFor:'documentation'!
+
+version
+    ^ '$Header$'
+!
+
+version_CVS
+    ^ '$Header$'
+! !
+