String pattern matching

There are many times when you need to compare two strings, but want to use wild cards in the match - all last names that begin with 'St', etc.

Contributor: DAVID STIDOLPH

The following is a piece of code I got from Sean Stanley in Tallahassee Florida in C. I translated it into Delphi an am uploading it here for all to use. I have not tested it extensivly, but the original function has been tested quite thoughly.

I would love feedback on this routine - or peoples changes to it. I want to forward them to Sean to get him to release more tidbits like this.

{

This function takes two strings and compares them. The first string

can be anything, but should not contain pattern characters (* or ?).

The pattern string can have as many of these pattern characters as you want.