-- B o d y --
-- (VMS Version) --
-- --
--- Copyright (C) 2004 Free Software Foundation, Inc. --
+-- Copyright (C) 2004-2007, 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- --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
--- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
--- MA 02111-1307, USA. --
+-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
+-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
Invalid_Character : constant array (Character) of Boolean :=
('a' .. 'z' => False,
'A' .. 'Z' => False,
+ '0' .. '9' => False,
'_' | '$' | '-' | '.' => False,
others => True);
end if;
end loop;
- -- If name include a dot, it can only be ".", ".." or a the last
+ -- If name include a dot, it can only be ".", ".." or the last
-- file name.
if Dot_Found then
return True;
end Is_Valid_Simple_Name;
+ -------------
+ -- OpenVMS --
+ -------------
+
+ function OpenVMS return Boolean is
+ begin
+ return True;
+ end OpenVMS;
+
+ -------------
+ -- Windows --
+ -------------
+
+ function Windows return Boolean is
+ begin
+ return False;
+ end Windows;
+
end Ada.Directories.Validity;