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

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

#ifndef RVUniHPP
#define RVUniHPP

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

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

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

typedef int *PRVIntegerArray;

typedef unsigned TRVUnsignedArray[100001];

typedef unsigned *PRVUnsignedArray;

typedef Word TRVWordArray[100001];

typedef Word *PRVWordArray;

#pragma option push -b-
enum TRVUnicodeTestResult { rvutNo, rvutYes, rvutProbably, rvutEmpty, rvutError };
#pragma option pop

//-- var, const, procedure ---------------------------------------------------
static const Word UNI_LF = 0xa;
static const Word UNI_CR = 0xd;
static const Word UNI_LineSeparator = 0x2028;
static const Word UNI_ParagraphSeparator = 0x2029;
static const Word UNI_VerticalTab = 0xb;
static const Word UNI_FormFeed = 0xc;
static const Word UNI_LSB_FIRST = 0xfeff;
static const Word UNI_MSB_FIRST = 0xfffe;
static const Word UNI_FF = 0xc;
static const char UNI_LSB_FIRST1 = '\xff';
static const char UNI_LSB_FIRST2 = '\xfe';
extern PACKAGE bool RVNT;
extern PACKAGE bool __fastcall RVU_GetTextCaretPos(Graphics::TCanvas* Canvas, const AnsiString s, PRVIntegerArray 
	PCP, Rvitem::TRVItemOptions ItemOptions);
extern PACKAGE AnsiString __fastcall RVU_Copy(const AnsiString s, int Index, int Count, Rvitem::TRVItemOptions 
	ItemOptions);
extern PACKAGE void __fastcall RVU_GetTextExtentExPoint(Graphics::TCanvas* Canvas, const 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 AnsiString s, Rvitem::TRVItemOptions ItemOptions);
extern PACKAGE int __fastcall RVU_TextWidth(const AnsiString s, Graphics::TCanvas* Canvas, Rvitem::TRVItemOptions 
	ItemOptions);
extern PACKAGE bool __fastcall RVU_IsSpace(const AnsiString s, int Index, Rvitem::TRVItemOptions ItemOptions
	);
extern PACKAGE void __fastcall RVU_Delete(AnsiString &s, int Index, int Count, Rvitem::TRVItemOptions 
	ItemOptions);
extern PACKAGE void __fastcall RVU_Insert(const AnsiString Source, 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 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 AnsiString __fastcall RVU_AnsiToUnicode(Rvstyle::TRVCodePage CodePage, const AnsiString 
	s);
extern PACKAGE AnsiString __fastcall RVU_UnicodeToAnsi(Rvstyle::TRVCodePage CodePage, const AnsiString 
	s);
extern PACKAGE TRVUnicodeTestResult __fastcall RV_TestFileUnicode(const AnsiString FileName);
extern PACKAGE AnsiString __fastcall RVU_KeyToUnicode(const AnsiString Key);
extern PACKAGE void * __fastcall RVU_StrScanW(void * Str, Word Ch, int Length);
extern PACKAGE void __fastcall RVU_WriteHTMLEncodedUnicode(Classes::TStream* Stream, const AnsiString 
	s, bool NoEmptyLines);
extern PACKAGE AnsiString __fastcall RVU_GetHTMLEncodedUnicode(const AnsiString s, bool NoEmptyLines
	);
extern PACKAGE AnsiString __fastcall RV_ReturnCapitalized(const AnsiString s, Rvstyle::TFontInfo* TextStyle
	);

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

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