home *** CD-ROM | disk | FTP | other *** search
- ======================= Turbo Include Library ========================
-
- The files in this library contain functions and procedures which are
- an extension of Turbo Pascal routines. These routines are written in
- "pure" Turbo 2.0 (No Intr or DOS calls) so they should be compatible
- with all operating systems. You may include the file in your program
- using the {$i filename.inc} command.
-
- The files are:
-
- INKEY.INC INKEY$ function for Turbo Pascal. It is designed
- for MS-DOS, and may need modification for other
- systems.
-
- POWER.INC Raise a REAL number to an INTEGER power (positive
- or negative).
-
- STRING.INC A collection of string routines to round out those
- provided with Turbo.
-
- Available string functions:
-
- LoCase Convert a single character to lower case.
- LowerCase Convert a string to lower case.
- UpperCase Convert a string to upper case.
- TrimL Trim Left: remove leading spaces from a string.
- TrimR Trim Right: remove trailing spaces from a string.
- PadL Pad Left: Add leading spaces to give a desired
- field length.
- PadR Pad Right: Add trailing spaces to give a desired
- field length.
- JustL Left Justify a string within a desired field length.
- JustR Right Justify a string within a desired field length.
- Center Center a string within a desired field length.
- GetStr Get String: Extracts a substring up to a delimiter.
- Break Extract a substring up to the first of several delimters.
- Span Extract a substring of delimiters up to a NON delimiter.
-
- Available string procedures:
-
- GString Get String: Used by Span and Break functions. It
- performs both functions with greater program control.
-
- RealStr Convert a value of type REAL to a string representation
- in any base from 2 to 36.
-
- RealVal Convert a string representation of a number to a REAL
- value. The number may be in any base from 2 to 36.
-
- Usage: Documentation on how to use the functions and procedures is provided
- in the source listings.
-
- Dedication:
-
- These files are dedicated to Gyro Gearloose, who invented for
- the pure joy of it. His example gave me the strength to write
- and collect together these routines not knowing if they would
- ever be of use to anyone.
-
- (By the way, Gyro may have been thinking of computers when he said,
- "Nobody can make a machine so smart that some jerk won't be too dumb
- to run it".)
-
- Happy Computing -- may it never be of use to anyone!
-
- Tryg Helseth
- Minneapolis, Minnesota
-
- 1/3/85
-