// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'AdvUtil.pas' rev: 4.00

#ifndef AdvUtilHPP
#define AdvUtilHPP

#pragma delphiheader begin
#pragma option push -w-
#include <Classes.hpp>	// Pascal unit
#include <Grids.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Advutil
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAutoType { atNumeric, atFloat, atString, atDate, atTime };
#pragma option pop

#pragma option push -b-
enum TTextType { ttText, ttHTML, ttRTF, ttFormula, ttURL };
#pragma option pop

typedef Set<char, 0, 255>  TCharSet;

//-- var, const, procedure ---------------------------------------------------
extern PACKAGE bool __fastcall IsInGridRect(const Grids::TGridRect &rc, int c, int r);
extern PACKAGE AnsiString __fastcall GetToken(AnsiString &s, AnsiString separator);
extern PACKAGE int __fastcall Max(int i1, int i2);
extern PACKAGE int __fastcall Min(int i1, int i2);
extern PACKAGE AnsiString __fastcall StringListToText(Classes::TStringList* st);
extern PACKAGE int __fastcall VarPos(AnsiString su, AnsiString s, int &respos);
extern PACKAGE char __fastcall FirstChar(const TCharSet &charset, AnsiString s);
extern PACKAGE bool __fastcall NameToCell(AnsiString s, Windows::TPoint &cell);
extern PACKAGE bool __fastcall IsURL(const AnsiString s);
extern PACKAGE void __fastcall StripURLProtocol(AnsiString &s);
extern PACKAGE TTextType __fastcall TextType(AnsiString s, bool allowhtml);
extern PACKAGE AnsiString __fastcall RemoveSeps(AnsiString s);
extern PACKAGE AnsiString __fastcall HTMLLineBreaks(AnsiString s);
extern PACKAGE AnsiString __fastcall HTMLColor(unsigned l);
extern PACKAGE TAutoType __fastcall IsType(AnsiString s);
extern PACKAGE AnsiString __fastcall CLFToLF(AnsiString s);
extern PACKAGE AnsiString __fastcall LFToCLF(AnsiString s);
extern PACKAGE void __fastcall StringToPassword(AnsiString &s, char passwordchar);
extern PACKAGE void __fastcall StringToOem(AnsiString &s);
extern PACKAGE void __fastcall OemToString(AnsiString &s);
extern PACKAGE AnsiString __fastcall DoubleToSingleChar(char ch, const AnsiString s);
extern PACKAGE void __fastcall LineFeedsToCSV(AnsiString &s);
extern PACKAGE void __fastcall CSVToLineFeeds(AnsiString &s);
extern PACKAGE void __fastcall LineFeedsToJava(AnsiString &s);
extern PACKAGE void __fastcall JavaToLineFeeds(AnsiString &s);
extern PACKAGE bool __fastcall MatchStrEx(AnsiString s1, AnsiString s2, bool DoCase);
extern PACKAGE bool __fastcall MatchStr(AnsiString s1, AnsiString s2, bool DoCase);
extern PACKAGE bool __fastcall Matches(char * s0a, char * s1a);
extern PACKAGE AnsiString __fastcall LfToFile(AnsiString s);
extern PACKAGE AnsiString __fastcall FileToLf(AnsiString s, bool multiline);
extern PACKAGE AnsiString __fastcall GetNextLine(AnsiString &s, bool multiline);
extern PACKAGE int __fastcall LinesInText(AnsiString s, bool multiline);
extern PACKAGE AnsiString __fastcall RectString(const Windows::TRect &r);
extern PACKAGE AnsiString __fastcall FixDecimalSeparator(AnsiString s);
extern PACKAGE System::TDateTime __fastcall GetNextDate(System::TDateTime d, Word dye, Word dmo, Word 
	dda, System::TDateTime dtv);
extern PACKAGE void __fastcall DrawBitmapTransp(Graphics::TCanvas* canvas, Graphics::TBitmap* bmp, Graphics::TColor 
	bkcolor, const Windows::TRect &r);
extern PACKAGE int __fastcall SinglePos(char p, AnsiString s);
extern PACKAGE int __fastcall NumSingleChar(char p, AnsiString s);
extern PACKAGE AnsiString __fastcall LineFeedsToXLS(AnsiString s);
extern PACKAGE AnsiString __fastcall ShiftCase(AnsiString Name);
extern PACKAGE System::TDateTime __fastcall StrToShortdateUS(AnsiString s);
extern PACKAGE System::TDateTime __fastcall StrToShortDateEU(AnsiString s);

}	/* namespace Advutil */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Advutil;
#endif
#pragma option pop	// -w-

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