CharacterArray.st
changeset 2452 7262e3b2c20a
parent 2344 b3788119533f
child 2519 07674cea76dd
equal deleted inserted replaced
2451:d019db46e488 2452:7262e3b2c20a
   535 
   535 
   536 supportedEncodings
   536 supportedEncodings
   537     "return an array containing symbolic names of supported encodings. 
   537     "return an array containing symbolic names of supported encodings. 
   538      These are internally visible supported ones only"
   538      These are internally visible supported ones only"
   539 
   539 
   540     ^ #( 
   540     ^ self supportedExternalEncodings at:2.
   541          (
   541 "/    ^ #( 
   542           iso8859      "/ ansi = ascii
   542 "/         (
   543           iso8859-1    "/ latin1
   543 "/          #'iso8859'      "/ ansi = ascii
   544           iso8859-2    "/ latin2
   544 "/          #'iso8859-1'    "/ latin1
   545           iso8859-3    "/ latin3
   545 "/          #'iso8859-2'    "/ latin2
   546           iso8859-4    "/ latin4
   546 "/          #'iso8859-3'    "/ latin3
   547           iso8859-5    "/ cyrillic
   547 "/          #'iso8859-4'    "/ latin4
   548           iso8859-6    "/ arabic
   548 "/          #'iso8859-5'    "/ cyrillic
   549           iso8859-7    "/ greek
   549 "/          #'iso8859-6'    "/ arabic
   550           iso8859-8    "/ hebrew
   550 "/          #'iso8859-7'    "/ greek
   551           ascii
   551 "/          #'iso8859-8'    "/ hebrew
   552           msdos                   
   552 "/          #'ascii'
   553           mac         
   553 "/          #'msdos'                   
   554           next   
   554 "/          #'mac'         
   555           euc   
   555 "/          #'next'   
   556           jis   
   556 "/          #'euc'   
   557           jis7   
   557 "/          #'jis'   
   558           gb            "/ china
   558 "/          #'jis7'   
   559           big5          "/ china
   559 "/          #'gb'            "/ china
   560           ksc           "/ korean
   560 "/          #'big5'          "/ china
   561          )
   561 "/          #'ksc'           "/ korean
   562        )
   562 "/         )
       
   563 "/       )
   563 
   564 
   564     "Created: 22.2.1996 / 16:19:20 / cg"
   565     "Created: 22.2.1996 / 16:19:20 / cg"
   565     "Modified: 23.1.1997 / 20:29:08 / cg"
   566     "Modified: 17.3.1997 / 12:29:06 / cg"
   566 !
   567 !
   567 
   568 
   568 supportedExternalEncodings
   569 supportedExternalEncodings
   569     "return an array of two arrays containing the names of supported
   570     "return an array of two arrays containing the names of supported
   570      encodings which are supported for external resources (i.e. files).
   571      encodings which are supported for external resources (i.e. files).
   592           'GB           (mainland china)'
   593           'GB           (mainland china)'
   593           'BIG5         (taiwan)'
   594           'BIG5         (taiwan)'
   594           'KSC          (korean)'
   595           'KSC          (korean)'
   595          )
   596          )
   596          (
   597          (
   597           iso8859
   598           #'iso8859'
   598           iso8859-1    "/ latin1
   599           #'iso8859-1'    "/ latin1
   599           iso8859-2    "/ latin2
   600           #'iso8859-2'    "/ latin2
   600           iso8859-3    "/ latin3
   601           #'iso8859-3'    "/ latin3
   601           iso8859-4    "/ latin4
   602           #'iso8859-4'    "/ latin4
   602           iso8859-5    "/ cyrillic
   603           #'iso8859-5'    "/ cyrillic
   603           iso8859-6    "/ arabic
   604           #'iso8859-6'    "/ arabic
   604           iso8859-7    "/ greek
   605           #'iso8859-7'    "/ greek
   605           iso8859-8    "/ hebrew
   606           #'iso8859-8'    "/ hebrew
   606           msdos437                   
   607           #'msdos437'                   
   607           msdos850                   
   608           #'msdos850'                   
   608           mac         
   609           #'mac'         
   609           next   
   610           #'next'   
   610           euc   
   611           #'euc'   
   611           jis7   
   612           #'jis7'   
   612           gb   
   613           #'gb'   
   613           big5
   614           #'big5'
   614           ksc           "/ korean
   615           #'ksc'           "/ korean
   615          )
   616          )
   616        )
   617        )
   617 
   618 
   618     "Created: 22.4.1996 / 14:39:39 / cg"
   619     "Created: 22.4.1996 / 14:39:39 / cg"
   619     "Modified: 23.1.1997 / 20:30:25 / cg"
   620     "Modified: 17.3.1997 / 12:27:44 / cg"
   620 ! !
   621 ! !
   621 
   622 
   622 !CharacterArray class methodsFor:'encoding / decoding'!
   623 !CharacterArray class methodsFor:'encoding / decoding'!
   623 
   624 
   624 decodeFromBIG5:aString
   625 decodeFromBIG5:aString
  4033 ! !
  4034 ! !
  4034 
  4035 
  4035 !CharacterArray class methodsFor:'documentation'!
  4036 !CharacterArray class methodsFor:'documentation'!
  4036 
  4037 
  4037 version
  4038 version
  4038     ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.102 1997-01-31 15:26:06 cg Exp $'
  4039     ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.103 1997-03-17 11:30:21 cg Exp $'
  4039 ! !
  4040 ! !