CharacterEncoderImplementations__TwoByteEncoder.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 19 Aug 2009 17:14:36 +0100
branchjv
changeset 17728 bbc5fa73dfab
parent 17711 39faaaf888b4
child 17732 a1892eeca6c0
permissions -rw-r--r--
Merged with trunk r10466
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8148
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
     1
"
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
     2
 COPYRIGHT (c) 2004 by eXept Software AG
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
     3
              All Rights Reserved
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
     4
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
     5
 This software is furnished under a license and may be used
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
     6
 only in accordance with the terms of that license and with the
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
     8
 be provided or otherwise made available to, or used by, any
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
     9
 other person.  No title to or ownership of the software is
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    10
 hereby transferred.
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    11
"
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    12
8079
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
"{ Package: 'stx:libbasic' }"
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
"{ NameSpace: CharacterEncoderImplementations }"
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
8134
0296806cb4bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8114
diff changeset
    17
CharacterEncoder subclass:#TwoByteEncoder
8079
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	instanceVariableNames:''
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	classVariableNames:''
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	poolDictionaries:''
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
	category:'Collections-Text-Encodings'
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
!
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
8148
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    24
!TwoByteEncoder class methodsFor:'documentation'!
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    25
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    26
copyright
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    27
"
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    28
 COPYRIGHT (c) 2004 by eXept Software AG
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    29
              All Rights Reserved
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    30
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    31
 This software is furnished under a license and may be used
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    32
 only in accordance with the terms of that license and with the
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    33
 inclusion of the above copyright notice.   This software may not
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    34
 be provided or otherwise made available to, or used by, any
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    35
 other person.  No title to or ownership of the software is
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    36
 hereby transferred.
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    37
"
dbf64e3142d9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8134
diff changeset
    38
! !
8079
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
!TwoByteEncoder class methodsFor:'queries'!
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
maxCode
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    ^ 16rFFFF 
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
!
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
minCode
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
    ^ 0 
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
! !
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
!TwoByteEncoder methodsFor:'private'!
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
newString:size
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
    ^ TwoByteString uninitializedNew:size
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
! !
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
!TwoByteEncoder class methodsFor:'documentation'!
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
version
17728
bbc5fa73dfab Merged with trunk r10466
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
    59
    ^ '$Id: CharacterEncoderImplementations__TwoByteEncoder.st 10467 2009-08-19 16:14:36Z vranyj1 $'
8079
0c51c515c6b6 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
! !