1.4. Using it with Pascal

If you are using pascal as your programming language it is really easy to use the library. All you have to do is to add the unit TextSuite to the uses clause. Then you have the choice between two methods. If you want to include the sourcecode in you application you dont need to do any more.

The other method is to use the external library. For this you must define TS_EXTERN_STATIC in your project preferences or uncomment it in the top of the file TextSuite.inc. For more options see the table below.

Define Description
TS_EXTERN_STATIC Enables the use of the external library. The library will be linked statically.
TS_PURE_PASCAL To disable the use of assembler code and only use pure pascal code instead. You should use this define only if you have problems to compile or at runtime. If you have problem at the running time please inform me. This define slows down some operations.

Table 1.1. Options for pascal

I have sucessfully testes and used it with Delphi 7, Turbo Delphi and FreePascal under Windows and Linux.