Internet Direct (Indy)
Home
PreviousUpNext
TIdDecoder4to3.ConstructDecodeTable Method

Initializes the coding table used by the decoder.

Pascal
class procedure ConstructDecodeTable(
    const ACodingTable: string; 
    var ADecodeArray: TIdDecodeTable
);
Parameters 
Description 
ACodingTable 
String containing the initial coder alphabet.
 
ADecodeArray 
Table used by the decoder to detect valid characters and ordinal position. 

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.

Constructing a decoder using the encode and decode alphabets. 

[Delphi]

  TIdDecoder4to3.ConstructDecodeTable(GBase64CodeTable, GBase64DecodeTable);
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.