|
Class: TwoByteEncoder (in CharacterEncoderImplementations)
Object
|
+--CharacterEncoder
|
+--CharacterEncoderImplementations::FixedBytesEncoder
|
+--CharacterEncoderImplementations::TwoByteEncoder
|
+--CharacterEncoderImplementations::MS_Thai
- Package:
- stx:libbasic
- Category:
- Collections-Text-Encodings
- Version:
- rev:
1.13
date: 2021/01/20 15:30:58
- user: cg
- file: CharacterEncoderImplementations__TwoByteEncoder.st directory: libbasic
- module: stx stc-classLibrary: libbasic
abstract superclass of all two-byte encoders
copyrightCOPYRIGHT (c) 2004 by eXept Software AG
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.
queries
-
isAbstract
-
Return if this class is an abstract class.
True is returned here; false for subclasses.
Abstract subclasses must redefine this again.
-
maxCode
-
encoding & decoding
-
encodeString: aUnicodeString
-
given a string in unicode, return a string in my encoding for it
queries
-
characterSize: charOrCodePoint
-
return the number of bytes required to encode codePoint
-
newString: size
-
stream support
-
encodeCharacter: aUnicodeCharacterOrCodePoint on: aStream
-
given a character in unicode, encode it onto aStream.
Subclasses can redefine this to avoid allocating many new string instances.
Usage example(s):
CharacterEncoderImplementations::ISO8859_10 new encodeCharacter:260 on:Transcript
CharacterEncoderImplementations::ISO8859_10 new encodeCharacter:$Ą on:Transcript
|
-
readNextCharacterFrom: aStream
-
|