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