Internet Direct (Indy) Version 9.0.2 Beta
TIdDecoder4to3.ConstructDecodeTable
Initializes the coding table used by the decoder.

class procedure ConstructDecodeTable(const ACodingTable: string; var ADecodeArray: TIdDecodeTable);
Parameters
const ACodingTable: string
String containing the initial coder alphabet.

var ADecodeArray: TIdDecodeTable
Table used by the decoder to detect valid characters and ordinal position.

Description
ConstructDecodeTable is a Class procedure that initializes the CodingTable used by TIdDecoder4to3. All elements in ADecoderArray are initialize to decimal 255, and the valid characters in ACodingTable are overlaid to indicate their ordinal position in the coder alphabet.

ADecodeArray is used by descendant classes, like TIdDecoderMIME and TIdDecoderUUE, to initialize their DecodeTable properties based on the alphabet for each specific coder.