diff options
Diffstat (limited to 'gcc/ada/a-strmap.ads')
-rw-r--r-- | gcc/ada/a-strmap.ads | 56 |
1 files changed, 24 insertions, 32 deletions
diff --git a/gcc/ada/a-strmap.ads b/gcc/ada/a-strmap.ads index 41cedea3b34..3e5adf27cf8 100644 --- a/gcc/ada/a-strmap.ads +++ b/gcc/ada/a-strmap.ads @@ -61,48 +61,44 @@ pragma Preelaborate (Maps); type Character_Ranges is array (Positive range <>) of Character_Range; - function To_Set (Ranges : in Character_Ranges) return Character_Set; + function To_Set (Ranges : Character_Ranges) return Character_Set; - function To_Set (Span : in Character_Range) return Character_Set; + function To_Set (Span : Character_Range) return Character_Set; - function To_Ranges (Set : in Character_Set) return Character_Ranges; + function To_Ranges (Set : Character_Set) return Character_Ranges; ---------------------------------- -- Operations on Character Sets -- ---------------------------------- - function "=" (Left, Right : in Character_Set) return Boolean; + function "=" (Left, Right : Character_Set) return Boolean; - function "not" (Right : in Character_Set) return Character_Set; - function "and" (Left, Right : in Character_Set) return Character_Set; - function "or" (Left, Right : in Character_Set) return Character_Set; - function "xor" (Left, Right : in Character_Set) return Character_Set; - function "-" (Left, Right : in Character_Set) return Character_Set; + function "not" (Right : Character_Set) return Character_Set; + function "and" (Left, Right : Character_Set) return Character_Set; + function "or" (Left, Right : Character_Set) return Character_Set; + function "xor" (Left, Right : Character_Set) return Character_Set; + function "-" (Left, Right : Character_Set) return Character_Set; function Is_In - (Element : in Character; - Set : in Character_Set) - return Boolean; + (Element : Character; + Set : Character_Set) return Boolean; function Is_Subset - (Elements : in Character_Set; - Set : in Character_Set) - return Boolean; + (Elements : Character_Set; + Set : Character_Set) return Boolean; function "<=" - (Left : in Character_Set; - Right : in Character_Set) - return Boolean + (Left : Character_Set; + Right : Character_Set) return Boolean renames Is_Subset; subtype Character_Sequence is String; -- Alternative representation for a set of character values - function To_Set (Sequence : in Character_Sequence) return Character_Set; + function To_Set (Sequence : Character_Sequence) return Character_Set; + function To_Set (Singleton : Character) return Character_Set; - function To_Set (Singleton : in Character) return Character_Set; - - function To_Sequence (Set : in Character_Set) return Character_Sequence; + function To_Sequence (Set : Character_Set) return Character_Sequence; ------------------------------------ -- Character Mapping Declarations -- @@ -112,9 +108,8 @@ pragma Preelaborate (Maps); -- Representation for a character to character mapping: function Value - (Map : in Character_Mapping; - Element : in Character) - return Character; + (Map : Character_Mapping; + Element : Character) return Character; Identity : constant Character_Mapping; @@ -123,19 +118,16 @@ pragma Preelaborate (Maps); ---------------------------- function To_Mapping - (From, To : in Character_Sequence) - return Character_Mapping; + (From, To : Character_Sequence) return Character_Mapping; function To_Domain - (Map : in Character_Mapping) - return Character_Sequence; + (Map : Character_Mapping) return Character_Sequence; function To_Range - (Map : in Character_Mapping) - return Character_Sequence; + (Map : Character_Mapping) return Character_Sequence; type Character_Mapping_Function is - access function (From : in Character) return Character; + access function (From : Character) return Character; private pragma Inline (Is_In); |