Missing MatchText function from Delphi
Original Reporter info from Mantis: rd0x
-
Reporter name:
Original Reporter info from Mantis: rd0x
- Reporter name:
Description:
There is a MatchStr function which is equivalent to Delphi's MatchStr.
But the case insenstive MatchText function from Delphi is missing in FPC.
Error: Identifier not found "MatchText"
Steps to reproduce:
Program MatchText_missing;
{$MODE DelphiUnicode}
uses StrUtils;
var
Input: string = 'test2';
ArrayOfString: array[0..2] of String = ('Test1', 'test2', 'test3');
begin
// this one is already there
if MatchStr(Input, ArrayOfString) then
writeln('Hello World!');
// this one is missing
if MatchText(Input, ArrayOfString) then
writeln('Hello World!');
end.
Mantis conversion info:
- Mantis ID: 33078
- Version: 3.0.2
- Fixed in version: 3.1.1
- Fixed in revision: 38063 (#551d3eda)
- Target version: 3.2.0