Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/bcp/licence_info.cpp @ 33

Last change on this file since 33 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

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