1 | /* |
2 | * |
3 | * Copyright (c) 2003 Dr John Maddock |
4 | * Use, modification and distribution is subject to the |
5 | * Boost Software License, Version 1.0. (See accompanying file |
6 | * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
7 | * |
8 | * boostinspect:noascii |
9 | */ |
10 | |
11 | #include "licence_info.hpp" |
12 | |
13 | |
14 | std::pair<const license_info*, int> get_licenses() |
15 | { |
16 | static const char* generic_author_sig = |
17 | "(?:" |
18 | "(?:" |
19 | "Copyright|\\(c\\)|\xA9" |
20 | ")[[:blank:]]+" |
21 | "){1,2}" |
22 | "(?:" |
23 | "\\d[^[:alpha:]]+" |
24 | "([[:alpha:]]" |
25 | "(?:" |
26 | "(?!Use\\b|Permission\\b|All\\b|<P|(?:-\\s*)\\w+(?:://|@)|\\\\" |
27 | ")[^\\n\\d]" |
28 | ")+" |
29 | ")" |
30 | "|" |
31 | "([[:alpha:]][^\\n\\d]+" |
32 | "(?:\\n[^\\n\\d]+" |
33 | ")??" |
34 | ")(?:19|20)\\d{2}" |
35 | ")" |
36 | "|" |
37 | "Authors:[[:blank:]]+" |
38 | "([[:alpha:]][^\\n\\d]+" |
39 | "|" |
40 | "((?:The|This) code is considered to be in the public domain)" |
41 | ")" ; |
42 | |
43 | static const char* generic_author_format = |
44 | "(?1$1)(?2$2)(?3$3)(?4Public Domain)" ; |
45 | |
46 | static const license_info licenses[] = |
47 | { |
48 | license_info( boost::regex("distributed\\W+under" |
49 | "(\\W+the)?[^\"[:word:]]+Boost\\W+Software\\W+License\\W+Version\\W+1.0" , boost::regex::perl | boost::regex::icase) |
50 | , |
51 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
52 | , |
53 | generic_author_format |
54 | , |
55 | "Boost Software License, Version 1.0" |
56 | , |
57 | "<P>Copyright (c) <I>Date</I> <I>Author</I></P>" |
58 | "<P>Distributed under the " |
59 | "Boost Software License, Version 1.0. (See accompanying file " |
60 | "LICENSE_1_0.txt or copy at <a href=\"http://www.boost.org/LICENSE_1_0.txt\">http://www.boost.org/LICENSE_1_0.txt)</a></P>" |
61 | ) |
62 | , |
63 | license_info( boost::regex("Use\\W+\\modification\\W+and\\W+distribution(\\W+is|\\W+are)\\W+subject\\W+to" |
64 | "(\\W+the)?[^\"[:word:]]+Boost\\W+Software\\W+License\\W+Version\\W+1.0" , boost::regex::perl | boost::regex::icase) |
65 | , |
66 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
67 | , |
68 | generic_author_format |
69 | , |
70 | "Boost Software License, Version 1.0 (variant #1)" |
71 | , |
72 | "<P>Copyright (c) <I>Date</I> <I>Author</I></P>" |
73 | "<P>Use, modification and distribution is subject to the " |
74 | "Boost Software License, Version 1.0. (See accompanying file " |
75 | "LICENSE_1_0.txt or copy at <a href=\"http://www.boost.org/LICENSE_1_0.txt\">http://www.boost.org/LICENSE_1_0.txt)</a></P>" |
76 | ) |
77 | , |
78 | license_info( boost::regex("(?!is)\\w\\w\\W+subject\\W+to" |
79 | "(\\W+the)?[^\"[:word:]]+Boost\\W+Software\\W+License\\W+Version\\W+1.0" , boost::regex::perl | boost::regex::icase) |
80 | , |
81 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
82 | , |
83 | generic_author_format |
84 | , |
85 | "Boost Software License, Version 1.0 (variant #2)" |
86 | , |
87 | "<P>Copyright (c) <I>Date</I> <I>Author</I></P>" |
88 | "<P>Subject to the " |
89 | "Boost Software License, Version 1.0. (See accompanying file " |
90 | "LICENSE_1_0.txt or copy at <a href=\"http://www.boost.org/LICENSE_1_0.txt\">http://www.boost.org/LICENSE_1_0.txt)</a></P>" |
91 | ) |
92 | , |
93 | license_info( boost::regex("Copyright\\W+(c)\\W+2001\\W+2002\\W+Python\\W+Software\\W+Foundation\\W+All\\W+Rights\\W+Reserved" , boost::regex::perl | boost::regex::icase) |
94 | , |
95 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
96 | , |
97 | generic_author_format |
98 | , |
99 | "Python Software License" |
100 | , |
101 | "<p>Copyright (c) 2001, 2002 Python Software Foundation;</p>" |
102 | "<P>All Rights Reserved</P>" |
103 | ) |
104 | , |
105 | license_info( boost::regex("Permission\\W+to\\W+use\\W+copy\\W+modify\\W+distribute\\W+and\\W+sell\\W+this\\W+software\\W+and\\W+its\\W+documentation" |
106 | "\\W+for\\W+any\\W+purpose\\W+is\\W+hereby\\W+granted\\W+without\\W+fee" |
107 | "\\W+provided\\W+that\\W+the\\W+above\\W+copyright\\W+notice\\W+appears?\\W+in\\W+all\\W+copies\\W+and" |
108 | "\\W+that\\W+both\\W+(the|that)\\W+copyright\\W+notice\\W+and\\W+this\\W+permission\\W+notice\\W+appears?" |
109 | "\\W+in\\W+supporting\\W+documentation[^<>]{1, 100}\\W+no\\W+representations" |
110 | "\\W+(are\\W+made\\W+)?about\\W+the\\W+suitability\\W+of\\W+this\\W+software\\W+for\\W+any\\W+purpose" |
111 | "\\W+It\\W+is\\W+provided\\W+as\\W+is\\W+without\\W+express\\W+or\\W+implied\\W+warranty" |
112 | , boost::regex::perl | boost::regex::icase) |
113 | , |
114 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
115 | , |
116 | generic_author_format |
117 | , |
118 | "SGI Style License" |
119 | , |
120 | "<P>Copyright (c) <I>Date</I><BR>" |
121 | "<I>Author</I><BR>" |
122 | "<BR>" |
123 | "Permission to use, copy, modify, distribute and sell this software " |
124 | "and its documentation for any purpose is hereby granted without fee, " |
125 | "provided that the above copyright notice appear in all copies and " |
126 | "that both that copyright notice and this permission notice appear " |
127 | "in supporting documentation. <I>Author</I> makes no representations " |
128 | "about the suitability of this software for any purpose. " |
129 | "It is provided \"as is\" without express or implied warranty.</P>" |
130 | ) |
131 | , |
132 | license_info( boost::regex("Permission\\W+to\\W+use\\W+copy\\W+modify\\W+distribute\\W+and\\W+sell\\W+this\\W+software" |
133 | "\\W+for\\W+any\\W+purpose\\W+is\\W+hereby\\W+granted\\W+without\\W+fee" |
134 | "\\W+provided\\W+that\\W+the\\W+above\\W+copyright\\W+notice\\W+appears?\\W+in\\W+all\\W+copies\\W+and" |
135 | "\\W+that\\W+both\\W+(the|that)\\W+copyright\\W+notice\\W+and\\W+this\\W+permission\\W+notice\\W+appears?" |
136 | "\\W+in\\W+supporting\\W+documentation[^<>]{1, 100}\\W+no\\W+representations" |
137 | "\\W+(are\\W+made\\W+)?about\\W+the\\W+suitability\\W+of\\W+this\\W+software\\W+for\\W+any\\W+purpose" |
138 | "\\W+It\\W+is\\W+provided\\W+as\\W+is\\W+without\\W+express(ed)?\\W+or\\W+implied\\W+warranty" , boost::regex::perl | boost::regex::icase) |
139 | , |
140 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
141 | , |
142 | generic_author_format |
143 | , |
144 | "Old style Boost license #1" |
145 | , |
146 | "<P>Copyright (c) <I>Date</I><BR>" |
147 | "<I>Author</I><BR>" |
148 | "<BR>" |
149 | "Permission to use, copy, modify, distribute and sell this software " |
150 | "for any purpose is hereby granted without fee, " |
151 | "provided that the above copyright notice appear in all copies and " |
152 | "that both that copyright notice and this permission notice appears? " |
153 | "in supporting documentation. <I>Author</I> makes no representations " |
154 | "about the suitability of this software for any purpose. " |
155 | "It is provided \"as is\" without express or implied warranty.</P>" |
156 | ) |
157 | , |
158 | license_info( |
159 | boost::regex( |
160 | "Permission\\W+to\\W+copy\\W+use\\W+modify\\W+sell\\W+and\\W+distribute\\W+this\\W+software" |
161 | "\\W+is\\W+granted\\W+provided\\W+this\\W+copyright\\W+notice\\W+appears\\W+in\\W+all\\W+copies" |
162 | "\\W+This\\W+software\\W+is\\W+provided\\W+as\\W+is\\W+without\\W+express\\W+or\\W+implied" |
163 | "\\W+warranty\\W+and\\W+with\\W+no\\W+claim\\W+as\\W+to\\W+its\\W+suitability\\W+for\\W+any\\W+purpose" |
164 | , boost::regex::perl | boost::regex::icase |
165 | ) |
166 | , |
167 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
168 | , |
169 | generic_author_format |
170 | , |
171 | "Old style Boost license #2" |
172 | , |
173 | "<P>Copyright (c) <I>Date</I> <I>Author</I>.<BR><BR>\n" |
174 | "Permission to copy, use, modify, sell and distribute this software<BR>\n" |
175 | "is granted provided this copyright notice appears in all copies.<BR>\n" |
176 | "This software is provided \"as is\" without express or implied<BR>\n" |
177 | "warranty, and with no claim as to its suitability for any purpose.</P>\n" |
178 | ) |
179 | , |
180 | license_info( |
181 | boost::regex( |
182 | "Permission\\W+to\\W+copy\\W+use[^\"[:word:]]+modify\\W+sell\\W+and\\W+distribute\\W+this\\W+software\\W+is\\W+granted\\W+provided" |
183 | "\\W+this\\W+copyright\\W+notice\\W+appears\\W+in\\W+all\\W+copies\\W+This\\W+software\\W+is" |
184 | "\\W+provided\\W+as\\W+is\\W+without\\W+express\\W+or\\W+implied\\W+warranty\\W+and\\W+with" |
185 | "\\W+no\\W+claim\\W+at\\W+to\\W+its\\W+suitability\\W+for\\W+any\\W+purpose" |
186 | , boost::regex::perl | boost::regex::icase |
187 | ) |
188 | , |
189 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
190 | , |
191 | generic_author_format |
192 | , |
193 | "Old style Boost license #3" |
194 | , |
195 | "<P>(C) Copyright <I>Author</I> <I>Date</I>. Permission to copy, use, " |
196 | "modify, sell, and distribute this software is granted provided " |
197 | "this copyright notice appears in all copies. This software is " |
198 | "provided \"as is\" without express or implied warranty, and with " |
199 | "no claim at to its suitability for any purpose.</p>\n" |
200 | ) |
201 | , |
202 | license_info( boost::regex("Permission\\W+to\\W+copy\\W+use\\W+sell\\W+and\\W+distribute\\W+this\\W+software\\W+is\\W+granted" |
203 | "\\W+provided\\W+this\\W+copyright\\W+notice\\W+appears\\W+in\\W+all\\W+copies" |
204 | "\\W+Permission\\W+to\\W+modify\\W+the\\W+code\\W+and\\W+to\\W+distribute\\W+modified\\W+code\\W+is\\W+granted" |
205 | "\\W+provided\\W+this\\W+copyright\\W+notice\\W+appears\\W+in\\W+all\\W+copies\\W+and\\W+a\\W+notice" |
206 | "\\W+that\\W+the\\W+code\\W+was\\W+modified\\W+is\\W+included\\W+with\\W+the\\W+copyright\\W+notice" |
207 | "\\W+This\\W+software\\W+is\\W+provided\\W+as\\W+is\\W+without\\W+express\\W+or\\W+implied\\W+warranty\\W+and\\W+with\\W+no\\W+claim\\W+as\\W+to\\W+its\\W+suitability\\W+for\\W+any\\W+purpose" |
208 | , boost::regex::perl | boost::regex::icase) |
209 | , |
210 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
211 | , |
212 | generic_author_format |
213 | , |
214 | "Old style Boost license #4" |
215 | , |
216 | "<P>Copyright (C) <I>Date Author</I><BR>" |
217 | "<BR>" |
218 | "Permission to copy, use, sell and distribute this software is granted\n" |
219 | "provided this copyright notice appears in all copies.\n" |
220 | "Permission to modify the code and to distribute modified code is granted\n" |
221 | "provided this copyright notice appears in all copies, and a notice\n" |
222 | "that the code was modified is included with the copyright notice.</P>\n" |
223 | "<P>This software is provided \"as is\" without express or implied warranty,\n" |
224 | "and with no claim as to its suitability for any purpose.</P>" |
225 | ) |
226 | , |
227 | license_info( boost::regex("This\\W+file\\W+is\\W+part\\W+of\\W+the\\W+(Boost\\W+Graph|Generic\\W+Graph\\W+Component)\\W+Library" |
228 | "\\W+You\\W+should\\W+have\\W+received\\W+a\\W+copy\\W+of\\W+the\\W+License\\W+Agreement\\W+for\\W+the" |
229 | "\\W+(Boost|Generic)\\W+Graph\\W+(Component\\W+)?Library\\W+along\\W+with\\W+the\\W+software;\\W+see\\W+the\\W+file\\W+LICENSE" |
230 | "(\\W+If\\W+not\\W+contact\\W+Office\\W+of\\W+Research\\W+University\\W+of\\W+Notre\\W+Dame\\W+Notre" |
231 | "\\W+Dame\\W+IN\\W+46556)?" |
232 | "\\W+Permission\\W+to\\W+modify\\W+the\\W+code\\W+and\\W+to\\W+distribute(\\W+modified|\\W+the)\\W+code\\W+is" |
233 | "\\W+granted\\W+provided\\W+the\\W+text\\W+of\\W+this\\W+NOTICE\\W+is\\W+retained\\W+a\\W+notice\\W+(that|if)" |
234 | "\\W+the\\W+code\\W+was\\W+modified\\W+is\\W+included\\W+with\\W+the\\W+above\\W+COPYRIGHT\\W+NOTICE\\W+and" |
235 | "\\W+with\\W+the\\W+COPYRIGHT\\W+NOTICE\\W+in\\W+the\\W+LICENSE\\W+file\\W+and\\W+that\\W+the\\W+LICENSE" |
236 | "\\W+file\\W+is\\W+distributed\\W+with\\W+the\\W+modified\\W+code\\W+" |
237 | "\\W+LICENSOR\\W+MAKES\\W+NO\\W+REPRESENTATIONS\\W+OR\\W+WARRANTIES\\W+EXPRESS\\W+OR\\W+IMPLIED" |
238 | "\\W+By\\W+way\\W+of\\W+example\\W+but\\W+not\\W+limitation\\W+Licensor\\W+MAKES\\W+NO" |
239 | "\\W+REPRESENTATIONS\\W+OR\\W+WARRANTIES\\W+OF\\W+MERCHANTABILITY\\W+OR\\W+FITNESS\\W+FOR\\W+ANY" |
240 | "\\W+PARTICULAR\\W+PURPOSE\\W+OR\\W+THAT\\W+THE\\W+USE\\W+OF\\W+THE\\W+LICENSED\\W+SOFTWARE\\W+COMPONENTS" |
241 | "\\W+OR\\W+DOCUMENTATION\\W+WILL\\W+NOT\\W+INFRINGE\\W+ANY\\W+PATENTS\\W+COPYRIGHTS\\W+TRADEMARKS" |
242 | "\\W+OR\\W+OTHER\\W+RIGHTS" |
243 | , boost::regex::perl | boost::regex::icase) |
244 | , |
245 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
246 | , |
247 | generic_author_format |
248 | , |
249 | "Boost.Graph license (Notre Dame)" |
250 | , |
251 | "<P>Copyright <I>Date</I> University of Notre Dame.<BR>" |
252 | "Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek</P>" |
253 | "<P>This file is part of the Boost Graph Library</P>" |
254 | "<P>You should have received a copy of the <A href=\"http://www.boost.org/libs/graph/LICENCE\">License Agreement</a> for the " |
255 | "Boost Graph Library along with the software; see the file <A href=\"http://www.boost.org/libs/graph/LICENCE\">LICENSE</a>. " |
256 | "If not, contact Office of Research, University of Notre Dame, Notre " |
257 | "Dame, IN 46556.</P>" |
258 | "<P>Permission to modify the code and to distribute modified code is " |
259 | "granted, provided the text of this NOTICE is retained, a notice that " |
260 | "the code was modified is included with the above COPYRIGHT NOTICE and " |
261 | "with the COPYRIGHT NOTICE in the <A href=\"http://www.boost.org/libs/graph/LICENCE\">LICENSE</a> file, and that the <A href=\"http://www.boost.org/libs/graph/LICENCE\">LICENSE</a> " |
262 | "file is distributed with the modified code.</P>" |
263 | "<P>LICENSOR MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.<BR> " |
264 | "By way of example, but not limitation, Licensor MAKES NO " |
265 | "REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY " |
266 | "PARTICULAR PURPOSE OR THAT THE USE OF THE LICENSED SOFTWARE COMPONENTS " |
267 | "OR DOCUMENTATION WILL NOT INFRINGE ANY PATENTS, COPYRIGHTS, TRADEMARKS " |
268 | "OR OTHER RIGHTS.</P>" |
269 | ) |
270 | , |
271 | license_info( boost::regex("This\\W+file\\W+is\\W+part\\W+of\\W+the\\W+(Boost\\W+Graph|Generic\\W+Graph\\W+Component)\\W+Library" |
272 | "\\W+You\\W+should\\W+have\\W+received\\W+a\\W+copy\\W+of\\W+the\\W+License\\W+Agreement\\W+for\\W+the" |
273 | "\\W+(Boost|Generic)\\W+Graph\\W+(Component\\W+)?Library\\W+along\\W+with\\W+the\\W+software;\\W+see\\W+the\\W+file\\W+LICENSE" |
274 | "(\\W+If\\W+not\\W+contact\\W+Office\\W+of\\W+Research\\W+Indiana\\W+University\\W+Bloomington\\W+IN\\W+47405)?" |
275 | "\\W+Permission\\W+to\\W+modify\\W+the\\W+code\\W+and\\W+to\\W+distribute(\\W+modified|\\W+the)\\W+code\\W+is" |
276 | "\\W+granted\\W+provided\\W+the\\W+text\\W+of\\W+this\\W+NOTICE\\W+is\\W+retained\\W+a\\W+notice\\W+(that|if)" |
277 | "\\W+the\\W+code\\W+was\\W+modified\\W+is\\W+included\\W+with\\W+the\\W+above\\W+COPYRIGHT\\W+NOTICE\\W+and" |
278 | "\\W+with\\W+the\\W+COPYRIGHT\\W+NOTICE\\W+in\\W+the\\W+LICENSE\\W+file\\W+and\\W+that\\W+the\\W+LICENSE" |
279 | "\\W+file\\W+is\\W+distributed\\W+with\\W+the\\W+modified\\W+code\\W+" |
280 | "\\W+LICENSOR\\W+MAKES\\W+NO\\W+REPRESENTATIONS\\W+OR\\W+WARRANTIES\\W+EXPRESS\\W+OR\\W+IMPLIED" |
281 | "\\W+By\\W+way\\W+of\\W+example\\W+but\\W+not\\W+limitation\\W+Licensor\\W+MAKES\\W+NO" |
282 | "\\W+REPRESENTATIONS\\W+OR\\W+WARRANTIES\\W+OF\\W+MERCHANTABILITY\\W+OR\\W+FITNESS\\W+FOR\\W+ANY" |
283 | "\\W+PARTICULAR\\W+PURPOSE\\W+OR\\W+THAT\\W+THE\\W+USE\\W+OF\\W+THE\\W+LICENSED\\W+SOFTWARE\\W+COMPONENTS" |
284 | "\\W+OR\\W+DOCUMENTATION\\W+WILL\\W+NOT\\W+INFRINGE\\W+ANY\\W+PATENTS\\W+COPYRIGHTS\\W+TRADEMARKS" |
285 | "\\W+OR\\W+OTHER\\W+RIGHTS" |
286 | , boost::regex::perl | boost::regex::icase) |
287 | , |
288 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
289 | , |
290 | generic_author_format |
291 | , |
292 | "Boost.Graph license (Indiana University)" |
293 | , |
294 | "<P>Copyright <I>Date</I> Indiana University.<BR>" |
295 | "Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek</P>" |
296 | "<P>This file is part of the Boost Graph Library</P>" |
297 | "<P>You should have received a copy of the <A href=\"http://www.boost.org/libs/graph/LICENCE\">License Agreement</a> for the " |
298 | "Boost Graph Library along with the software; see the file <A href=\"http://www.boost.org/libs/graph/LICENCE\">LICENSE</a>. " |
299 | "If not, contact Office of Research, Indiana University, Bloomington," |
300 | "IN 47404.</P>" |
301 | "<P>Permission to modify the code and to distribute modified code is " |
302 | "granted, provided the text of this NOTICE is retained, a notice that " |
303 | "the code was modified is included with the above COPYRIGHT NOTICE and " |
304 | "with the COPYRIGHT NOTICE in the <A href=\"http://www.boost.org/libs/graph/LICENCE\">LICENSE</a> file, and that the <A href=\"http://www.boost.org/libs/graph/LICENCE\">LICENSE</a> " |
305 | "file is distributed with the modified code.</P>" |
306 | "<P>LICENSOR MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.<BR> " |
307 | "By way of example, but not limitation, Licensor MAKES NO " |
308 | "REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY " |
309 | "PARTICULAR PURPOSE OR THAT THE USE OF THE LICENSED SOFTWARE COMPONENTS " |
310 | "OR DOCUMENTATION WILL NOT INFRINGE ANY PATENTS, COPYRIGHTS, TRADEMARKS " |
311 | "OR OTHER RIGHTS.</P>" |
312 | ) |
313 | , |
314 | license_info( boost::regex("Permission\\W+to\\W+copy\\W+use\\W+modify\\W+sell\\W+and\\W+distribute\\W+this\\W+software\\W+is" |
315 | "[^\"[:word:]]+granted\\W+provided\\W+this\\W+copyright\\W+notice\\W+appears\\W+in\\W+all\\W+copies\\W+and" |
316 | "\\W+modified\\W+version\\W+are\\W+clearly\\W+marked\\W+as\\W+such\\W+This\\W+software\\W+is\\W+provided" |
317 | "\\W+as\\W+is\\W+without\\W+express\\W+or\\W+implied\\W+warranty\\W+and\\W+with\\W+no\\W+claim\\W+as\\W+to\\W+its" |
318 | "\\W+suitability\\W+for\\W+any\\W+purpose" |
319 | , boost::regex::perl | boost::regex::icase) |
320 | , |
321 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
322 | , |
323 | generic_author_format |
324 | , |
325 | "Old style Boost license #5" |
326 | , |
327 | "<P>Copyright (C) <I>Date Author</I></P>" |
328 | "<p>Permission to copy, use, modify, sell and distribute this software is " |
329 | "granted, provided this copyright notice appears in all copies and " |
330 | "modified version are clearly marked as such. This software is provided " |
331 | "\"as is\" without express or implied warranty, and with no claim as to its " |
332 | "suitability for any purpose.</P>" |
333 | ) |
334 | , |
335 | license_info( boost::regex("This\\W+file\\W+can\\W+be\\W+redistributed\\W+and\\W+or\\W+modified\\W+under\\W+the\\W+terms\\W+found" |
336 | "\\W+in\\W+copyright\\W+html" |
337 | "\\W+This\\W+software\\W+and\\W+its\\W+documentation\\W+is\\W+provided\\W+as\\W+is\\W+without\\W+express\\W+or" |
338 | "\\W+implied\\W+warranty\\W+and\\W+with\\W+no\\W+claim\\W+as\\W+to\\W+its\\W+suitability\\W+for\\W+any\\W+purpose" |
339 | , boost::regex::perl | boost::regex::icase) |
340 | , |
341 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
342 | , |
343 | generic_author_format |
344 | , |
345 | "Boost.Pool license" |
346 | , |
347 | "<P>This file can be redistributed and/or modified under the terms found " |
348 | "in <a href=\"http://www.boost.org/libs/pool/doc/copyright.html\">copyright.html</a></P>\n" |
349 | "<P>This software and its documentation is provided \"as is\" without express or " |
350 | "implied warranty, and with no claim as to its suitability for any purpose</P>" |
351 | ) |
352 | , |
353 | license_info(boost::regex("Permission\\W+to\\W+use\\W+copy\\W+modify\\W+sell\\W+and\\W+distribute\\W+this\\W+software" |
354 | "\\W+is\\W+hereby\\W+granted\\W+without\\W+fee\\W+provided\\W+that\\W+the\\W+above\\W+copyright\\W+notice" |
355 | "\\W+appears\\W+in\\W+all\\W+copies\\W+and\\W+that\\W+both\\W+that\\W+copyright\\W+notice\\W+and\\W+this" |
356 | "\\W+permission\\W+notice\\W+appear\\W+in\\W+supporting\\W+documentation" |
357 | "[^<>]{1,100}\\W+(make\\W+any\\W+representation|makes\\W+no\\W+representations)\\W+about\\W+the\\W+suitability\\W+of\\W+this" |
358 | "\\W+software\\W+for\\W+any\\W+purpose\\W+It\\W+is\\W+provided\\W+as\\W+is\\W+without\\W+express\\W+or" |
359 | "\\W+implied\\W+warranty" |
360 | , boost::regex::perl | boost::regex::icase) |
361 | , |
362 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
363 | , |
364 | generic_author_format |
365 | , |
366 | "Old style Boost license #6" |
367 | , |
368 | "<P>Copyright <I>Author Data</I></P>" |
369 | "<P>Permission to use, copy, modify, sell, and distribute this software " |
370 | "is hereby granted without fee provided that the above copyright notice " |
371 | "appears in all copies and that both that copyright notice and this " |
372 | "permission notice appear in supporting documentation, " |
373 | "<I>Author</I> makes no representations about the suitability of this " |
374 | "software for any purpose. It is provided \"as is\" without express or " |
375 | "implied warranty.</P>" |
376 | ) |
377 | , |
378 | license_info( boost::regex("Permission\\W+to\\W+copy" |
379 | "[^\"[:word:]]+use\\W+modify\\W+sell\\W+and\\W+distribute\\W+this\\W+software\\W+is\\W+granted\\W+provided" |
380 | "\\W+this\\W+copyright\\W+notice\\W+appears\\W+in\\W+all\\W+copies\\W+of\\W+the\\W+source\\W+This" |
381 | "\\W+software\\W+is\\W+provided\\W+as\\W+is\\W+without\\W+express\\W+or\\W+implied\\W+warranty" |
382 | "\\W+and\\W+with\\W+no\\W+claim\\W+as\\W+to\\W+its\\W+suitability\\W+for\\W+any\\W+purpose" |
383 | , boost::regex::perl | boost::regex::icase) |
384 | , |
385 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
386 | , |
387 | generic_author_format |
388 | , |
389 | "Old style Boost license #7" |
390 | , |
391 | "<P>Copyright <I>Author Date</I>. Permission to copy, " |
392 | "use, modify, sell and distribute this software is granted provided " |
393 | "this copyright notice appears in all copies of the source. This " |
394 | "software is provided \"as is\" without express or implied warranty, " |
395 | "and with no claim as to its suitability for any purpose." |
396 | ) |
397 | , |
398 | license_info(boost::regex("This\\W+software\\W+is\\W+provided\\W+as-is\\W+without\\W+any\\W+express\\W+or\\W+implied" |
399 | "\\W+warranty\\W+In\\W+no\\W+event\\W+will\\W+the\\W+copyright\\W+holder\\W+be\\W+held\\W+liable\\W+for" |
400 | "\\W+any\\W+damages\\W+arising\\W+from\\W+the\\W+use\\W+of\\W+this\\W+software" |
401 | "\\W+Permission\\W+is\\W+granted\\W+to\\W+anyone\\W+to\\W+use\\W+this\\W+software\\W+for\\W+any\\W+purpose" |
402 | "\\W+including\\W+commercial\\W+applications\\W+and\\W+to\\W+alter\\W+it\\W+and\\W+redistribute" |
403 | "\\W+it\\W+freely\\W+subject\\W+to\\W+the\\W+following\\W+restrictions:" |
404 | "\\W+1\\W+The\\W+origin\\W+of\\W+this\\W+software\\W+must\\W+not\\W+be\\W+misrepresented;\\W+you\\W+must" |
405 | "\\W+not\\W+claim\\W+that\\W+you\\W+wrote\\W+the\\W+original\\W+software\\W+If\\W+you\\W+use\\W+this" |
406 | "\\W+software\\W+in\\W+a\\W+product\\W+an\\W+acknowledgment\\W+in\\W+the\\W+product\\W+documentation" |
407 | "\\W+would\\W+be\\W+appreciated\\W+but\\W+is\\W+not\\W+required" |
408 | "\\W+2\\W+Altered\\W+source\\W+versions\\W+must\\W+be\\W+plainly\\W+marked\\W+as\\W+such\\W+and\\W+must" |
409 | "\\W+not\\W+be\\W+misrepresented\\W+as\\W+being\\W+the\\W+original\\W+software" |
410 | "\\W+3\\W+This\\W+notice\\W+may\\W+not\\W+be\\W+removed\\W+or\\W+altered\\W+from\\W+any\\W+source" |
411 | "\\W+distribution" |
412 | , boost::regex::perl | boost::regex::icase) |
413 | , |
414 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
415 | , |
416 | generic_author_format |
417 | , |
418 | "Old style Boost license #8" |
419 | , |
420 | "<P>Phoenix V0.9<BR>Copyright (c) <I>Date</I> Joel de Guzman</P>" |
421 | "<P>This software is provided 'as-is', without any express or implied " |
422 | "warranty. In no event will the copyright holder be held liable for " |
423 | "any damages arising from the use of this software.</P>" |
424 | "<P>Permission is granted to anyone to use this software for any purpose, " |
425 | "including commercial applications, and to alter it and redistribute " |
426 | "it freely, subject to the following restrictions:</P>" |
427 | "<P>1. The origin of this software must not be misrepresented; you must " |
428 | "not claim that you wrote the original software. If you use this " |
429 | "software in a product, an acknowledgment in the product documentation " |
430 | "would be appreciated but is not required.</P>" |
431 | "2. Altered source versions must be plainly marked as such, and must " |
432 | "not be misrepresented as being the original software. </P>" |
433 | "<P>3. This notice may not be removed or altered from any source " |
434 | "distribution. " |
435 | ) |
436 | , |
437 | license_info( boost::regex("Permission\\W+to\\W+use\\W+copy\\W+modify\\W+sell\\W+and\\W+distribute\\W+this\\W+software" |
438 | "\\W+is\\W+hereby\\W+granted\\W+without\\W+fee\\W+provided\\W+that\\W+the\\W+above\\W+copyright\\W+notice" |
439 | "\\W+appears\\W+in\\W+all\\W+copies\\W+and\\W+that\\W+both\\W+that\\W+copyright\\W+notice\\W+and\\W+this" |
440 | "\\W+permission\\W+notice\\W+appear\\W+in\\W+supporting\\W+documentation" |
441 | "\\W+None\\W+of\\W+the\\W+above\\W+authors\\W+nor.{1,100}make\\W+any" |
442 | "\\W+representation\\W+about\\W+the\\W+suitability\\W+of\\W+this\\W+software\\W+for\\W+any" |
443 | "\\W+purpose\\W+It\\W+is\\W+provided\\W+as\\W+is\\W+without\\W+express\\W+or\\W+implied\\W+warranty" |
444 | , boost::regex::perl | boost::regex::icase) |
445 | , |
446 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
447 | , |
448 | generic_author_format |
449 | , |
450 | "Old style Boost license #9" |
451 | , |
452 | "<P>Copyright <I> Author Date</I><BR>" |
453 | "Permission to use, copy, modify, sell, and distribute this software " |
454 | "is hereby granted without fee provided that the above copyright notice " |
455 | "appears in all copies and that both that copyright notice and this " |
456 | "permission notice appear in supporting documentation, <BR>" |
457 | "None of the above authors nor <I>Author's Organisation</I> make any " |
458 | "representation about the suitability of this software for any " |
459 | "purpose. It is provided \"as is\" without express or implied warranty." |
460 | ) |
461 | , |
462 | license_info( boost::regex("Permission\\W+to\\W+use\\W+copy\\W+modify\\W+and\\W+distribute\\W+this\\W+software\\W+for\\W+any" |
463 | "\\W+purpose\\W+is\\W+hereby\\W+granted\\W+without\\W+fee\\W+provided\\W+that\\W+this\\W+copyright\\W+and" |
464 | "\\W+permissions\\W+notice\\W+appear\\W+in\\W+all\\W+copies\\W+and\\W+derivatives" |
465 | "\\W+This\\W+software\\W+is\\W+provided\\W+as\\W+is\\W+without\\W+express\\W+or\\W+implied\\W+warranty" |
466 | , boost::regex::perl | boost::regex::icase) |
467 | , |
468 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
469 | , |
470 | generic_author_format |
471 | , |
472 | "Old style Boost license #10" |
473 | , |
474 | "<P>Copyright <I>Author Date</I>. All rights reserved.</P>" |
475 | "<P>Permission to use, copy, modify, and distribute this software for any " |
476 | "purpose is hereby granted without fee, provided that this copyright and " |
477 | "permissions notice appear in all copies and derivatives.</P>" |
478 | "<P>This software is provided \"as is\" without express or implied warranty.</P>" |
479 | ) |
480 | , |
481 | license_info( boost::regex("This\\W+material\\W+is\\W+provided\\W+as\\W+is\\W+with\\W+absolutely\\W+no\\W+warranty\\W+expressed" |
482 | "\\W+or\\W+implied\\W+Any\\W+use\\W+is\\W+at\\W+your\\W+own\\W+risk" |
483 | "\\W+Permission\\W+to\\W+use\\W+or\\W+copy\\W+this\\W+software\\W+for\\W+any\\W+purpose\\W+is\\W+hereby\\W+granted" |
484 | "\\W+without\\W+fee\\W+provided\\W+the\\W+above\\W+notices\\W+are\\W+retained\\W+on\\W+all\\W+copies" |
485 | "\\W+Permission\\W+to\\W+modify\\W+the\\W+code\\W+and\\W+to\\W+distribute\\W+modified\\W+code\\W+is\\W+granted" |
486 | "\\W+provided\\W+the\\W+above\\W+notices\\W+are\\W+retained\\W+and\\W+a\\W+notice\\W+that\\W+the\\W+code\\W+was" |
487 | "\\W+modified\\W+is\\W+included\\W+with\\W+the\\W+above\\W+copyright\\W+notice" |
488 | , boost::regex::perl | boost::regex::icase) |
489 | , |
490 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
491 | , |
492 | generic_author_format |
493 | , |
494 | "Old style Boost license #11" |
495 | , |
496 | "<P>This material is provided \"as is\", with absolutely no warranty expressed " |
497 | "or implied. Any use is at your own risk.</P>" |
498 | "<P>Permission to use or copy this software for any purpose is hereby granted " |
499 | "without fee, provided the above notices are retained on all copies. " |
500 | "Permission to modify the code and to distribute modified code is granted, " |
501 | "provided the above notices are retained, and a notice that the code was " |
502 | "modified is included with the above copyright notice.</P>" |
503 | ) |
504 | , |
505 | license_info( boost::regex("Permission\\W+to\\W+copy\\W+use\\W+and\\W+distribute\\W+this\\W+software\\W+is\\W+granted\\W+provided" |
506 | "\\W+that\\W+this\\W+copyright\\W+notice\\W+appears\\W+in\\W+all\\W+copies" |
507 | "\\W+Permission\\W+to\\W+modify\\W+the\\W+code\\W+and\\W+to\\W+distribute\\W+modified\\W+code\\W+is\\W+granted" |
508 | "\\W+provided\\W+that\\W+this\\W+copyright\\W+notice\\W+appears\\W+in\\W+all\\W+copies\\W+and\\W+a\\W+notice" |
509 | "\\W+that\\W+the\\W+code\\W+was\\W+modified\\W+is\\W+included\\W+with\\W+the\\W+copyright\\W+notice" |
510 | "\\W+This\\W+software\\W+is\\W+provided\\W+as\\W+is\\W+without\\W+express\\W+or\\W+implied\\W+warranty\\W+and" |
511 | "\\W+with\\W+no\\W+claim\\W+as\\W+to\\W+its\\W+suitability\\W+for\\W+any\\W+purpose" |
512 | , boost::regex::perl | boost::regex::icase) |
513 | , |
514 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
515 | , |
516 | generic_author_format |
517 | , |
518 | "Old style Boost license #12" |
519 | , |
520 | "<P>Copyright (C) <I>Date Author</I></P><P>Permission to copy, use, and distribute this software is granted, provided " |
521 | "that this copyright notice appears in all copies.<BR>" |
522 | "Permission to modify the code and to distribute modified code is granted, " |
523 | "provided that this copyright notice appears in all copies, and a notice " |
524 | "that the code was modified is included with the copyright notice.</P>" |
525 | "<P>This software is provided \"as is\" without express or implied warranty, and " |
526 | "with no claim as to its suitability for any purpose.</P>" |
527 | ) |
528 | , |
529 | license_info( boost::regex("Permission\\W+to\\W+copy\\W+and\\W+use\\W+this\\W+software\\W+is\\W+granted" |
530 | "\\W+provided\\W+this\\W+copyright\\W+notice\\W+appears\\W+in\\W+all\\W+copies" |
531 | "\\W+Permission\\W+to\\W+modify\\W+the\\W+code\\W+and\\W+to\\W+distribute\\W+modified\\W+code\\W+is\\W+granted" |
532 | "\\W+provided\\W+this\\W+copyright\\W+notice\\W+appears\\W+in\\W+all\\W+copies\\W+and\\W+a\\W+notice" |
533 | "\\W+that\\W+the\\W+code\\W+was\\W+modified\\W+is\\W+included\\W+with\\W+the\\W+copyright\\W+notice" |
534 | "\\W+This\\W+software\\W+is\\W+provided\\W+as\\W+is\\W+without\\W+express\\W+or\\W+implied\\W+warranty" |
535 | "\\W+and\\W+with\\W+no\\W+claim\\W+as\\W+to\\W+its\\W+suitability\\W+for\\W+any\\W+purpose" |
536 | , boost::regex::perl | boost::regex::icase) |
537 | , |
538 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
539 | , |
540 | generic_author_format |
541 | , |
542 | "Old style Boost license #13" |
543 | , |
544 | "<P>Copyright (C) <I>Date Author</I></P>" |
545 | "<P>Permission to copy and use this software is granted, " |
546 | "provided this copyright notice appears in all copies. " |
547 | "Permission to modify the code and to distribute modified code is granted, " |
548 | "provided this copyright notice appears in all copies, and a notice " |
549 | "that the code was modified is included with the copyright notice.</P>" |
550 | "<P>This software is provided \"as is\" without express or implied warranty, " |
551 | "and with no claim as to its suitability for any purpose.</P>" |
552 | ) |
553 | , |
554 | license_info( boost::regex("Copyright\\W+Kevlin\\W+Henney\\W+2000\\W+All\\W+rights\\W+reserved\\W+" |
555 | "Permission\\W+to\\W+use\\W+copy\\W+modify\\W+and\\W+distribute\\W+this\\W+software\\W+for\\W+any" |
556 | "\\W+purpose\\W+is\\W+hereby\\W+granted\\W+without\\W+fee\\W+provided\\W+that\\W+this\\W+copyright\\W+and" |
557 | "\\W+permissions\\W+notice\\W+appear\\W+in\\W+all\\W+copies\\W+and\\W+derivatives\\W+and\\W+that\\W+no" |
558 | "\\W+charge\\W+may\\W+be\\W+made\\W+for\\W+the\\W+software\\W+and\\W+its\\W+documentation\\W+except\\W+to\\W+cover" |
559 | "\\W+cost\\W+of\\W+distribution" |
560 | "\\W+This\\W+software\\W+is\\W+provided\\W+as\\W+is\\W+without\\W+express\\W+or\\W+implied\\W+warranty\\W+" |
561 | , boost::regex::perl | boost::regex::icase) |
562 | , |
563 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
564 | , |
565 | generic_author_format |
566 | , |
567 | "Old style Boost license #14" |
568 | , |
569 | "<P>Copyright The Author, The Date. All rights reserved.</P>" |
570 | "<P>Permission to use, copy, modify, and distribute this software for any" |
571 | " purpose is hereby granted without fee, provided that this copyright and" |
572 | " permissions notice appear in all copies and derivatives, and that no" |
573 | " charge may be made for the software and its documentation except to cover" |
574 | " cost of distribution.</P>" |
575 | "<P>This software is provided \"as is\" without express or implied warranty.</P>" |
576 | ) |
577 | , |
578 | license_info( boost::regex("preprocessed\\W+version\\W+of\\W+boost/mpl/.*\\.hpp\\W+header\\W+see\\W+the\\W+original\\W+for\\W+copyright\\W+information" , boost::regex::perl | boost::regex::icase) |
579 | , |
580 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
581 | , |
582 | generic_author_format |
583 | , |
584 | "SGI Style Licence (MPL preprocessed file)" |
585 | , |
586 | "<P>Copyright (c) <I>Date</I><BR>" |
587 | "<I>Author</I><BR>" |
588 | "<BR>" |
589 | "Permission to use, copy, modify, distribute and sell this software " |
590 | "and its documentation for any purpose is hereby granted without fee, " |
591 | "provided that the above copyright notice appear in all copies and " |
592 | "that both that copyright notice and this permission notice appear " |
593 | "in supporting documentation. <I>Author</I> makes no representations " |
594 | "about the suitability of this software for any purpose. " |
595 | "It is provided \"as is\" without express or implied warranty.</P>" |
596 | ) |
597 | , |
598 | license_info( boost::regex( |
599 | "This\\W+file\\W+is\\W+part\\W+of\\W+jam\\W+" |
600 | "License\\W+is\\W+hereby\\W+granted\\W+to\\W+use\\W+this\\W+software\\W+and\\W+distribute\\W+it\\W+" |
601 | "freely\\W+as\\W+long\\W+as\\W+this\\W+copyright\\W+notice\\W+is\\W+retained\\W+and\\W+modifications\\W+" |
602 | "are\\W+clearly\\W+marked\\W+" |
603 | "ALL\\W+WARRANTIES\\W+ARE\\W+HEREBY\\W+DISCLAIMED" |
604 | "|" |
605 | "This\\W+file\\W+is\\W+part\\W+of\\W+Jam\\W+see\\W+jam\\.c\\W+for\\W+Copyright\\W+information" |
606 | "|This file has been donated to Jam" |
607 | "|Generated by mkjambase from Jambase" , boost::regex::perl | boost::regex::icase) |
608 | , |
609 | boost::regex(generic_author_sig + std::string("|(Craig\\W+W\\W+McPheeters\\W+Alias\\W+Wavefront)|(Generated by mkjambase from Jambase)" ), boost::regex::perl | boost::regex::icase) |
610 | , |
611 | generic_author_format + std::string("(?4Craig W. McPheeters, Alias|Wavefront)(?5Christopher Seiwald and Perforce Software, Inc)" ) |
612 | , |
613 | "Perforce Jam License" |
614 | , |
615 | "<P>Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc.</P>" |
616 | "<P>This file is part of jam.</P>" |
617 | "<P>License is hereby granted to use this software and distribute it " |
618 | "freely, as long as this copyright notice is retained and modifications " |
619 | " are clearly marked.</P>" |
620 | "<P>ALL WARRANTIES ARE HEREBY DISCLAIMED</P>" |
621 | ) |
622 | , |
623 | license_info( boost::regex( |
624 | "Permission\\W+is\\W+granted\\W+to\\W+anyone\\W+to\\W+use\\W+this\\W+software\\W+for\\W+any\\W+" |
625 | "purpose\\W+on\\W+any\\W+computer\\W+system\\W+and\\W+to\\W+redistribute\\W+it\\W+freely\\W+" |
626 | "subject\\W+to\\W+the\\W+following\\W+restrictions\\W+" |
627 | "1\\W+The\\W+author\\W+is\\W+not\\W+responsible\\W+for\\W+the\\W+consequences\\W+of\\W+use\\W+of\\W+" |
628 | "this\\W+software\\W+no\\W+matter\\W+how\\W+awful\\W+even\\W+if\\W+they\\W+arise\\W+" |
629 | "from\\W+defects\\W+in\\W+it\\W+" |
630 | "2\\W+The\\W+origin\\W+of\\W+this\\W+software\\W+must\\W+not\\W+be\\W+misrepresented\\W+either\\W+" |
631 | "by\\W+explicit\\W+claim\\W+or\\W+by\\W+omission\\W+" |
632 | "3\\W+Altered\\W+versions\\W+must\\W+be\\W+plainly\\W+marked\\W+as\\W+such\\W+and\\W+must\\W+not\\W+" |
633 | "be\\W+misrepresented\\W+as\\W+being\\W+the\\W+original\\W+software" |
634 | "|Definitions\\W+etc\\W+for\\W+regexp\\W+3\\W+routines" , boost::regex::perl | boost::regex::icase) |
635 | , |
636 | boost::regex(generic_author_sig + std::string("|(Definitions\\W+etc\\W+for\\W+regexp\\W+3\\W+routines)" ), boost::regex::perl | boost::regex::icase) |
637 | , |
638 | generic_author_format + std::string("(?4University of Toronto)" ) |
639 | , |
640 | "BSD Regex License" |
641 | , |
642 | "<P>Copyright (c) 1986 by University of Toronto.</P>" |
643 | "<P>Written by Henry Spencer. Not derived from licensed software.</P>" |
644 | "<P>Permission is granted to anyone to use this software for any" |
645 | "purpose on any computer system, and to redistribute it freely," |
646 | "subject to the following restrictions:</P>" |
647 | "<P>The author is not responsible for the consequences of use of" |
648 | "this software, no matter how awful, even if they arise" |
649 | "from defects in it.</P>" |
650 | "<p>The origin of this software must not be misrepresented, either" |
651 | "by explicit claim or by omission.</p>" |
652 | "<p>Altered versions must be plainly marked as such, and must not" |
653 | "be misrepresented as being the original software.</P>" |
654 | ) |
655 | , |
656 | license_info( boost::regex( |
657 | "Skeleton\\W+parser\\W+for\\W+Yacc\\W+like\\W+parsing\\W+with\\W+Bison\\W+" |
658 | "Copyright.{0,100}Free\\W+Software\\W+Foundation\\W+Inc\\W+" |
659 | "\\W+This\\W+program\\W+is\\W+free\\W+software\\W+you\\W+can\\W+redistribute\\W+it\\W+and\\W+or\\W+modify\\W+" |
660 | "it\\W+under\\W+the\\W+terms\\W+of\\W+the\\W+GNU\\W+General\\W+Public\\W+License\\W+as\\W+published\\W+by\\W+" |
661 | "the\\W+Free\\W+Software\\W+Foundation\\W+either\\W+version\\W+2\\W+or\\W+at\\W+your\\W+option\\W+" |
662 | "any\\W+later\\W+version" |
663 | "|" |
664 | // this part matches the start of jamgramtab.h which is under the same licence |
665 | // but bison does not output it's usual licence declaration: |
666 | "\\{\\s*\"!\"\\s*,\\s*_BANG_t\\s*\\}" , boost::regex::perl | boost::regex::icase) |
667 | , |
668 | boost::regex(generic_author_sig + std::string("|(\\{\\s*\"!\"\\s*,\\s*_BANG_t\\s*\\})" ), boost::regex::perl | boost::regex::icase) |
669 | , |
670 | generic_author_format + std::string("(?4Free Software Foundation, Inc)" ) |
671 | , |
672 | "GNU Parser Licence" |
673 | , |
674 | "<P>Skeleton parser for Yacc-like parsing with Bison,<BR>" |
675 | "Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.</P>" |
676 | "<P>This program is free software; you can redistribute it and/or modify" |
677 | "it under the terms of the GNU General Public License as published by" |
678 | "the Free Software Foundation; either version 2, or (at your option)" |
679 | "any later version.</P>" |
680 | "<P>This program is distributed in the hope that it will be useful," |
681 | "but WITHOUT ANY WARRANTY; without even the implied warranty of" |
682 | "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the" |
683 | "GNU General Public License for more details.</P>" |
684 | "<P>You should have received a copy of the GNU General Public License" |
685 | "along with this program; if not, write to the Free Software" |
686 | "Foundation, Inc., 59 Temple Place - Suite 330," |
687 | "Boston, MA 02111-1307, USA.</P>" |
688 | "<P>As a special exception, when this file is copied by Bison into a" |
689 | "Bison output file, you may use that output file without restriction." |
690 | "This special exception was added by the Free Software Foundation" |
691 | "in version 1.24 of Bison.</P>" |
692 | ) |
693 | , |
694 | license_info( boost::regex( |
695 | "(?:The|This)\\W+code\\W+is\\W+considered\\W+to\\W+be\\W+in\\W+the\\W+public\\W+domain" , boost::regex::perl | boost::regex::icase) |
696 | , |
697 | boost::regex(generic_author_sig, boost::regex::perl | boost::regex::icase) |
698 | , |
699 | generic_author_format |
700 | , |
701 | "Public Domain" |
702 | , |
703 | "<P>The code has no license terms, it has been explicity placed in the\n" |
704 | "public domain by it's author(s).</P>" |
705 | ) |
706 | , |
707 | }; |
708 | return std::pair<const license_info*, int>(licenses, static_cast<int>(sizeof(licenses)/sizeof(licenses[0]))); |
709 | } |
710 | |
711 | std::string format_authors_name(const std::string& name) |
712 | { |
713 | // put name into a consistent format, so that we don't get too much |
714 | // of a proliferation of names (lots of versions of the same basic form). |
715 | |
716 | static const boost::regex e("(^)?[^-(<a-zA-ZÀ-þ]+(([(<].*)?$)?" ); |
717 | static const char* formatter = "(?1:(?2: ))" ; |
718 | |
719 | return boost::regex_replace(s: name, e, fmt: formatter, flags: boost::match_default | boost::format_all); |
720 | } |
721 | |
722 | |