-- --
-- B o d y --
-- --
--- Copyright (C) 2002-2005, Free Software Foundation, Inc. --
+-- Copyright (C) 2002-2006, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
procedure Free is
new Ada.Unchecked_Deallocation (Separators_Indexes, Indexes_Access);
+ procedure Free is
+ new Ada.Unchecked_Deallocation (Element_Sequence, Element_Access);
+
function Count
(Source : Element_Sequence;
Pattern : Element_Set) return Natural;
Mode : Separator_Mode := Single)
is
begin
+ Free (S.Source);
S.Source := new Element_Sequence'(From);
Set (S, Separators, Mode);
end Create;