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

// (DO NOT EDIT: machine generated header) 'RVUni.pas' rev: 3.00

#ifndef RVUniHPP
#define RVUniHPP
#include <RVStyle.hpp>
#include <RVItem.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <Windows.hpp>
#include <SysUtils.hpp>
#include <SysInit.hpp>
#include <System.hpp>

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

namespace Rvuni
{
//-- type declarations -------------------------------------------------------
typedef int TRVIntegerArray[100001];

typedef TRVIntegerArray *PRVIntegerArray;

typedef Cardinal TRVUnsignedArray[100001];

typedef TRVUnsignedArray *PRVUnsignedArray;

typedef Word TRVWordArray[100001];

typedef TRVWordArray *PRVWordArray;

enum TRVUnicodeTestResult { rvutNo, rvutYes, rvutProbably, rvutEmpty, rvutError };

//-- var, const, procedure ---------------------------------------------------
#define UNI_LF (Word)(10)
#define UNI_CR (Word)(13)
#define UNI_LineSeparator (Word)(8232)
#define UNI_ParagraphSeparator (Word)(8233)
#define UNI_VerticalTab (Word)(11)
#define UNI_FormFeed (Word)(12)
#define UNI_LSB_FIRST (Word)(65279)
#define UNI_MSB_FIRST (Word)(65534)
#define UNI_FF (Word)(12)
#define UNI_LSB_FIRST1 (char)(255)
#define UNI_LSB_FIRST2 (char)(254)
extern PACKAGE bool RVNT;
extern PACKAGE bool __fastcall RVU_GetTextCaretPos(Graphics::TCanvas* Canvas, const System::AnsiString 
	s, PRVIntegerArray PCP, Rvitem::TRVItemOptions ItemOptions);
extern PACKAGE System::AnsiString __fastcall RVU_Copy(const System::AnsiString s, int Index, int Count
	, Rvitem::TRVItemOptions ItemOptions);
extern PACKAGE void __fastcall RVU_GetTextExtentExPoint(Graphics::TCanvas* Canvas, const System::AnsiString 
	s, int MaxExtent, int &Fit, PRVIntegerArray PDx, Rvitem::TRVItemOptions ItemOptions);
extern PACKAGE void __fastcall RVU_GetTextExtentExPointPC(Graphics::TCanvas* Canvas, char * pc, int 
	Length, int MaxExtent, int &Fit, PRVIntegerArray PDx, Rvitem::TRVItemOptions ItemOptions, tagSIZE &
	sz);
extern PACKAGE int __fastcall RVU_Length(const System::AnsiString s, Rvitem::TRVItemOptions ItemOptions
	);
extern PACKAGE int __fastcall RVU_TextWidth(const System::AnsiString s, Graphics::TCanvas* Canvas, Rvitem::TRVItemOptions 
	ItemOptions);
extern PACKAGE bool __fastcall RVU_IsSpace(const System::AnsiString s, int Index, Rvitem::TRVItemOptions 
	ItemOptions);
extern PACKAGE void __fastcall RVU_Delete(System::AnsiString &s, int Index, int Count, Rvitem::TRVItemOptions 
	ItemOptions);
extern PACKAGE void __fastcall RVU_Insert(const System::AnsiString Source, System::AnsiString &s, int 
	Index, Rvitem::TRVItemOptions ItemOptions);
extern PACKAGE int __fastcall RVU_OffsInPChar(int Offs, Rvitem::TRVItemOptions ItemOptions);
extern PACKAGE bool __fastcall RVU_DrawSelectedTextEx(int Left, int Top, int Height, const System::AnsiString 
	s, Graphics::TCanvas* Canvas, int Index1, int Index2, Rvitem::TRVItemOptions ItemOptions, Rvstyle::TRVBiDiMode 
	BiDiMode);
extern PACKAGE Rvstyle::TRVCodePage __fastcall RVU_Charset2CodePage(Graphics::TFontCharset Charset);
	
extern PACKAGE Rvstyle::TRVCodePage __fastcall RVU_Charset2Language(Graphics::TFontCharset Charset);
	
extern PACKAGE void __fastcall RVU_SwapWordBytes(PWORD arr, int Count);
extern PACKAGE System::AnsiString __fastcall RVU_AnsiToUnicode(Rvstyle::TRVCodePage CodePage, const 
	System::AnsiString s);
extern PACKAGE System::AnsiString __fastcall RVU_UnicodeToAnsi(Rvstyle::TRVCodePage CodePage, const 
	System::AnsiString s);
extern PACKAGE TRVUnicodeTestResult __fastcall RV_TestFileUnicode(const System::AnsiString FileName)
	;
extern PACKAGE System::AnsiString __fastcall RVU_KeyToUnicode(const System::AnsiString Key);
extern PACKAGE void * __fastcall RVU_StrScanW(void * Str, Word Ch, int Length);
extern PACKAGE void __fastcall RVU_WriteHTMLEncodedUnicode(Classes::TStream* Stream, const System::AnsiString 
	s, bool NoEmptyLines);
extern PACKAGE System::AnsiString __fastcall RVU_GetHTMLEncodedUnicode(const System::AnsiString s, bool 
	NoEmptyLines);
extern PACKAGE System::AnsiString __fastcall RV_ReturnCapitalized(const System::AnsiString s, Rvstyle::TFontInfo* 
	TextStyle);

}	/* namespace Rvuni */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Rvuni;
#endif
//-- end unit ----------------------------------------------------------------
#endif	// RVUni
