annotate gcc/ada/libgnat/a-stzsea.ads @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ------------------------------------------------------------------------------
kono
parents:
diff changeset
2 -- --
kono
parents:
diff changeset
3 -- GNAT RUN-TIME COMPONENTS --
kono
parents:
diff changeset
4 -- --
kono
parents:
diff changeset
5 -- A D A . S T R I N G S . W I D E _ W I D E _ S E A R C H --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- S p e c --
kono
parents:
diff changeset
8 -- --
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
9 -- Copyright (C) 1992-2018, Free Software Foundation, Inc. --
111
kono
parents:
diff changeset
10 -- --
kono
parents:
diff changeset
11 -- GNAT is free software; you can redistribute it and/or modify it under --
kono
parents:
diff changeset
12 -- terms of the GNU General Public License as published by the Free Soft- --
kono
parents:
diff changeset
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
kono
parents:
diff changeset
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
kono
parents:
diff changeset
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
kono
parents:
diff changeset
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
kono
parents:
diff changeset
17 -- --
kono
parents:
diff changeset
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
kono
parents:
diff changeset
19 -- additional permissions described in the GCC Runtime Library Exception, --
kono
parents:
diff changeset
20 -- version 3.1, as published by the Free Software Foundation. --
kono
parents:
diff changeset
21 -- --
kono
parents:
diff changeset
22 -- You should have received a copy of the GNU General Public License and --
kono
parents:
diff changeset
23 -- a copy of the GCC Runtime Library Exception along with this program; --
kono
parents:
diff changeset
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
kono
parents:
diff changeset
25 -- <http://www.gnu.org/licenses/>. --
kono
parents:
diff changeset
26 -- --
kono
parents:
diff changeset
27 -- GNAT was originally developed by the GNAT team at New York University. --
kono
parents:
diff changeset
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
kono
parents:
diff changeset
29 -- --
kono
parents:
diff changeset
30 ------------------------------------------------------------------------------
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 -- This package contains search functions from Ada.Strings.Wide_Wide_Fixed.
kono
parents:
diff changeset
33 -- They are separated because Ada.Strings.Wide_Wide_Bounded shares these
kono
parents:
diff changeset
34 -- search functions with Ada.Strings.Wide_Wide_Unbounded, and we don't want to
kono
parents:
diff changeset
35 -- drag in other irrelevant stuff from Ada.Strings.Wide_Wide_Fixed when using
kono
parents:
diff changeset
36 -- the other two packages. We make this a private package, since user programs
kono
parents:
diff changeset
37 -- should access these subprograms via one of the standard string packages.
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 with Ada.Strings.Wide_Wide_Maps;
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 private package Ada.Strings.Wide_Wide_Search is
kono
parents:
diff changeset
42 pragma Preelaborate;
kono
parents:
diff changeset
43
kono
parents:
diff changeset
44 function Index
kono
parents:
diff changeset
45 (Source : Wide_Wide_String;
kono
parents:
diff changeset
46 Pattern : Wide_Wide_String;
kono
parents:
diff changeset
47 Going : Direction := Forward;
kono
parents:
diff changeset
48 Mapping : Wide_Wide_Maps.Wide_Wide_Character_Mapping :=
kono
parents:
diff changeset
49 Wide_Wide_Maps.Identity) return Natural;
kono
parents:
diff changeset
50
kono
parents:
diff changeset
51 function Index
kono
parents:
diff changeset
52 (Source : Wide_Wide_String;
kono
parents:
diff changeset
53 Pattern : Wide_Wide_String;
kono
parents:
diff changeset
54 Going : Direction := Forward;
kono
parents:
diff changeset
55 Mapping : Wide_Wide_Maps.Wide_Wide_Character_Mapping_Function)
kono
parents:
diff changeset
56 return Natural;
kono
parents:
diff changeset
57
kono
parents:
diff changeset
58 function Index
kono
parents:
diff changeset
59 (Source : Wide_Wide_String;
kono
parents:
diff changeset
60 Set : Wide_Wide_Maps.Wide_Wide_Character_Set;
kono
parents:
diff changeset
61 Test : Membership := Inside;
kono
parents:
diff changeset
62 Going : Direction := Forward) return Natural;
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 function Index
kono
parents:
diff changeset
65 (Source : Wide_Wide_String;
kono
parents:
diff changeset
66 Pattern : Wide_Wide_String;
kono
parents:
diff changeset
67 From : Positive;
kono
parents:
diff changeset
68 Going : Direction := Forward;
kono
parents:
diff changeset
69 Mapping : Wide_Wide_Maps.Wide_Wide_Character_Mapping :=
kono
parents:
diff changeset
70 Wide_Wide_Maps.Identity)
kono
parents:
diff changeset
71 return Natural;
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 function Index
kono
parents:
diff changeset
74 (Source : Wide_Wide_String;
kono
parents:
diff changeset
75 Pattern : Wide_Wide_String;
kono
parents:
diff changeset
76 From : Positive;
kono
parents:
diff changeset
77 Going : Direction := Forward;
kono
parents:
diff changeset
78 Mapping : Wide_Wide_Maps.Wide_Wide_Character_Mapping_Function)
kono
parents:
diff changeset
79 return Natural;
kono
parents:
diff changeset
80
kono
parents:
diff changeset
81 function Index
kono
parents:
diff changeset
82 (Source : Wide_Wide_String;
kono
parents:
diff changeset
83 Set : Wide_Wide_Maps.Wide_Wide_Character_Set;
kono
parents:
diff changeset
84 From : Positive;
kono
parents:
diff changeset
85 Test : Membership := Inside;
kono
parents:
diff changeset
86 Going : Direction := Forward) return Natural;
kono
parents:
diff changeset
87
kono
parents:
diff changeset
88 function Index_Non_Blank
kono
parents:
diff changeset
89 (Source : Wide_Wide_String;
kono
parents:
diff changeset
90 Going : Direction := Forward) return Natural;
kono
parents:
diff changeset
91
kono
parents:
diff changeset
92 function Index_Non_Blank
kono
parents:
diff changeset
93 (Source : Wide_Wide_String;
kono
parents:
diff changeset
94 From : Positive;
kono
parents:
diff changeset
95 Going : Direction := Forward) return Natural;
kono
parents:
diff changeset
96
kono
parents:
diff changeset
97 function Count
kono
parents:
diff changeset
98 (Source : Wide_Wide_String;
kono
parents:
diff changeset
99 Pattern : Wide_Wide_String;
kono
parents:
diff changeset
100 Mapping : Wide_Wide_Maps.Wide_Wide_Character_Mapping :=
kono
parents:
diff changeset
101 Wide_Wide_Maps.Identity)
kono
parents:
diff changeset
102 return Natural;
kono
parents:
diff changeset
103
kono
parents:
diff changeset
104 function Count
kono
parents:
diff changeset
105 (Source : Wide_Wide_String;
kono
parents:
diff changeset
106 Pattern : Wide_Wide_String;
kono
parents:
diff changeset
107 Mapping : Wide_Wide_Maps.Wide_Wide_Character_Mapping_Function)
kono
parents:
diff changeset
108 return Natural;
kono
parents:
diff changeset
109
kono
parents:
diff changeset
110 function Count
kono
parents:
diff changeset
111 (Source : Wide_Wide_String;
kono
parents:
diff changeset
112 Set : Wide_Wide_Maps.Wide_Wide_Character_Set) return Natural;
kono
parents:
diff changeset
113
kono
parents:
diff changeset
114 procedure Find_Token
kono
parents:
diff changeset
115 (Source : Wide_Wide_String;
kono
parents:
diff changeset
116 Set : Wide_Wide_Maps.Wide_Wide_Character_Set;
kono
parents:
diff changeset
117 From : Positive;
kono
parents:
diff changeset
118 Test : Membership;
kono
parents:
diff changeset
119 First : out Positive;
kono
parents:
diff changeset
120 Last : out Natural);
kono
parents:
diff changeset
121
kono
parents:
diff changeset
122 procedure Find_Token
kono
parents:
diff changeset
123 (Source : Wide_Wide_String;
kono
parents:
diff changeset
124 Set : Wide_Wide_Maps.Wide_Wide_Character_Set;
kono
parents:
diff changeset
125 Test : Membership;
kono
parents:
diff changeset
126 First : out Positive;
kono
parents:
diff changeset
127 Last : out Natural);
kono
parents:
diff changeset
128
kono
parents:
diff changeset
129 end Ada.Strings.Wide_Wide_Search;