// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Idcoderheader.pas' rev: 10.00

#ifndef IdcoderheaderHPP
#define IdcoderheaderHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Idemailaddress.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Idcoderheader
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TTransfer { bit7, bit8, iso2022jp };
#pragma option pop

typedef Set<char, 0, 255>  CSET;

//-- var, const, procedure ---------------------------------------------------
extern PACKAGE AnsiString __fastcall EncodeAddressItem(Idemailaddress::TIdEMailAddressItem* EmailAddr, const char HeaderEncoding, TTransfer TransferHeader, AnsiString MimeCharSet);
extern PACKAGE AnsiString __fastcall DecodeHeader(AnsiString Header);
extern PACKAGE AnsiString __fastcall Decode2022JP(const AnsiString S);
extern PACKAGE void __fastcall InitializeISO(TTransfer &TransferHeader, char &HeaderEncoding, AnsiString &CharSet);
extern PACKAGE void __fastcall DecodeAddress(Idemailaddress::TIdEMailAddressItem* EMailAddr);
extern PACKAGE void __fastcall DecodeAddresses(AnsiString AEMails, Idemailaddress::TIdEMailAddressList* EMailAddr);
extern PACKAGE AnsiString __fastcall EncodeAddress(Idemailaddress::TIdEMailAddressList* EmailAddr, const char HeaderEncoding, TTransfer TransferHeader, AnsiString MimeCharSet);
extern PACKAGE AnsiString __fastcall Encode2022JP(const AnsiString S);
extern PACKAGE AnsiString __fastcall EncodeHeader(const AnsiString Header, const CSET &specials, const char HeaderEncoding, TTransfer TransferHeader, AnsiString MimeCharSet);

}	/* namespace Idcoderheader */
using namespace Idcoderheader;
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Idcoderheader
