View Issue Details

IDProjectCategoryView StatusLast Update
0038853pas2jsrtlpublic2021-05-04 12:47
ReporterWagner Landgraf Assigned ToMichael Van Canneyt  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Fixed in Versiontrunk 
Summary0038853: Functions StartsStr and EndsStr are wrongly implemented
DescriptionThe parameters are swapped when calling AnsiStartsStr and AnsiEndsStr. See patch.
TagsNo tags attached.
Fixed in Revision1180
Attached Files

Activities

Wagner Landgraf

2021-05-04 12:34

reporter  

strutils.pas.patch (514 bytes)   
Index: strutils.pas
===================================================================
--- strutils.pas	(revision 1177)
+++ strutils.pas	(working copy)
@@ -2161,13 +2161,13 @@
 Function StartsStr(const ASubText, AText: string): Boolean;
 
 begin
-  Result := AnsiStartsStr(AText, ASubText);
+  Result := AnsiStartsStr(ASubText, AText);
 end;
 
 Function EndsStr(const ASubText, AText: string): Boolean;
 
 begin
-  Result := AnsiEndsStr(AText, ASubText);
+  Result := AnsiEndsStr(ASubText, AText);
 end;
 
 
strutils.pas.patch (514 bytes)   

Michael Van Canneyt

2021-05-04 12:47

administrator   ~0130748

Checked & Applied, thank you very much.

Issue History

Date Modified Username Field Change
2021-05-04 12:34 Wagner Landgraf New Issue
2021-05-04 12:34 Wagner Landgraf File Added: strutils.pas.patch
2021-05-04 12:44 Michael Van Canneyt Assigned To => Michael Van Canneyt
2021-05-04 12:44 Michael Van Canneyt Status new => assigned
2021-05-04 12:47 Michael Van Canneyt Status assigned => resolved
2021-05-04 12:47 Michael Van Canneyt Resolution open => fixed
2021-05-04 12:47 Michael Van Canneyt Fixed in Version => trunk
2021-05-04 12:47 Michael Van Canneyt Fixed in Revision => 1180
2021-05-04 12:47 Michael Van Canneyt Note Added: 0130748