Longest common substring: Difference between revisions
Content added Content deleted
Line 1,388: | Line 1,388: | ||
{{works with|FreePascal|version 3.2.0 }} |
{{works with|FreePascal|version 3.2.0 }} |
||
<lang Pascal> |
<lang Pascal> |
||
PROGRAM |
PROGRAM LongestCommonSubString.pas; |
||
{$DEFINE DEBUGGING} |
{$DEFINE DEBUGGING} |
||
Line 1,406: | Line 1,406: | ||
(*) |
(*) |
||
FUNCTION |
FUNCTION lcss( S1, S2: string ) : string ; |
||
(*) |
(*) |
||
Line 1,454: | Line 1,454: | ||
END ; |
END ; |
||
END ; |
END ; |
||
lcss := copy ( S1, Start, ( Start + Max ) ) ; |
|||
END ; |
END ; |