IdCoderXXE.pas 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. { $HDR$}
  2. {**********************************************************************}
  3. { Unit archived using Team Coherence }
  4. { Team Coherence is Copyright 2002 by Quality Software Components }
  5. { }
  6. { For further information / comments, visit our WEB site at }
  7. { http://www.TeamCoherence.com }
  8. {**********************************************************************}
  9. {}
  10. { $Log: 10101: IdCoderXXE.pas
  11. {
  12. { Rev 1.0 2002.11.12 10:33:20 PM czhower
  13. }
  14. unit IdCoderXXE;
  15. interface
  16. uses
  17. Classes,
  18. IdCoder3to4, IdCoderUUE;
  19. type
  20. TIdDecoderXXE = class(TIdDecoderUUEBase)
  21. public
  22. constructor Create(AOwner: TComponent); override;
  23. end;
  24. TIdEncoderXXE = class(TIdEncoderUUEBase)
  25. public
  26. constructor Create(AOwner: TComponent); override;
  27. end;
  28. const
  29. GXXECodeTable: string = '+-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; {Do not Localize}
  30. var
  31. GXXEDecodeTable: TIdDecodeTable;
  32. implementation
  33. uses
  34. IdGlobal,
  35. SysUtils;
  36. { TIdEncoderXXE }
  37. constructor TIdEncoderXXE.Create(AOwner: TComponent);
  38. begin
  39. inherited;
  40. FCodingTable := GXXECodeTable;
  41. FFillChar := FCodingTable[1];
  42. end;
  43. { TIdDecoderXXE }
  44. constructor TIdDecoderXXE.Create(AOwner: TComponent);
  45. begin
  46. inherited;
  47. FDecodeTable := GXXEDecodeTable;
  48. FFillChar := '~'; {Do not Localize}
  49. end;
  50. initialization
  51. TIdDecoder4to3.ConstructDecodeTable(GXXECodeTable, GXXEDecodeTable);
  52. end.