eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'JISEncodedString':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: JISEncodedString


Inheritance:

   Object
   |
   +--Collection
      |
      +--SequenceableCollection
         |
         +--ArrayedCollection
            |
            +--UninterpretedBytes
               |
               +--CharacterArray
                  |
                  +--TwoByteString
                     |
                     +--JISEncodedString

Package:
stx:libbasic2
Category:
Collections-Text
Version:
rev: 1.25 date: 2016/11/02 14:13:43
user: cg
file: JISEncodedString.st directory: libbasic2
module: stx stc-classLibrary: libbasic2
Author:
Claus Gittinger

Description:


OBSOLETE
    this class will vanish - its functionality has been replaced
    by the UnicodeString classes.

JISEncodedString represents 16bit strings encoded in JIS.
You need jis-encoded fonts on your display workstation, 
to display them (i.e. when switching to japanese ...).


Related information:

    BIG5EncodedString
    GBEncodedString
    TwoByteString
    String
    CharacterArray
    StringCollection

Class protocol:

code tables
o  defaultRomanCharacterValue

o  romanTable
return a table to decode from roman ascii to 16 bit JIS.

WARNING: this is a temporary kludge for CJK characterSets and will be removed,
when the textViews always use unicode.

encoding & decoding
o  encodeHalfWidthKatakana: aString
encode halfWidth katakana characters in aString.
Return the argument or a copy.

initialization
o  initialize
initialize the class - private

usage example(s):

     JISEncodedString initialize

standards
o  jis7KanjiEscapeSequence
return the escape sequence used to switch to kanji in jis7 encoded strings.
This happens to be the same as ISO2022-JP's escape sequence.

o  jis7RomanEscapeSequence
return the escape sequence used to switch to roman in jis7 encoded strings

o  jisISO2022EscapeSequence
return the escape sequence used to switch to kanji in iso2022 encoded strings

o  oldJis7KanjiEscapeSequence
return the escape sequence used to switch to kanji in old jis7 encoded strings


Instance protocol:

queries
o  encoding
return the strings encoding as a symbol.
Here, the constant symbol #jis is returned.


Examples:


JISEncodedString fromString:'hello world' 'hello world' decodeFrom:#jis7 <someStringWithJIS7Escapes> decodeFrom:#jis7

ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 20 Apr 2024 03:38:26 GMT