author | Claus Gittinger <cg@exept.de> |
Thu, 12 Jan 2017 15:01:03 +0100 | |
changeset 21234 | 5484b13cded1 |
parent 21140 | 06aa04c335c1 |
child 21242 | 19fabe339f8b |
child 21307 | e58425197070 |
permissions | -rw-r--r-- |
8148 | 1 |
" |
2 |
COPYRIGHT (c) 2004 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
8081 | 12 |
"{ Package: 'stx:libbasic' }" |
13 |
||
14 |
"{ NameSpace: CharacterEncoderImplementations }" |
|
15 |
||
8134 | 16 |
CharacterEncoder subclass:#SingleByteEncoder |
8081 | 17 |
instanceVariableNames:'' |
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
20 |
category:'Collections-Text-Encodings' |
|
21 |
! |
|
22 |
||
8148 | 23 |
!SingleByteEncoder class methodsFor:'documentation'! |
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 2004 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
8811 | 37 |
! |
38 |
||
39 |
documentation |
|
40 |
" |
|
41 |
Common abstract superclass for all single-byte encodings. |
|
42 |
||
43 |
[author:] |
|
44 |
Claus Gittinger |
|
45 |
" |
|
8148 | 46 |
! ! |
8081 | 47 |
|
48 |
!SingleByteEncoder class methodsFor:'queries'! |
|
49 |
||
50 |
maxCode |
|
51 |
^ 255 |
|
52 |
! |
|
53 |
||
54 |
minCode |
|
55 |
^ 0 |
|
56 |
! ! |
|
57 |
||
11997 | 58 |
!SingleByteEncoder methodsFor:'queries'! |
59 |
||
60 |
characterSize:codePoint |
|
21140 | 61 |
"return the number of bytes required to encode codePoint" |
11997 | 62 |
|
63 |
^1 |
|
64 |
||
65 |
"Created: / 15-06-2005 / 15:11:24 / janfrog" |
|
66 |
! ! |
|
67 |
||
8081 | 68 |
!SingleByteEncoder class methodsFor:'documentation'! |
69 |
||
70 |
version |
|
19826 | 71 |
^ '$Header$' |
12433
b8654ecbc50d
added: #readNextInputCharacterFrom:
Claus Gittinger <cg@exept.de>
parents:
11997
diff
changeset
|
72 |
! |
b8654ecbc50d
added: #readNextInputCharacterFrom:
Claus Gittinger <cg@exept.de>
parents:
11997
diff
changeset
|
73 |
|
b8654ecbc50d
added: #readNextInputCharacterFrom:
Claus Gittinger <cg@exept.de>
parents:
11997
diff
changeset
|
74 |
version_CVS |
19826 | 75 |
^ '$Header$' |
8081 | 76 |
! ! |
19826 | 77 |