mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 22:20:23 +02:00
* fixed comparetext
This commit is contained in:
parent
1a52969bdd
commit
dd04b920c0
@ -148,17 +148,15 @@ if Count1 > Count2 then Count := Count2
|
|||||||
else Count := Count1;
|
else Count := Count1;
|
||||||
i := 0;
|
i := 0;
|
||||||
while (result = 0) and (i < count) do begin
|
while (result = 0) and (i < count) do begin
|
||||||
i := i + 1;
|
inc (i);
|
||||||
Chr1 := byte(s1[i]);
|
Chr1 := byte(s1[i]);
|
||||||
Chr2 := byte(s2[i]);
|
Chr2 := byte(s2[i]);
|
||||||
if Chr1 in [97..122] then Chr1 := Chr1 - 32;
|
if Chr1 in [97..122] then dec(Chr1,32);
|
||||||
if Chr2 in [97..122] then Chr2 := Chr2 - 32;
|
if Chr2 in [97..122] then dec(Chr2,32);
|
||||||
result := Chr1 - Chr2;
|
result := Chr1 - Chr2;
|
||||||
end ;
|
end ;
|
||||||
if (result = 0) and (Count1 <> Count2) then begin
|
if (result = 0) then
|
||||||
if Count1 > Count2 then result := byte(UpCase(s1[Count1 + 1]))
|
result:=(count1-count2);
|
||||||
else result := -byte(UpCase(s2[Count2 + 1]));
|
|
||||||
end ;
|
|
||||||
end ;
|
end ;
|
||||||
|
|
||||||
{==============================================================================}
|
{==============================================================================}
|
||||||
@ -1139,7 +1137,10 @@ const
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.26 1999-09-04 20:48:34 florian
|
Revision 1.27 1999-10-03 19:42:40 peter
|
||||||
|
* fixed comparetext
|
||||||
|
|
||||||
|
Revision 1.26 1999/09/04 20:48:34 florian
|
||||||
* format('%g',[0.0]) returned long format string, fixed
|
* format('%g',[0.0]) returned long format string, fixed
|
||||||
|
|
||||||
Revision 1.25 1999/08/25 13:13:58 michael
|
Revision 1.25 1999/08/25 13:13:58 michael
|
||||||
|
Loading…
Reference in New Issue
Block a user