function MatchAfterStar(Pattern, Text: string): Integer;
var
P, T, PLen, TLen: Integer;
begin
Result := 0;
P := 1;
T := 1;
PLen := Length(Pattern);
TLen := Length(Text);
if TLen = 1 then
begin
Result := MATCH_VALID;
Exit;
end;
..
..
There seems to be some problem with the logic here but I can't see what they are actually trying to do.
With a quick web search I've found the original code by Kevin Boylan which Sergey Seroukhov used as the base for the ZMatchPattern Unit. See attached file.
I've used this to replace the code in ZMatchPattern and the filtering seems to work correctly.
Anyone have any comments?
Ben
You do not have the required permissions to view the files attached to this post.
Can you add it as a diff to the corresponding Zeoslib file or add you changed files? That makes it easier for me to test, comment and eventually integrate. I know, that sounds lazy, but given the limited amount of time a human has...