Natools

Diff
Login

Differences From Artifact [6be873c8b5]:

To Artifact [e78bc3f122]:


366
367
368
369
370
371
372
373
374


375
376
377
378
379
380
381
382
366
367
368
369
370
371
372


373
374

375
376
377
378
379
380
381







-
-
+
+
-







   begin
      for I in Result'Range loop
         if Result (I) = Plus then
            Result (I) := Digit_62;
         elsif Result (I) = Slash then
            Result (I) := Digit_63;
         elsif Result (I) = Base64_Filler then
            for J in I + 1 .. Result'Last loop
               pragma Assert (Result (J) = Base64_Filler);
            pragma Assert (Result (I + 1 .. Result'Last)
              = (I + 1 .. Result'Last => Base64_Filler));
            end loop;
            Last := I - 1;
            exit;
         end if;
      end loop;

      return Result (Result'First .. Last);
   end Encode_Base64;