home *** CD-ROM | disk | FTP | other *** search
- {* *}
- {* FormulaBuilder *}
- {* Copyright 1995 Clayton Collie *}
- {* All Rights Reserved *}
- {* *}
-
- {* General support unit for FormulaBuilder *}
- Unit FBMisc;
- interface
- uses sysutils,classes;
- type
- str255 = String[255];
- charset = set of char;
-
-
- { Return the filename (no extenstion) }
- Function JustFilename(fname : TFilename):TFilename;
-
- { Perform a DOS-like wildcard match to see if Name matches the spec Card }
- function WildCardMatch(const Name, Card: String): Boolean;
-
- { Returns two halves of a string Source delimited by delim }
- Procedure SplitByDelim(source, delim : string;var a, b : string);
-
- {Remove '[' ']' from string }
- Procedure StripFieldDelims(var source : str255);
-
- { Safe PString Dereference }
- Function getPtrString( Str : PString):String;
-
- { calculate y to the X power }
- function power(const y,x : double) : double;
-
- { Is Date Valid ? }
- Function IsValidDate(const s : string):Boolean;
-
- Function ShortPrototype(const name : string;
- Const prmstr : string;
- const maxparams,minparams:byte):string;
-
- { Extract next token from a string (destructively) }
- Function ExtractWord(Var Source : String;
- Delims : CharSet;
- Caps : Boolean;
- Del : Boolean) : String;
-
- { Return the minimum and maximum values respectively of a longint}
- Function Min(const a, b : longint):longint;
- function max(const a , b : integer):longint;
-
- { Returns the Roman Numeral Equivalent of Number }
- Function Romanize(number : word):String;
-
- IMPLEMENTATION
- END.
-