author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 13 Jun 2018 14:39:23 +0000 | |
branch | jv |
changeset 23108 | 77cd6e1625e1 |
parent 21387 | e3865533e6a6 |
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 |
||
21307 | 50 |
isAbstract |
51 |
"Return if this class is an abstract class. |
|
52 |
True is returned here; false for subclasses. |
|
53 |
Abstract subclasses must redefine this again." |
|
54 |
||
55 |
^ self == CharacterEncoderImplementations::SingleByteEncoder |
|
56 |
! |
|
57 |
||
8081 | 58 |
maxCode |
59 |
^ 255 |
|
60 |
! |
|
61 |
||
62 |
minCode |
|
63 |
^ 0 |
|
64 |
! ! |
|
65 |
||
11997 | 66 |
!SingleByteEncoder methodsFor:'queries'! |
67 |
||
68 |
characterSize:codePoint |
|
21140 | 69 |
"return the number of bytes required to encode codePoint" |
11997 | 70 |
|
71 |
^1 |
|
72 |
||
73 |
"Created: / 15-06-2005 / 15:11:24 / janfrog" |
|
74 |
! ! |
|
75 |
||
8081 | 76 |
!SingleByteEncoder class methodsFor:'documentation'! |
77 |
||
78 |
version |
|
19826 | 79 |
^ '$Header$' |
12433
b8654ecbc50d
added: #readNextInputCharacterFrom:
Claus Gittinger <cg@exept.de>
parents:
11997
diff
changeset
|
80 |
! |
b8654ecbc50d
added: #readNextInputCharacterFrom:
Claus Gittinger <cg@exept.de>
parents:
11997
diff
changeset
|
81 |
|
b8654ecbc50d
added: #readNextInputCharacterFrom:
Claus Gittinger <cg@exept.de>
parents:
11997
diff
changeset
|
82 |
version_CVS |
19826 | 83 |
^ '$Header$' |
8081 | 84 |
! ! |
19826 | 85 |