+2019-07-09 Piotr Trojanek <trojanek@adacore.com>
+
+ * doc/gnat_rm/the_gnat_library.rst,
+ doc/gnat_ugn/building_executable_programs_with_gnat.rst,
+ erroutc.adb, libgnat/g-comlin.adb, libgnat/g-comlin.ads,
+ libgnat/g-regexp.ads, libgnat/g-regpat.ads,
+ libgnat/g-spipat.ads, libgnat/s-os_lib.ads,
+ libgnat/s-regexp.ads: Reword "wild card" to "wildcard".
+ * gnat_rm.texi, gnat_ugn.texi: Regenerate.
+
2019-07-09 Yannick Moy <moy@adacore.com>
* sem_spark.adb (Check_Expression): Handle correctly implicit
Provides a high level interface to ``Ada.Command_Line`` facilities,
including the ability to scan for named switches with optional parameters
-and expand file names using wild card notations.
+and expand file names using wildcard notations.
.. _`GNAT.Compiler_Version_(g-comver.ads)`:
compiles file :file:`x.adb` in syntax-check-only mode. You can check a
series of files in a single command
- , and can use wild cards to specify such a group of files.
+ , and can use wildcards to specify such a group of files.
Note that you must specify the :switch:`-c` (compile
only) flag in addition to the :switch:`-gnats` flag.
function Matches (S : String; P : String) return Boolean;
-- Returns true if the String S patches the pattern P, which can contain
- -- wild card chars (*). The entire pattern must match the entire string.
+ -- wildcard chars (*). The entire pattern must match the entire string.
-- Case is ignored in the comparison (so X matches x).
function Sloc_In_Range (Loc, Start, Stop : Source_Ptr) return Boolean;
Provides a high level interface to @code{Ada.Command_Line} facilities,
including the ability to scan for named switches with optional parameters
-and expand file names using wild card notations.
+and expand file names using wildcard notations.
@node GNAT Compiler_Version g-comver ads,GNAT Ctrl_C g-ctrl_c ads,GNAT Command_Line g-comlin ads,The GNAT Library
@anchor{gnat_rm/the_gnat_library gnat-compiler-version-g-comver-ads}@anchor{346}@anchor{gnat_rm/the_gnat_library id61}@anchor{347}
compiles file @code{x.adb} in syntax-check-only mode. You can check a
series of files in a single command
-, and can use wild cards to specify such a group of files.
+, and can use wildcards to specify such a group of files.
Note that you must specify the @code{-c} (compile
only) flag in addition to the @code{-gnats} flag.
Parser.Current_Argument := Parser.Current_Argument + 1;
- -- Could it be a file name with wild cards to expand?
+ -- Could it be a file name with wildcards to expand?
if Do_Expansion then
declare
-- function should not be called before Getopt has returned ASCII.NUL.
--
-- If Do_Expansion is True, then the parameter on the command line will
- -- be considered as a filename with wild cards, and will be expanded. The
+ -- be considered as a filename with wildcards, and will be expanded. The
-- matching file names will be returned one at a time. This is useful in
- -- non-Unix systems for obtaining normal expansion of wild card references.
+ -- non-Unix systems for obtaining normal expansion of wildcard references.
-- When there are no more arguments on the command line, this function
-- returns an empty string.
Pattern : String;
Directory : String := "";
Basic_Regexp : Boolean := True);
- -- Initialize a wild card expansion. The next calls to Expansion will
+ -- Initialize a wildcard expansion. The next calls to Expansion will
-- return the next file name in Directory which match Pattern (Pattern
-- is a regular expression, using only the Unix shell and DOS syntax if
-- Basic_Regexp is True). When Directory is an empty string, the current
-- matching with the restriction that it matches entire strings. It
-- is particularly useful for file name matching, and in particular
-- it provides "globbing patterns" that are useful in implementing
--- unix or DOS style wild card matching for file names.
+-- unix or DOS style wildcard matching for file names.
-- GNAT.Regpat (files g-regpat.ads/s-regpat.ads/g-regpat.adb)
-- This is a more complete implementation of Unix-style regular
-- matching with the restriction that it matches entire strings. It
-- is particularly useful for file name matching, and in particular
-- it provides "globbing patterns" that are useful in implementing
--- unix or DOS style wild card matching for file names.
+-- unix or DOS style wildcard matching for file names.
-- GNAT.Regpat (files g-regpat.ads/s-regpat.ads/s-regpat.adb)
-- This is a more complete implementation of Unix-style regular
-- matching with the restriction that it matches entire strings. It
-- is particularly useful for file name matching, and in particular
-- it provides "globbing patterns" that are useful in implementing
--- unix or DOS style wild card matching for file names.
+-- unix or DOS style wildcard matching for file names.
-- GNAT.Regpat (files g-regpat.ads/g-regpat.adb)
-- This is a more complete implementation of Unix-style regular
Success : out Boolean;
Mode : Copy_Mode := Copy;
Preserve : Attribute := Time_Stamps);
- -- Copy a file. Name must designate a single file (no wild cards allowed).
+ -- Copy a file. Name must designate a single file (no wildcards allowed).
-- Pathname can be a filename or directory name. In the latter case Name
-- is copied into the directory preserving the same file name. Mode
-- defines the kind of copy, see above with the default being a normal
-- See also regexp(1) man page on Unix systems for further details
-- A second kind of regular expressions is provided. This one is more
- -- like the wild card patterns used in file names by the Unix shell (or
+ -- like the wildcard patterns used in file names by the Unix shell (or
-- DOS prompt) command lines. The grammar is the following:
-- regexp ::= term