GBEncodedString.st
author Claus Gittinger <cg@exept.de>
Sat, 02 May 2020 21:40:13 +0200
changeset 5476 7355a4b11cb6
parent 1426 1f5ee0a4cfe4
permissions -rw-r--r--
#FEATURE by cg class: Socket class added: #newTCPclientToHost:port:domain:domainOrder:withTimeout: changed: #newTCPclientToHost:port:domain:withTimeout:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
543
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
     1
"
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
     2
 COPYRIGHT (c) 1995 by Claus Gittinger
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
     3
              All Rights Reserved
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
     4
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
     5
 This software is furnished under a license and may be used
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
     6
 only in accordance with the terms of that license and with the
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
     8
 be provided or otherwise made available to, or used by, any
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
     9
 other person.  No title to or ownership of the software is
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    10
 hereby transferred.
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    11
"
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    12
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    13
1426
1f5ee0a4cfe4 document string
Claus Gittinger <cg@exept.de>
parents: 543
diff changeset
    14
"{ Package: 'stx:libbasic2' }"
1f5ee0a4cfe4 document string
Claus Gittinger <cg@exept.de>
parents: 543
diff changeset
    15
1f5ee0a4cfe4 document string
Claus Gittinger <cg@exept.de>
parents: 543
diff changeset
    16
TwoByteString variableWordSubclass:#GBEncodedString
229
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Collections-Text'
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!GBEncodedString class methodsFor:'documentation'!
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
543
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    25
copyright
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    26
"
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    27
 COPYRIGHT (c) 1995 by Claus Gittinger
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    28
              All Rights Reserved
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    29
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    30
 This software is furnished under a license and may be used
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    31
 only in accordance with the terms of that license and with the
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    33
 be provided or otherwise made available to, or used by, any
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    34
 other person.  No title to or ownership of the software is
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    35
 hereby transferred.
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    36
"
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    37
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    38
!
9c29370c7dc8 fixed BIG5 encoding stuff
Claus Gittinger <cg@exept.de>
parents: 452
diff changeset
    39
229
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
documentation
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
"
1426
1f5ee0a4cfe4 document string
Claus Gittinger <cg@exept.de>
parents: 543
diff changeset
    42
    OBSOLETE
1f5ee0a4cfe4 document string
Claus Gittinger <cg@exept.de>
parents: 543
diff changeset
    43
        this class will vanish - its functionality has been replaced
1f5ee0a4cfe4 document string
Claus Gittinger <cg@exept.de>
parents: 543
diff changeset
    44
        by the UnicodeString classes.
1f5ee0a4cfe4 document string
Claus Gittinger <cg@exept.de>
parents: 543
diff changeset
    45
229
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    GBEncodedString represents 16bit strings encoded in GB (GuoBiao),
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
    (with high bit set). This encoding is Mainland China's national standard.
261
2fd450dd712f commentary
Claus Gittinger <cg@exept.de>
parents: 260
diff changeset
    48
2fd450dd712f commentary
Claus Gittinger <cg@exept.de>
parents: 260
diff changeset
    49
    [author:]
2fd450dd712f commentary
Claus Gittinger <cg@exept.de>
parents: 260
diff changeset
    50
        Claus Gittinger
2fd450dd712f commentary
Claus Gittinger <cg@exept.de>
parents: 260
diff changeset
    51
2fd450dd712f commentary
Claus Gittinger <cg@exept.de>
parents: 260
diff changeset
    52
    [see also:]
2fd450dd712f commentary
Claus Gittinger <cg@exept.de>
parents: 260
diff changeset
    53
        JISEncodedString BIG5EncodedString
2fd450dd712f commentary
Claus Gittinger <cg@exept.de>
parents: 260
diff changeset
    54
        TwoByteString String CharacterArray
2fd450dd712f commentary
Claus Gittinger <cg@exept.de>
parents: 260
diff changeset
    55
        StringCollection
229
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
"
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
! !
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
260
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    59
!GBEncodedString class methodsFor:'initialization'!
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    60
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    61
initialize
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    62
    "initialize the class - private"
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    63
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    64
    self flags:(Behavior flagWords)
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    65
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    66
    "
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    67
     GBEncodedString initialize
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    68
    "
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    69
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    70
    "Created: 27.4.1996 / 13:12:17 / cg"
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    71
! !
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    72
229
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
!GBEncodedString methodsFor:'queries'!
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
encoding
264
1e508408ecf5 commentary
Claus Gittinger <cg@exept.de>
parents: 261
diff changeset
    76
    "return the strings encoding as a symbol. 
1e508408ecf5 commentary
Claus Gittinger <cg@exept.de>
parents: 261
diff changeset
    77
     Here, the constant symbol #gb is returned."
240
7af04274190d commentary
Claus Gittinger <cg@exept.de>
parents: 229
diff changeset
    78
229
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    ^ #gb
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
    "Created: 17.4.1996 / 15:44:26 / cg"
264
1e508408ecf5 commentary
Claus Gittinger <cg@exept.de>
parents: 261
diff changeset
    82
    "Modified: 27.4.1996 / 13:23:09 / cg"
229
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
! !
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
!GBEncodedString class methodsFor:'documentation'!
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
version
1426
1f5ee0a4cfe4 document string
Claus Gittinger <cg@exept.de>
parents: 543
diff changeset
    88
    ^ '$Header: /cvs/stx/stx/libbasic2/GBEncodedString.st,v 1.8 2004-03-15 14:10:53 cg Exp $'
229
3b126b43392b intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
! !
1426
1f5ee0a4cfe4 document string
Claus Gittinger <cg@exept.de>
parents: 543
diff changeset
    90
260
427397326fac need explicit #initialize (due to startup optimization)
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
    91
GBEncodedString initialize!