home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
TIKTP12A.LZH
/
UTILITY.ITF
< prev
next >
Wrap
Text File
|
1992-03-16
|
1KB
|
36 lines
(*#module(turbo_comp=>off)*)
INTERFACE Unit Utility ;
(*
General Utility Routines and Constants
Copyright 1989, Paul West - All Rights Reserved.
*)
IMPORT
DOS(EXIT_PROCESS),
TURBOSYS(upcase,_STR_INT)
;
FUNCTION UpperCase (TheString: MAXSTRING): MAXSTRING ;
FUNCTION LowerCase (TheString: MAXSTRING): MAXSTRING ;
FUNCTION Capitalize (TheString: MAXSTRING): MAXSTRING ;
FUNCTION Trim (TheString: MAXSTRING): MAXSTRING ;
FUNCTION Strip (TheString: MAXSTRING; Delim: Char; Mode: Char): MAXSTRING ;
FUNCTION Word_to_Str(TheWord: Word): MAXSTRING ;
FUNCTION Str_To_Word(TheString: MAXSTRING): Word ;
FUNCTION Count (TheString: MAXSTRING; Delim: MAXSTRING): Word ;
FUNCTION DCount (TheString: MAXSTRING; Delim: MAXSTRING): Word ;
FUNCTION Index (TheString: MAXSTRING; Delim: MAXSTRING; Cnt: Word): Word ;
FUNCTION Field (TheString: MAXSTRING; Delim: MAXSTRING; Cnt: Word): MAXSTRING ;
FUNCTION Change (TheString: MAXSTRING; Old:Char; New: Char): MAXSTRING ;
FUNCTION PadLeft (TheString: MAXSTRING; Size: Word; Pad: Char): MAXSTRING ;
FUNCTION PadRight (TheString: MAXSTRING; Size: Word; Pad: Char): MAXSTRING ;
FUNCTION PadCenter (TheString: MAXSTRING; Size: Word; Pad: Char): MAXSTRING ;
FUNCTION DATE_DMA (Number: Word): MAXSTRING ;
FUNCTION DATE_DWA (Number: Word): MAXSTRING ;
FUNCTION MD (Number: INTEGER; Decimal: Word) : MAXSTRING ;
END.