|
Class: JISEncodedString
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
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 ...).
copyrightCOPYRIGHT (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.
code tables
-
defaultRomanCharacterValue
-
-
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
-
encodeHalfWidthKatakana: aString
-
encode halfWidth katakana characters in aString.
Return the argument or a copy.
initialization
-
initialize
-
initialize the class - private
Usage example(s):
JISEncodedString initialize
|
standards
-
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.
-
jis7RomanEscapeSequence
-
return the escape sequence used to switch to roman in jis7 encoded strings
-
jisISO2022EscapeSequence
-
return the escape sequence used to switch to kanji in iso2022 encoded strings
-
oldJis7KanjiEscapeSequence
-
return the escape sequence used to switch to kanji in old jis7 encoded strings
queries
-
encoding
-
return the strings encoding as a symbol.
Here, the constant symbol #jis is returned.
JISEncodedString fromString:'hello world'
'hello world' decodeFrom:#jis7
<someStringWithJIS7Escapes> decodeFrom:#jis7
|