// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'SMMsgCP.pas' rev: 37.00 (Windows)

#ifndef SMMsgCPHPP
#define SMMsgCPHPP

#pragma delphiheader begin
#pragma option push
#if defined(__BORLANDC__) && !defined(__clang__)
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#endif
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>

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

namespace Smmsgcp
{
//-- forward type declarations -----------------------------------------------
struct TMsgCodePageData;
//-- type declarations -------------------------------------------------------
enum DECLSPEC_DENUM TMsgCodePage : unsigned char { cpDefault, cp1251, cpKOI8R, cpKOI8U };

struct DECLSPEC_DRECORD TMsgCodePageData
{
public:
	int ID;
	System::UnicodeString Name;
};


typedef System::StaticArray<TMsgCodePageData, 140> Smmsgcp__1;

//-- var, const, procedure ---------------------------------------------------
static _DELPHI_CONST System::Byte MaxEncodings = System::Byte(0x8c);
extern DELPHI_PACKAGE Smmsgcp__1 msgCodePages;
extern DELPHI_PACKAGE void __fastcall ConvertStringCPTo(System::TObject* Sender, const System::UnicodeString ACodePage, System::UnicodeString &Value);
extern DELPHI_PACKAGE void __fastcall ConvertStringCPFrom(System::TObject* Sender, const System::UnicodeString ACodePage, System::UnicodeString &Value);
extern DELPHI_PACKAGE void __fastcall MsgConvertCodePageData(const System::UnicodeString CodePageName, bool IsEncode, System::WideString &AValue);
extern DELPHI_PACKAGE TMsgCodePage __fastcall GetCPFromString(System::UnicodeString s);
extern DELPHI_PACKAGE void __fastcall MsgConvertCodePage(TMsgCodePage cpFrom, TMsgCodePage cpTo, System::UnicodeString &AValue);
}	/* namespace Smmsgcp */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_SMMSGCP)
using namespace Smmsgcp;
#endif
#pragma pack(pop)
#pragma option pop

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