@@ -393,16 +393,17 @@ package body Filter is
393393 or else (J + 4 <= S'Last and then S (J + 3 .. J + 4 ) = " />" ))
394394 then
395395 Result (K .. K + EOL'Length - 1 ) := EOL;
396- K := K + EOL'Length;
396+ K := @ + EOL'Length;
397+
397398 if S (J + 3 ) = ' >' then
398- J := J + 4 ;
399+ J := @ + 4 ;
399400 else
400- J := J + 5 ;
401+ J := @ + 5 ;
401402 end if ;
402403 else
403404 Result (K) := S (J);
404- K := K + 1 ;
405- J := J + 1 ;
405+ K := @ + 1 ;
406+ J := @ + 1 ;
406407 end if ;
407408
408409 exit when J > S'Last;
@@ -578,14 +579,13 @@ package body Filter is
578579 if Space = False then
579580 Space := True;
580581
581- R := R + 1 ;
582+ R := @ + 1 ;
582583 Result (R) := ' ' ;
583584 end if ;
584-
585585 else
586586 Space := False;
587587
588- R := R + 1 ;
588+ R := @ + 1 ;
589589 Result (R) := S (K);
590590 end if ;
591591
@@ -658,7 +658,7 @@ package body Filter is
658658 Last := Pos;
659659
660660 while Last < S'Last and then S (Last) /= ' &' loop
661- Last := Last + 1 ;
661+ Last := @ + 1 ;
662662 end loop ;
663663
664664 if Last = S'Last then
@@ -860,12 +860,12 @@ package body Filter is
860860
861861 for P in reverse TS'First .. N loop
862862 Result (K) := TS (P);
863- K := K - 1 ;
863+ K := @ - 1 ;
864864 Count := Count + 1 ;
865865
866866 if Count mod 3 = 0 and then P /= TS'First then
867867 Result (K) := Separator;
868- K := K - 1 ;
868+ K := @ - 1 ;
869869 end if ;
870870 end loop ;
871871
@@ -997,10 +997,10 @@ package body Filter is
997997 for J in S'Range loop
998998 if S (J) = ASCII.LF then
999999 Result (K .. K + 4 ) := " <br/>" ;
1000- K := K + 5 ;
1000+ K := @ + 5 ;
10011001 else
10021002 Result (K) := S (J);
1003- K := K + 1 ;
1003+ K := @ + 1 ;
10041004 end if ;
10051005 end loop ;
10061006
@@ -1352,7 +1352,7 @@ package body Filter is
13521352
13531353 for K in S'Range loop
13541354 if not (S (K) = ' ' ) then
1355- L := L + 1 ;
1355+ L := @ + 1 ;
13561356 Result (L) := S (K);
13571357 end if ;
13581358 end loop ;
@@ -1656,12 +1656,12 @@ package body Filter is
16561656 By => S (Matches (K).First .. Matches (K).Last));
16571657
16581658 -- Position N just after the inserted replacement text
1659- N := N + Matches (K).Last - Matches (K).First + 1 ;
1659+ N := @ + Matches (K).Last - Matches (K).First + 1 ;
16601660 end loop ;
16611661 end loop ;
16621662
16631663 -- Prepend the beginning of string before the match
1664- Result := Result
1664+ Result := @
16651665 & To_Unbounded_String (S (Current .. Matches (0 ).First - 1 ))
16661666 & Temp;
16671667
@@ -2023,15 +2023,14 @@ package body Filter is
20232023 Check_Null_Parameter (P);
20242024
20252025 for I in S'Range loop
2026- Last := Last + 1 ;
2026+ Last := @ + 1 ;
20272027
20282028 if S (I) = ' ' then
20292029 Result (Last .. Last + Nbsp_Token'Length - 1 ) := Nbsp_Token;
2030- Last := Last + Nbsp_Token'Length - 1 ;
2030+ Last := @ + Nbsp_Token'Length - 1 ;
20312031 else
20322032 Result (Last) := S (I);
20332033 end if ;
2034-
20352034 end loop ;
20362035
20372036 return Result (1 .. Last);
@@ -2088,7 +2087,7 @@ package body Filter is
20882087 else
20892088 -- Go to the next character
20902089
2091- Last := Last + 1 ;
2090+ Last := @ + 1 ;
20922091 end if ;
20932092 end loop ;
20942093
0 commit comments