d2c_system

Top  Previous  Next

Pretranslated C++ code > Delphi RTL/VCL > C++ code for C++Builder > d2c_system

d2c_system contains Delphi2Cpp helper routines, which simulate intrinsic Delphi functions, which are not provided by C++Builder itself.

 

 

 

 

#define ARRAYHIGH(arr) ...

#define ObjectIs(xObj, xIs) ...

 

 

 

namespace System

{

const double PI = 3.141592653589793238463; // float 3.14159265358979f;

}

 

template <class T> void d2c_Move(const wchar_t* Source, DynamicArray<T>& Dest, int Startindex, unsigned int Count) ...

template <class T> void d2c_Move(const wchar_t* Source, DynamicArray<T>& Dest, unsigned int Count) ...

void d2c_Move(const wchar_t* Source, Char* Dest, int Startindex, unsigned int Count);

 

template <class T> T Pred(const T& xT) ...

template <class T> T Succ(const T& xT) ...

template <class T> T Abs(const T xT) ...

 

void FillChar( void* X, int Count, unsignedchar Value );

void FillChar( char* X, int Count, unsignedchar Value );

void FillChar( wchar_t* X, int Count, unsignedchar Value );

void FillChar( AnsiString& X, int Count, unsignedchar Value );

void FillChar( WideString& X, int Count, unsignedchar Value );

 

template <typename T> void Val(const AnsiString& S, T& V, int& Code) ...

template <typename T> void Val(const WideString& S, T& V, int& Code) ...

 

#if (__BORLANDC__ >= 0x0610)

template <typename T> void Val(const UnicodeString& S, T& V, int& Code) ...

#endif

template <typename T> void Str(T xT, AnsiString& xs) ...

template <typename T> void Str(T xT, WideString& xs) ...

#if (__BORLANDC__ >= 0x0610)

template <typename T> void Str(T xT, UnicodeString& xs) ..

#endif

 

void Str(double xd, AnsiString& xs);

void Str(long double xd, AnsiString& xs);

void Str(int xd, int xiMinWidth, AnsiString& xs);

void Str(double xd, int xiMinWidth, AnsiString& xs);

void Str(long double xd, int xiMinWidth, AnsiString& xs);

void Str(long double xd, int xiMinWidth, AnsiString& xs);

void Str(double xd, int xiMinWidth, int xiDecPlaces, AnsiString& xs);

void Str(long double xd, int xiMinWidth, int xiDecPlaces, AnsiString& xs);

void Str(const Currency& xcr, int xiMinWidth, int xiDecPlaces, AnsiString& xs);

 

void Str(double xd, WideString& xs);

void Str(long double xd, WideString& xs);

void Str(int xd, int xiMinWidth, WideString& xs);

void Str(double xd, int xiMinWidth, WideString& xs);

void Str(long double xd, int xiMinWidth, WideString& xs);

void Str(double xd, int xiMinWidth, int xiDecPlaces, WideString& xs);

void Str(long double xd, int xiMinWidth, int xiDecPlaces, WideString& xs);

void Str(const Currency& xcr, int xiMinWidth, int xiDecPlaces, WideString& xs);

 

#if (__BORLANDC__ >= 0x0610)

void Str(double xd, UnicodeString& xs);

void Str(long double xd, UnicodeString& xs);

void Str(int xd, int xiMinWidth, UnicodeString& xs);

void Str(double xd, int xiMinWidth, UnicodeString& xs);

void Str(long double xd, int xiMinWidth, UnicodeString& xs);

void Str(double xd, int xiMinWidth, int xiDecPlaces, UnicodeString& xs);

void Str(long double xd, int xiMinWidth, int xiDecPlaces, UnicodeString& xs);

void Str(const Currency& xcr, int xiMinWidth, int xiDecPlaces, UnicodeString& xs);

#endif

 

template <typename T> PChar pchar(const T& xT) ...

 

// Pchar call is not created for wchar_t*, PChar instead

 

template <> inline PChar pchar<wchar_t>(const wchar_t& xT) ...

template <> inline PChar pchar<char>(const char& xT) ..

template <> inline PChar pchar<std::wstring>(const std::wstring& xT) ...

 

 

WORD Swap( WORD X );

int Swap( int X );

unsignedint Swap( unsignedint X );

int64_t Swap( int64_t X );

 

template <class T> unsigned char Hi(const T& xt) ...

template <class T> unsigned char Lo(const T& xt) ...

template <class T> bool Odd(const T xT) ...

template <class T> T Dec(T& xT) ...

template <class T> T Dec(T& xT, int xi) ...

template <class T> T Inc(T& xT) ...

template <class T> T Inc(T& xT, int xi) ...

template <class T> T Sqr(const T& xT) ...

template <class T> T High() ...

template <class T> T High(const T& X) ....

inline int High(const AnsiString& s) ...

inline int High(const WideString& s) ...

inline int High(const UnicodeString& s) ...

template <class T> T Low() ...

template <class T> T Low(const T& X) ...

template <class T, class C> void CastDec(T& xT, C xC) ...

template <class T, class C, class I> void CastDec(T& xT, C xC, I xI) ...

template <class T, class C> void CastDec(T*& xpT, C* xpC) ...

template <class T, class C, class I> void CastDec(T*& xpT, C* xpC, I xI) ...

template <class T, class C, class I> void CastDec(T*& xpT, C xC, I xI) ...

template <class T, class C> void CastInc(T& xT, C xC) ...

template <class T, class C, class I> void CastInc(T& xT, C xC, I xI) ...

template <class T, class C> void CastInc(T*& xpT, C xpC) ...

template <class T, class C, class I> void CastInc(T*& xpT, C* xpC, I xI) ...

template <class T, class C, class I> void CastInc(T*& xpT, C xC, I xI) ...

template <class TargetType, class SouceType, class Value> void CastAssign(SouceType* target, Value v) ...

void Assert( bool expr );

void Assert( bool expr, const AnsiString& Msg );

void Halt( int Exitcode = - 1 );

bool Assigned(void* P);

template<class R, class... Args >  bool Assigned(R __fastcall ( __closure * Func) (Args ...)) ...

void* Ptr(int Address);

template <class T> void* Addr(const T& X) ...

template <typename CH> int charLen(const CH* src) ...

String d2c_LoadResourceString(int Ident);

 

template<class T, T minEl, T maxEl> System::Set<T, minEl, maxEl> CreateSetFromRange(T First, T Last) ... 

template<class T, unsigned char minEl = 0, unsigned char maxEl = 255> System::Set<T, minEl, maxEl> CreateSetFromRange(unsigned char First, unsigned char Last) ...

template <unsigned char sz> bool operator == (SmallString<sz> SmallS, AnsiString AnsiS) ...

template <unsigned char sz> bool operator == (AnsiString AnsiS, SmallString<sz> SmallS) ...

template <unsigned char sz> bool operator != (SmallString<sz> SmallS, AnsiString AnsiS) ...

template <unsigned char sz> bool operator != (AnsiString AnsiS, SmallString<sz> SmallS) ...

 

class ENoDefaultConstructorError : public std::exception ...

 

 

void ThrowAbstractError(const String& xsClassName); // d2c

void ThrowNoDefaultConstructorError(const String& xsClassName); // d2c

 

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content