diff options
author | Bob Duff <duff@adacore.com> | 2021-09-03 09:25:46 -0400 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-10-04 08:45:10 +0000 |
commit | 39d7ff0fd7487bfb188f9e4c186076a106f995f8 (patch) | |
tree | 9c6db2bb9416d9aff7fd8f6b22a547b5339c4b60 /gcc | |
parent | be33050b866649569113ebd3d1805749dc3672fd (diff) | |
download | gcc-39d7ff0fd7487bfb188f9e4c186076a106f995f8.zip gcc-39d7ff0fd7487bfb188f9e4c186076a106f995f8.tar.gz gcc-39d7ff0fd7487bfb188f9e4c186076a106f995f8.tar.bz2 |
[Ada] Minor comment fix in System.Regpat
gcc/ada/
* libgnat/s-regpat.ads: Change Data_First to Data'First. Change
"still" to "always". Similar changes for Data_Last.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/libgnat/s-regpat.ads | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/ada/libgnat/s-regpat.ads b/gcc/ada/libgnat/s-regpat.ads index b1a1366f..8fac30a 100644 --- a/gcc/ada/libgnat/s-regpat.ads +++ b/gcc/ada/libgnat/s-regpat.ads @@ -482,18 +482,17 @@ package System.Regpat is -- Data_First is the lower bound for the match, i.e. Data (Data_First) -- will be the first character to be examined. If Data_First is set to -- the special value of -1 (the default), then the first character to - -- be examined is Data (Data_First). However, the regular expression - -- character ^ (start of string) still refers to the first character + -- be examined is Data (Data'First). However, the regular expression + -- character ^ (start of string) always refers to the first character -- of the full string (Data (Data'First)), which is why there is a -- separate mechanism for specifying Data_First. -- Data_Last is the upper bound for the match, i.e. Data (Data_Last) -- will be the last character to be examined. If Data_Last is set to -- the special value of Positive'Last (the default), then the last - -- character to be examined is Data (Data_Last). However, the regular - -- expression character $ (end of string) still refers to the last - -- character of the full string (Data (Data'Last)), which is why there - -- is a separate mechanism for specifying Data_Last. + -- character to be examined is Data (Data'Last). However, the regular + -- expression character $ (end of string) always refers to the last + -- character of the full string (Data (Data'Last)). -- Note: the use of Data_First and Data_Last is not equivalent to -- simply passing a slice as Expression because of the handling of |