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.26 date: 2021/01/20 14:31:53
user: cg
file: JISEncodedString.st directory: libbasic2
module: stx stc-classLibrary: libbasic2

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 ...).

copyright

COPYRIGHT (c) 1995 by Claus Gittinger All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 08:51:12 GMT