Merge lp:~zorba-coders/zorba/fn_envvars into lp:zorba
- fn_envvars
- Merge into trunk
Status: | Superseded | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Proposed branch: | lp:~zorba-coders/zorba/fn_envvars | ||||||||||||||||||||
Merge into: | lp:zorba | ||||||||||||||||||||
Diff against target: |
46321 lines (+22882/-21683) 142 files modified
ChangeLog (+5/-0) NOTICE.txt (+0/-740) include/zorba/pregenerated/diagnostic_list.h (+4/-0) modules/w3c/pregenerated/xqt-errors.xq (+18/-0) modules/w3c/xpath_functions.xq (+46/-1) src/context/dynamic_context.cpp (+150/-3) src/context/dynamic_context.h (+11/-0) src/diagnostics/diagnostic_en.xml (+16/-0) src/diagnostics/pregenerated/diagnostic_list.cpp (+6/-0) src/diagnostics/pregenerated/dict_en.cpp (+2/-0) src/functions/pregenerated/func_access.cpp (+111/-0) src/functions/pregenerated/func_access.h (+79/-0) src/functions/pregenerated/func_accessors.cpp (+259/-259) src/functions/pregenerated/func_accessors.h (+208/-208) src/functions/pregenerated/func_any_uri.cpp (+76/-76) src/functions/pregenerated/func_any_uri.h (+66/-66) src/functions/pregenerated/func_base64.cpp (+85/-85) src/functions/pregenerated/func_base64.h (+79/-79) src/functions/pregenerated/func_booleans.cpp (+110/-110) src/functions/pregenerated/func_booleans.h (+100/-100) src/functions/pregenerated/func_collections.cpp (+33/-0) src/functions/pregenerated/func_collections.h (+15/-0) src/functions/pregenerated/func_context.cpp (+209/-209) src/functions/pregenerated/func_context.h (+179/-179) src/functions/pregenerated/func_debug_iterator.cpp (+41/-41) src/functions/pregenerated/func_debug_iterator.h (+50/-50) src/functions/pregenerated/func_documents.cpp (+151/-151) src/functions/pregenerated/func_documents.h (+140/-140) src/functions/pregenerated/func_durations_dates_times.cpp (+503/-503) src/functions/pregenerated/func_durations_dates_times.h (+364/-364) src/functions/pregenerated/func_errors_and_diagnostics.cpp (+115/-115) src/functions/pregenerated/func_errors_and_diagnostics.h (+97/-97) src/functions/pregenerated/func_fetch.cpp (+86/-86) src/functions/pregenerated/func_fetch.h (+83/-83) src/functions/pregenerated/func_fnput.cpp (+64/-64) src/functions/pregenerated/func_fnput.h (+70/-70) src/functions/pregenerated/func_function_item_iter.cpp (+122/-122) src/functions/pregenerated/func_function_item_iter.h (+94/-94) src/functions/pregenerated/func_ic_ddl.cpp (+107/-107) src/functions/pregenerated/func_ic_ddl.h (+104/-104) src/functions/pregenerated/func_json.cpp (+87/-87) src/functions/pregenerated/func_json.h (+79/-79) src/functions/pregenerated/func_maps.cpp (+221/-221) src/functions/pregenerated/func_maps.h (+193/-193) src/functions/pregenerated/func_maths.cpp (+616/-616) src/functions/pregenerated/func_maths.h (+439/-439) src/functions/pregenerated/func_node_position.cpp (+584/-584) src/functions/pregenerated/func_node_position.h (+409/-409) src/functions/pregenerated/func_nodes.cpp (+547/-547) src/functions/pregenerated/func_nodes.h (+383/-383) src/functions/pregenerated/func_numerics.cpp (+260/-260) src/functions/pregenerated/func_numerics.h (+170/-170) src/functions/pregenerated/func_other_diagnostics.cpp (+84/-84) src/functions/pregenerated/func_other_diagnostics.h (+83/-83) src/functions/pregenerated/func_parsing_and_serializing.cpp (+111/-111) src/functions/pregenerated/func_parsing_and_serializing.h (+89/-89) src/functions/pregenerated/func_qnames.cpp (+221/-221) src/functions/pregenerated/func_qnames.h (+175/-175) src/functions/pregenerated/func_random.cpp (+118/-118) src/functions/pregenerated/func_random.h (+95/-95) src/functions/pregenerated/func_schema.cpp (+129/-129) src/functions/pregenerated/func_schema.h (+121/-121) src/functions/pregenerated/func_sctx.cpp (+572/-572) src/functions/pregenerated/func_sctx.h (+424/-424) src/functions/pregenerated/func_sequences.cpp (+148/-0) src/functions/pregenerated/func_sequences.h (+75/-0) src/functions/pregenerated/func_strings.cpp (+922/-922) src/functions/pregenerated/func_strings.h (+507/-507) src/functions/pregenerated/func_uris.cpp (+65/-65) src/functions/pregenerated/func_uris.h (+64/-64) src/functions/pregenerated/func_xqdoc.cpp (+85/-85) src/functions/pregenerated/func_xqdoc.h (+80/-80) src/functions/pregenerated/function_enum.h (+10/-0) src/runtime/accessors/pregenerated/accessors.h (+314/-314) src/runtime/any_uri/pregenerated/any_uri.h (+76/-76) src/runtime/base64/pregenerated/base64.h (+110/-110) src/runtime/booleans/pregenerated/booleans.h (+144/-144) src/runtime/collections/collections_impl.cpp (+122/-0) src/runtime/collections/pregenerated/collections.cpp (+24/-0) src/runtime/collections/pregenerated/collections.h (+51/-0) src/runtime/context/pregenerated/context.h (+212/-212) src/runtime/debug/pregenerated/debug_iterator.h (+135/-135) src/runtime/durations_dates_times/pregenerated/durations_dates_times.h (+756/-756) src/runtime/errors_and_diagnostics/pregenerated/errors_and_diagnostics.h (+125/-125) src/runtime/errors_and_diagnostics/pregenerated/other_diagnostics.h (+174/-174) src/runtime/fetch/pregenerated/fetch.h (+112/-112) src/runtime/fnput/pregenerated/fnput.h (+76/-76) src/runtime/function_item/pregenerated/function_item_iter.h (+155/-155) src/runtime/indexing/pregenerated/ic_ddl.h (+167/-167) src/runtime/introspection/pregenerated/sctx.h (+1110/-1110) src/runtime/json/pregenerated/json.h (+114/-114) src/runtime/maths/pregenerated/maths.h (+952/-952) src/runtime/nodes/pregenerated/node_position.h (+858/-858) src/runtime/nodes/pregenerated/nodes.h (+729/-729) src/runtime/numerics/pregenerated/numerics.h (+290/-290) src/runtime/parsing_and_serializing/pregenerated/parse_fragment.h (+94/-94) src/runtime/parsing_and_serializing/pregenerated/parsing_and_serializing.h (+112/-112) src/runtime/qnames/pregenerated/qnames.h (+329/-329) src/runtime/random/pregenerated/random.h (+177/-177) src/runtime/schema/pregenerated/schema.h (+187/-187) src/runtime/sequences/pregenerated/sequences.cpp (+116/-0) src/runtime/sequences/pregenerated/sequences.h (+219/-0) src/runtime/sequences/sequences_impl.cpp (+272/-0) src/runtime/spec/collections/collections.xml (+33/-0) src/runtime/spec/sequences/sequences.xml (+172/-1) src/runtime/store/pregenerated/documents.h (+240/-240) src/runtime/store/pregenerated/maps.h (+368/-368) src/runtime/strings/pregenerated/strings.h (+1137/-1137) src/runtime/uris/pregenerated/uris.h (+80/-80) src/runtime/visitors/pregenerated/planiter_visitor.h (+30/-0) src/runtime/visitors/pregenerated/printer_visitor.cpp (+84/-0) src/runtime/visitors/pregenerated/printer_visitor.h (+18/-0) src/runtime/xqdoc/pregenerated/xqdoc.h (+110/-110) test/rbkt/ExpQueryResults/zorba/collections/uri-collection_1.xml.res (+1/-0) test/rbkt/ExpQueryResults/zorba/sequences/available-environment-variables.xml.res (+1/-0) test/rbkt/ExpQueryResults/zorba/sequences/environment-variable_1.xml.res (+1/-0) test/rbkt/ExpQueryResults/zorba/sequences/environment-variable_2.xml.res (+1/-0) test/rbkt/ExpQueryResults/zorba/sequences/unparsed-text-available.xml.res (+1/-0) test/rbkt/ExpQueryResults/zorba/sequences/unparsed-text-lines_1.xml.res (+1/-0) test/rbkt/ExpQueryResults/zorba/sequences/unparsed-text-lines_2.xml.res (+1/-0) test/rbkt/ExpQueryResults/zorba/sequences/unparsed-text_1.xml.res (+3/-0) test/rbkt/ExpQueryResults/zorba/sequences/unparsed-text_2.xml.res (+3/-0) test/rbkt/Queries/zorba/collections/uri-collection.xml (+6/-0) test/rbkt/Queries/zorba/collections/uri-collection_1.xq (+16/-0) test/rbkt/Queries/zorba/collections/uri-collection_2.spec (+1/-0) test/rbkt/Queries/zorba/collections/uri-collection_2.xq (+16/-0) test/rbkt/Queries/zorba/sequences/available-environment-variables.xq (+3/-0) test/rbkt/Queries/zorba/sequences/environment-variable_1.xq (+4/-0) test/rbkt/Queries/zorba/sequences/environment-variable_2.xq (+2/-0) test/rbkt/Queries/zorba/sequences/unparsed-text-available.xq (+1/-0) test/rbkt/Queries/zorba/sequences/unparsed-text-lines_1.xq (+1/-0) test/rbkt/Queries/zorba/sequences/unparsed-text-lines_2.xq (+1/-0) test/rbkt/Queries/zorba/sequences/unparsed-text-lines_3.spec (+1/-0) test/rbkt/Queries/zorba/sequences/unparsed-text-lines_3.xq (+1/-0) test/rbkt/Queries/zorba/sequences/unparsed-text-lines_4.spec (+1/-0) test/rbkt/Queries/zorba/sequences/unparsed-text-lines_4.xq (+1/-0) test/rbkt/Queries/zorba/sequences/unparsed-text_1.xq (+1/-0) test/rbkt/Queries/zorba/sequences/unparsed-text_2.xq (+1/-0) test/rbkt/Queries/zorba/sequences/unparsed-text_3.spec (+1/-0) test/rbkt/Queries/zorba/sequences/unparsed-text_3.xq (+1/-0) test/rbkt/Queries/zorba/sequences/unparsed-text_4.spec (+1/-0) test/rbkt/Queries/zorba/sequences/unparsed-text_4.xq (+1/-0) |
||||||||||||||||||||
To merge this branch: | bzr merge lp:~zorba-coders/zorba/fn_envvars | ||||||||||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sorin Marian Nasoi | Pending | ||
Matthias Brantner | Pending | ||
Review via email: mp+101876@code.launchpad.net |
This proposal supersedes a proposal from 2012-01-10.
This proposal has been superseded by a proposal from 2012-04-13.
Commit message
Bug #930157: fn:available-
Bug #930158: fn:environment-
Bug #930160: fn:uri-collection Implementation
Bug #930161: fn:unparsed-text Implementation
Bug #930162: fn:unparsed-
Description of the change
Bug #930157: fn:available-
Bug #930158: fn:environment-
Bug #930160: fn:uri-collection Implementation
Bug #930161: fn:unparsed-text Implementation
Bug #930162: fn:unparsed-
Chris Hillery (ceejatec) wrote : Posted in a previous version of this proposal | # |
Juan Zacarias (juan457) wrote : Posted in a previous version of this proposal | # |
> Why did you delete NOTICE.txt?
I am not really sure why that happened but it should be there now
Matthias Brantner (matthias-brantner) wrote : Posted in a previous version of this proposal | # |
I'm not entirely sure but the diff now only shows whitespace differences in generated files. I didn't find any change which adds one of the new functions.
Juan Zacarias (juan457) wrote : Posted in a previous version of this proposal | # |
> I'm not entirely sure but the diff now only shows whitespace differences in
> generated files. I didn't find any change which adds one of the new functions.
The diff below just show the diff for the errors in which the error codes FOUT1170 and FOUT1190 where added the diffs for the implementation should be on
sequence_impl.cpp for unparsed-text(), unparsed-
and in collections_
Matthias Brantner (matthias-brantner) wrote : Posted in a previous version of this proposal | # |
- dynamic_
should be
dynamic_
- spaces before "(". for example "if (...) instead of if(...)"
- all new functions in sequences_impl.cpp are indented with two spaces. the other functions are not
- if(result)
{
STACK_PUSH(true, state);
}
STACK_PUSH(false, state);
could be written as STACK_PUSH(
- In FnEnvironmentVa
- item->getString() returns a const zstring&. This should be the type of the variable.
- store::Item_t item2 is not used in the function
- In FnAvailableEnvi
- The environment-related functions should be specified using
<zorba:methods>
<zorba:
</zorba:methods>
- All the lines after 14.8.5 fn:unparsed-text have windows line endings
- you can check using transcode:
- It's unclear when the original stream for unparsed-text is released. This seems to be a memory leak.
- The unparsed-text related functions should be specified as
<zorba:methods>
<zorba:
<zorba:isSource returnValue=
</zorba:methods>
- What's the default encoding for unparsed-text?
Juan Zacarias (juan457) wrote : Posted in a previous version of this proposal | # |
I will make all those changes, Thanks.
and answering your questions
> - you can check using transcode:
If I am not wrong I am using it that way.
> - What's the default encoding for unparsed-text?
UTF-8
The thing with the encoding is that the encoding is defined in the call of the function unparsed-text and unparsed-
Matthias Brantner (matthias-brantner) wrote : Posted in a previous version of this proposal | # |
> I will make all those changes, Thanks.
>
> and answering your questions
>
> > - you can check using transcode:
> If I am not wrong I am using it that way.
My bad, I meant transcode:
> > > - What's the default encoding for unparsed-text?
> UTF-8
OK, got it. It's fine as it is.
Juan Zacarias (juan457) wrote : Posted in a previous version of this proposal | # |
> - It's unclear when the original stream for unparsed-text is released. This
> seems to be a memory leak.
for the original stream of unparsed-text which variable you mean?
Matthias Brantner (matthias-brantner) wrote : Posted in a previous version of this proposal | # |
> > - It's unclear when the original stream for unparsed-text is released. This
> > seems to be a memory leak.
> for the original stream of unparsed-text which variable you mean?
Yes, the stream you receive from the StreamResource contains a stream which is wrapped into a streamable string. The stream in the streamable string is released but the original one isn't. I think you need to remember it in a map and release it when the stream you created is released.
Juan Zacarias (juan457) wrote : Posted in a previous version of this proposal | # |
> > > - It's unclear when the original stream for unparsed-text is released.
> This
> > > seems to be a memory leak.
> > for the original stream of unparsed-text which variable you mean?
> Yes, the stream you receive from the StreamResource contains a stream which is
> wrapped into a streamable string. The stream in the streamable string is
> released but the original one isn't. I think you need to remember it in a map
> and release it when the stream you created is released.
One more doubt regarding this, I got a little bit confused while trying to fix this, the one you mean is the stream that is inside the StreamResource, is the one that needs to be released right? since I had to set the StreamReleaser of it to a nullptr
Sorin Marian Nasoi (sorin.marian.nasoi) wrote : Posted in a previous version of this proposal | # |
I ran
ctest -R xquery_3_0
on this branch, and:
- the following functions from F&O 3.0 spec are still not implemented:
filter#2 fold-left#3 fold-right#3 function-lookup#2 map#2 map-pairs#3 parse-xml-
- the following functions are in the fn namespace (according to the introspection module) and the F&O 3.0 spec state that they should not be there:
parse-xml#2 partial-apply#2 partial-apply#3
So it seems that all functions linked to this commit are implemented.
Juan Zacarias (juan457) wrote : Posted in a previous version of this proposal | # |
the errors mentioned should be solved now.
let me know if there is any other thing to be changed before merging.
Matthias Brantner (matthias-brantner) wrote : Posted in a previous version of this proposal | # |
- the unparsed-text-lines function doesn't really stream because it materializes all the lines in a vector before returning them. Instead, the iterator should keep the istream in it's state and return the lines as they are parsed from the stream.
- the two readDocument functions share a lot of code which should be factorized
- please add spaces after keywords like if and while to be consistent with the other conventions in the sequences_impl.cpp file
- Normilize => Normalize
- wrong comment for the FnUnparsedTextL
- I think the unparsed-text-lines function returns an eventually empty last line. However, the spec says that it shouldn't return such an empty string.
- unparsed-text-lines should return the empty sequence if there are no lines in the input. However, it seems to raise FOUT1170.
Juan Zacarias (juan457) wrote : Posted in a previous version of this proposal | # |
> - the unparsed-text-lines function doesn't really stream because it
> materializes all the lines in a vector before returning them. Instead, the
> iterator should keep the istream in it's state and return the lines as they
> are parsed from the stream.
Just one question about this, the Item returned by the function for each line should be a Stream then?
Matthias Brantner (matthias-brantner) wrote : Posted in a previous version of this proposal | # |
> > - the unparsed-text-lines function doesn't really stream because it
> > materializes all the lines in a vector before returning them. Instead, the
> > iterator should keep the istream in it's state and return the lines as they
> > are parsed from the stream.
> Just one question about this, the Item returned by the function for each line
> should be a Stream then?
No, I don't think that's necessary. A line should be relatively short. It would probably be overhead to stream a single line.
Juan Zacarias (juan457) wrote : Posted in a previous version of this proposal | # |
Errors are Fixed
Matthias Brantner (matthias-brantner) wrote : Posted in a previous version of this proposal | # |
- There seems to be a merge conflict.
- The stream stored in the state must be deleted using the streamReleaser
- The lErrorMessage stream is passed as parameter but the errors only take one parameter.
- The LoadProperties are not used anywhere
- The following can be simplified
if(getline(
{
do
{
STACK_
}
while (getline(
}
else
STACK_
=>
while (getline(
{
STACK_
}
Chris Hillery (ceejatec) wrote : Posted in a previous version of this proposal | # |
Regarding point 2: Remember that the StreamReleaser and the istream must always be kept together as a pair, and the StreamReleaser must be the only way that you clean up the istream. Here, you are deleting the istream directly (bad), and by setting the StreamReleaser on theStreamResource to nullptr, you're breaking up the pair (also bad).
In this case, the StreamResource is already maintaining the pair, and so you can actually make your life easier by just maintaining ownership of the StreamResource and making sure that IT is deleted when you're done. In that case you never have to look at StreamReleaser at all. To do this:
- In FnUnparsedTextL
- Later in the same function, don't call state->
- In FnUnparsedTextL
If I understand Matthias, you will also need to delete theStreamResource in the state's destructor, in case of exceptions. (That's why you set theStreamResource to 0 in reset(), so you can't accidentally delete it twice.)
Juan Zacarias (juan457) wrote : Posted in a previous version of this proposal | # |
all changes done
- 10633. By Matthias Brantner
-
merge with trunk
- 10634. By Matthias Brantner
-
updated ChangeLog
- 10635. By Matthias Brantner
-
regenerated files to reduce size of diff
- 10636. By Juan Zacarias
-
Fixed tests: introsp-fn-7 and xquery_1_0
Unmerged revisions
Preview Diff
1 | === modified file 'ChangeLog' | |||
2 | --- ChangeLog 2012-04-12 09:32:55 +0000 | |||
3 | +++ ChangeLog 2012-04-13 09:38:53 +0000 | |||
4 | @@ -3,6 +3,11 @@ | |||
5 | 3 | version 2.5 | 3 | version 2.5 |
6 | 4 | 4 | ||
7 | 5 | New Features: | 5 | New Features: |
8 | 6 | * fn:available-environment-variables | ||
9 | 7 | * fn:environment-variables | ||
10 | 8 | * fn:uri-collection | ||
11 | 9 | * fn:unparsed-text | ||
12 | 10 | * fn:unparsed-text-available | ||
13 | 6 | * Extended API for Python, Java, PHP and Ruby. | 11 | * Extended API for Python, Java, PHP and Ruby. |
14 | 7 | 12 | ||
15 | 8 | Optimization: | 13 | Optimization: |
16 | 9 | 14 | ||
17 | === added file 'NOTICE.txt' | |||
18 | --- NOTICE.txt 1970-01-01 00:00:00 +0000 | |||
19 | +++ NOTICE.txt 2012-04-13 09:38:53 +0000 | |||
20 | @@ -0,0 +1,740 @@ | |||
21 | 1 | ----------- | ||
22 | 2 | Zorba 2.2.0 | ||
23 | 3 | ----------- | ||
24 | 4 | |||
25 | 5 | (Note: This file is generated automatically from NOTICE.xml. | ||
26 | 6 | Please do not modify this file directly.) | ||
27 | 7 | |||
28 | 8 | |||
29 | 9 | |||
30 | 10 | |||
31 | 11 | Apache 2 | ||
32 | 12 | |||
33 | 13 | Copyright 2006-2011 The FLWOR Foundation | ||
34 | 14 | |||
35 | 15 | See LICENSE.txt for license information. | ||
36 | 16 | |||
37 | 17 | ------------------------ | ||
38 | 18 | This product includes software developed at | ||
39 | 19 | The FLWOR Foundation (http://www.flworfound.org/). | ||
40 | 20 | |||
41 | 21 | ------------------------ | ||
42 | 22 | Portions of this software were developed at the Systems | ||
43 | 23 | Group of the ETH Zurich, Switzerland. | ||
44 | 24 | |||
45 | 25 | |||
46 | 26 | Other files used by this project: | ||
47 | 27 | ---------------------------------------------------- | ||
48 | 28 | |||
49 | 29 | src/zorbatypes/m_apm.h | ||
50 | 30 | src/zorbatypes/mapm/ | ||
51 | 31 | |||
52 | 32 | Copyright: 1999-2007 Michael C. Ring | ||
53 | 33 | Website: http://www.tc.umn.edu/~ringx004/mapm-main.html | ||
54 | 34 | |||
55 | 35 | This software is Freeware. | ||
56 | 36 | |||
57 | 37 | Permission to use, copy, and distribute this software and its | ||
58 | 38 | documentation for any purpose with or without fee is hereby granted, | ||
59 | 39 | provided that the above copyright notice appear in all copies and | ||
60 | 40 | that both that copyright notice and this permission notice appear | ||
61 | 41 | in supporting documentation. | ||
62 | 42 | |||
63 | 43 | Permission to modify the software is granted. Permission to distribute | ||
64 | 44 | the modified code is granted. Modifications are to be distributed by | ||
65 | 45 | using the file 'license.txt' as a template to modify the file header. | ||
66 | 46 | 'license.txt' is available in the official MAPM distribution. | ||
67 | 47 | |||
68 | 48 | To distribute modified source code, insert the file 'license.txt' | ||
69 | 49 | at the top of all modified source code files and edit accordingly. | ||
70 | 50 | |||
71 | 51 | This software is provided "as is" without express or implied warranty. | ||
72 | 52 | |||
73 | 53 | ---------------------------------------------------- | ||
74 | 54 | |||
75 | 55 | src/zorbamisc/config/stdint.h | ||
76 | 56 | |||
77 | 57 | Copyright: 2006 Alexander Chemeris | ||
78 | 58 | |||
79 | 59 | |||
80 | 60 | Redistribution and use in source and binary forms, with or without | ||
81 | 61 | modification, are permitted provided that the following conditions are met: | ||
82 | 62 | |||
83 | 63 | 1. Redistributions of source code must retain the above copyright notice, | ||
84 | 64 | this list of conditions and the following disclaimer. | ||
85 | 65 | |||
86 | 66 | 2. Redistributions in binary form must reproduce the above copyright | ||
87 | 67 | notice, this list of conditions and the following disclaimer in the | ||
88 | 68 | documentation and/or other materials provided with the distribution. | ||
89 | 69 | |||
90 | 70 | 3. The name of the author may be used to endorse or promote products | ||
91 | 71 | derived from this software without specific prior written permission. | ||
92 | 72 | |||
93 | 73 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
94 | 74 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
95 | 75 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
96 | 76 | EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
97 | 77 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
98 | 78 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
99 | 79 | OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
100 | 80 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | ||
101 | 81 | OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
102 | 82 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
103 | 83 | |||
104 | 84 | ---------------------------------------------------- | ||
105 | 85 | |||
106 | 86 | src/zorbautils/stemmer/ | ||
107 | 87 | |||
108 | 88 | Copyright: 2001 Dr. Martin Porter | ||
109 | 89 | |||
110 | 90 | |||
111 | 91 | All the software given out on this Snowball site is covered by the BSD | ||
112 | 92 | License (see http://www.opensource.org/licenses/bsd-license.html), with | ||
113 | 93 | Copyright (c) 2001, Dr Martin Porter, and (for the Java developments) | ||
114 | 94 | Copyright (c) 2002, Richard Boulton. | ||
115 | 95 | |||
116 | 96 | Essentially, all this means is that you can do what you like with the code, | ||
117 | 97 | except claim another Copyright for it, or claim that it is issued under a | ||
118 | 98 | different license. The software is also issued without warranties, which | ||
119 | 99 | means that if anyone suffers through its use, they cannot come back and sue | ||
120 | 100 | you. You also have to alert anyone to whom you give the Snowball software to | ||
121 | 101 | the fact that it is covered by the BSD license. | ||
122 | 102 | |||
123 | 103 | We have not bothered to insert the licensing arrangement into the text of | ||
124 | 104 | the Snowball software. | ||
125 | 105 | |||
126 | 106 | ---------------------------------------------------- | ||
127 | 107 | |||
128 | 108 | src/util/less.h | ||
129 | 109 | |||
130 | 110 | Copyright: 1998 Paul J. Lucas | ||
131 | 111 | |||
132 | 112 | |||
133 | 113 | Redistribution and use in source and binary forms, with or without | ||
134 | 114 | modification, are permitted provided that the following conditions are met: | ||
135 | 115 | |||
136 | 116 | o Redistributions of source code must retain the above copyright notice, | ||
137 | 117 | this list of conditions and the following disclaimer. | ||
138 | 118 | |||
139 | 119 | o Redistributions in binary form must reproduce the above copyright | ||
140 | 120 | notice, this list of conditions and the following disclaimer in the | ||
141 | 121 | documentation and/or other materials provided with the distribution. | ||
142 | 122 | |||
143 | 123 | o The name of the author may not be used to endorse or promote products | ||
144 | 124 | derived from this software without specific prior written permission. | ||
145 | 125 | |||
146 | 126 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
147 | 127 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
148 | 128 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
149 | 129 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
150 | 130 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
151 | 131 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
152 | 132 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
153 | 133 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
154 | 134 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
155 | 135 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
156 | 136 | POSSIBILITY OF SUCH DAMAGE. | ||
157 | 137 | |||
158 | 138 | ---------------------------------------------------- | ||
159 | 139 | |||
160 | 140 | src/util/auto_vector.h (has been modified) | ||
161 | 141 | |||
162 | 142 | Copyright: 2003 Reliable Software | ||
163 | 143 | |||
164 | 144 | |||
165 | 145 | Redistribution and use in source and binary forms, with or without | ||
166 | 146 | modification, are permitted provided that the following conditions are met: | ||
167 | 147 | |||
168 | 148 | o Redistributions of source code must retain the above copyright notice, | ||
169 | 149 | this list of conditions and the following disclaimer. | ||
170 | 150 | |||
171 | 151 | o Redistributions in binary form must reproduce the above copyright | ||
172 | 152 | notice, this list of conditions and the following disclaimer in the | ||
173 | 153 | documentation and/or other materials provided with the distribution. | ||
174 | 154 | |||
175 | 155 | o The name of the author may not be used to endorse or promote products | ||
176 | 156 | derived from this software without specific prior written permission. | ||
177 | 157 | |||
178 | 158 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
179 | 159 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
180 | 160 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
181 | 161 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
182 | 162 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
183 | 163 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
184 | 164 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
185 | 165 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
186 | 166 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
187 | 167 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
188 | 168 | POSSIBILITY OF SUCH DAMAGE. | ||
189 | 169 | |||
190 | 170 | ---------------------------------------------------- | ||
191 | 171 | |||
192 | 172 | cmake_modules/FindBoost.cmake | ||
193 | 173 | |||
194 | 174 | Copyright: | ||
195 | 175 | 2006-2008 Andreas Schneider <mail@cynapses.org> | ||
196 | 176 | 2007 Wengo | ||
197 | 177 | 2007 Mike Jackson | ||
198 | 178 | 2008 Andreas Pakulat <apaku@gmx.de> | ||
199 | 179 | |||
200 | 180 | |||
201 | 181 | |||
202 | 182 | Redistribution AND use is allowed according to the terms of the New BSD license. | ||
203 | 183 | For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
204 | 184 | |||
205 | 185 | ---------------------------------------------------- | ||
206 | 186 | |||
207 | 187 | cmake_modules/FindJNI.cmake | ||
208 | 188 | cmake_modules/FindPythonLibs.cmake | ||
209 | 189 | cmake_modules/FindSWIG.cmake | ||
210 | 190 | |||
211 | 191 | Copyright: 2001-2009 Kitware, Inc. | ||
212 | 192 | |||
213 | 193 | |||
214 | 194 | Distributed under the OSI-approved BSD License (the "License"); | ||
215 | 195 | see accompanying file Copyright.txt for details. | ||
216 | 196 | |||
217 | 197 | This software is distributed WITHOUT ANY WARRANTY; without even the | ||
218 | 198 | implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
219 | 199 | See the License for more information. | ||
220 | 200 | |||
221 | 201 | CMake - Cross Platform Makefile Generator | ||
222 | 202 | Copyright 2000-2009 Kitware, Inc., Insight Software Consortium | ||
223 | 203 | All rights reserved. | ||
224 | 204 | |||
225 | 205 | Redistribution and use in source and binary forms, with or without | ||
226 | 206 | modification, are permitted provided that the following conditions | ||
227 | 207 | are met: | ||
228 | 208 | |||
229 | 209 | * Redistributions of source code must retain the above copyright | ||
230 | 210 | notice, this list of conditions and the following disclaimer. | ||
231 | 211 | |||
232 | 212 | * Redistributions in binary form must reproduce the above copyright | ||
233 | 213 | notice, this list of conditions and the following disclaimer in the | ||
234 | 214 | documentation and/or other materials provided with the distribution. | ||
235 | 215 | |||
236 | 216 | * Neither the names of Kitware, Inc., the Insight Software Consortium, | ||
237 | 217 | nor the names of their contributors may be used to endorse or promote | ||
238 | 218 | products derived from this software without specific prior written | ||
239 | 219 | permission. | ||
240 | 220 | |||
241 | 221 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
242 | 222 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
243 | 223 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
244 | 224 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
245 | 225 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
246 | 226 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
247 | 227 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
248 | 228 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
249 | 229 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
250 | 230 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
251 | 231 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
252 | 232 | |||
253 | 233 | ------------------------------------------------------------------------------ | ||
254 | 234 | |||
255 | 235 | The above copyright and license notice applies to distributions of | ||
256 | 236 | CMake in source and binary form. Some source files contain additional | ||
257 | 237 | notices of original copyright by their contributors; see each source | ||
258 | 238 | for details. Third-party software packages supplied with CMake under | ||
259 | 239 | compatible licenses provide their own copyright notices documented in | ||
260 | 240 | corresponding subdirectories. | ||
261 | 241 | |||
262 | 242 | ------------------------------------------------------------------------------ | ||
263 | 243 | |||
264 | 244 | CMake was initially developed by Kitware with the following sponsorship: | ||
265 | 245 | |||
266 | 246 | * National Library of Medicine at the National Institutes of Health | ||
267 | 247 | as part of the Insight Segmentation and Registration Toolkit (ITK). | ||
268 | 248 | |||
269 | 249 | * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel | ||
270 | 250 | Visualization Initiative. | ||
271 | 251 | |||
272 | 252 | * National Alliance for Medical Image Computing (NAMIC) is funded by the | ||
273 | 253 | National Institutes of Health through the NIH Roadmap for Medical Research, | ||
274 | 254 | Grant U54 EB005149. | ||
275 | 255 | |||
276 | 256 | * Kitware, Inc. | ||
277 | 257 | |||
278 | 258 | ---------------------------------------------------- | ||
279 | 259 | |||
280 | 260 | /xml.xsd | ||
281 | 261 | |||
282 | 262 | Copyright: 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University) | ||
283 | 263 | |||
284 | 264 | |||
285 | 265 | All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
286 | 266 | |||
287 | 267 | W3C Software Notice and License | ||
288 | 268 | |||
289 | 269 | This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license. | ||
290 | 270 | |||
291 | 271 | License | ||
292 | 272 | |||
293 | 273 | By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. | ||
294 | 274 | |||
295 | 275 | Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications: | ||
296 | 276 | •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. | ||
297 | 277 | •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code. | ||
298 | 278 | •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.) | ||
299 | 279 | |||
300 | 280 | Disclaimers | ||
301 | 281 | |||
302 | 282 | THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. | ||
303 | 283 | |||
304 | 284 | COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. | ||
305 | 285 | |||
306 | 286 | The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders. | ||
307 | 287 | |||
308 | 288 | ---------------------------------------------------- | ||
309 | 289 | |||
310 | 290 | schemas/xslt-xquery-serialization.xsd | ||
311 | 291 | |||
312 | 292 | Copyright: 2010 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University) | ||
313 | 293 | |||
314 | 294 | |||
315 | 295 | All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
316 | 296 | |||
317 | 297 | W3C Software Notice and License | ||
318 | 298 | |||
319 | 299 | This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license. | ||
320 | 300 | |||
321 | 301 | License | ||
322 | 302 | |||
323 | 303 | By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. | ||
324 | 304 | |||
325 | 305 | Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications: | ||
326 | 306 | •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. | ||
327 | 307 | •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code. | ||
328 | 308 | •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.) | ||
329 | 309 | |||
330 | 310 | Disclaimers | ||
331 | 311 | |||
332 | 312 | THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. | ||
333 | 313 | |||
334 | 314 | COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. | ||
335 | 315 | |||
336 | 316 | The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders. | ||
337 | 317 | |||
338 | 318 | ---------------------------------------------------- | ||
339 | 319 | |||
340 | 320 | modules/w3c/xpath-functions.xsd | ||
341 | 321 | |||
342 | 322 | Copyright: 2005 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University) | ||
343 | 323 | |||
344 | 324 | |||
345 | 325 | All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
346 | 326 | |||
347 | 327 | W3C Software Notice and License | ||
348 | 328 | |||
349 | 329 | This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license. | ||
350 | 330 | |||
351 | 331 | License | ||
352 | 332 | |||
353 | 333 | By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. | ||
354 | 334 | |||
355 | 335 | Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications: | ||
356 | 336 | •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. | ||
357 | 337 | •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code. | ||
358 | 338 | •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.) | ||
359 | 339 | |||
360 | 340 | Disclaimers | ||
361 | 341 | |||
362 | 342 | THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. | ||
363 | 343 | |||
364 | 344 | COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. | ||
365 | 345 | |||
366 | 346 | The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders. | ||
367 | 347 | |||
368 | 348 | ---------------------------------------------------- | ||
369 | 349 | |||
370 | 350 | include/xqc.h | ||
371 | 351 | |||
372 | 352 | Copyright: 2008, Matthias Brantner, John Snelson | ||
373 | 353 | |||
374 | 354 | |||
375 | 355 | * All rights reserved. | ||
376 | 356 | * | ||
377 | 357 | * Redistribution and use in source and binary forms, with or without | ||
378 | 358 | * modification, are permitted provided that the following conditions are met: | ||
379 | 359 | * | ||
380 | 360 | * * Redistributions of source code must retain the above copyright notice, | ||
381 | 361 | * this list of conditions and the following disclaimer. | ||
382 | 362 | * * Redistributions in binary form must reproduce the above copyright | ||
383 | 363 | * notice, this list of conditions and the following disclaimer in the | ||
384 | 364 | * documentation and/or other materials provided with the distribution. | ||
385 | 365 | * * Neither the name of the developers nor the names of contributors may be | ||
386 | 366 | * used to endorse or promote products derived from this software without | ||
387 | 367 | * specific prior written permission. | ||
388 | 368 | * | ||
389 | 369 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
390 | 370 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
391 | 371 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
392 | 372 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
393 | 373 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
394 | 374 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
395 | 375 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
396 | 376 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
397 | 377 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
398 | 378 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
399 | 379 | * POSSIBILITY OF SUCH DAMAGE. | ||
400 | 380 | |||
401 | 381 | ---------------------------------------------------- | ||
402 | 382 | |||
403 | 383 | modules/functx/functx.xq | ||
404 | 384 | |||
405 | 385 | Copyright: 2007 Datypic | ||
406 | 386 | |||
407 | 387 | |||
408 | 388 | : This library is free software; you can redistribute it and/or | ||
409 | 389 | : modify it under the terms of the GNU Lesser General Public | ||
410 | 390 | : License as published by the Free Software Foundation; either | ||
411 | 391 | : version 2.1 of the License. | ||
412 | 392 | |||
413 | 393 | : This library is distributed in the hope that it will be useful, | ||
414 | 394 | : but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
415 | 395 | : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
416 | 396 | : Lesser General Public License for more details. | ||
417 | 397 | |||
418 | 398 | : You should have received a copy of the GNU Lesser General Public | ||
419 | 399 | : License along with this library; if not, write to the Free Software | ||
420 | 400 | : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
421 | 401 | |||
422 | 402 | ---------------------------------------------------- | ||
423 | 403 | |||
424 | 404 | src/compiler/parser/FlexLexer.h | ||
425 | 405 | |||
426 | 406 | Copyright: 1993 The Regents of the University of California | ||
427 | 407 | |||
428 | 408 | |||
429 | 409 | // All rights reserved. | ||
430 | 410 | // | ||
431 | 411 | // This code is derived from software contributed to Berkeley by | ||
432 | 412 | // Kent Williams and Tom Epperly. | ||
433 | 413 | // | ||
434 | 414 | // Redistribution and use in source and binary forms, with or without | ||
435 | 415 | // modification, are permitted provided that the following conditions | ||
436 | 416 | // are met: | ||
437 | 417 | |||
438 | 418 | // 1. Redistributions of source code must retain the above copyright | ||
439 | 419 | // notice, this list of conditions and the following disclaimer. | ||
440 | 420 | // 2. Redistributions in binary form must reproduce the above copyright | ||
441 | 421 | // notice, this list of conditions and the following disclaimer in the | ||
442 | 422 | // documentation and/or other materials provided with the distribution. | ||
443 | 423 | |||
444 | 424 | // Neither the name of the University nor the names of its contributors | ||
445 | 425 | // may be used to endorse or promote products derived from this software | ||
446 | 426 | // without specific prior written permission. | ||
447 | 427 | |||
448 | 428 | // THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
449 | 429 | // IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
450 | 430 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
451 | 431 | // PURPOSE. | ||
452 | 432 | |||
453 | 433 | ---------------------------------------------------- | ||
454 | 434 | |||
455 | 435 | src/diagnostics/StackWalker.cpp | ||
456 | 436 | src/diagnostics/StackWalker.h | ||
457 | 437 | |||
458 | 438 | Copyright: 2005 Jochen Kalmbach | ||
459 | 439 | |||
460 | 440 | |||
461 | 441 | Under BSD License: http://www.opensource.org/licenses/bsd-license.php | ||
462 | 442 | |||
463 | 443 | ---------------------------------------------------- | ||
464 | 444 | |||
465 | 445 | src/util/singleton.h | ||
466 | 446 | src/util/threads.h | ||
467 | 447 | |||
468 | 448 | Copyright: 2001 Andrei Alexandrescu | ||
469 | 449 | |||
470 | 450 | |||
471 | 451 | This code accompanies the book: | ||
472 | 452 | Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design | ||
473 | 453 | Patterns Applied". Copyright (c) 2001. Addison-Wesley. | ||
474 | 454 | Permission to use, copy, modify, distribute and sell this software for any | ||
475 | 455 | purpose is hereby granted without fee, provided that the above copyright | ||
476 | 456 | notice appear in all copies and that both that copyright notice and this | ||
477 | 457 | permission notice appear in supporting documentation. | ||
478 | 458 | The author or Addison-Wesley Longman make no representations about the | ||
479 | 459 | suitability of this software for any purpose. It is provided "as is" | ||
480 | 460 | without express or implied warranty. | ||
481 | 461 | |||
482 | 462 | |||
483 | 463 | External libraries used by this project: | ||
484 | 464 | ---------------------------------------------------- | ||
485 | 465 | |||
486 | 466 | Name: LIBXML2 | ||
487 | 467 | Preferred version: 2.2.16 or higher | ||
488 | 468 | Is mandatory: true | ||
489 | 469 | Website: http://xmlsoft.org/ | ||
490 | 470 | License: MIT | ||
491 | 471 | Copyright: 1998-2002 Daniel Veillard. All Rights Reserved. | ||
492 | 472 | External notice: | ||
493 | 473 | |||
494 | 474 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
495 | 475 | |||
496 | 476 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
497 | 477 | |||
498 | 478 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
499 | 479 | |||
500 | 480 | Except as contained in this notice, the name of Daniel Veillard shall not | ||
501 | 481 | be used in advertising or otherwise to promote the sale, use or other deal- | ||
502 | 482 | ings in this Software without prior written authorization from him. | ||
503 | 483 | |||
504 | 484 | ---------------------------------------------------- | ||
505 | 485 | |||
506 | 486 | Name: LIBXSLT | ||
507 | 487 | Preferred version: 1.1.26 | ||
508 | 488 | Is mandatory: false | ||
509 | 489 | Website: http://xmlsoft.org/XSLT/ | ||
510 | 490 | License: MIT | ||
511 | 491 | Copyright: 2001-2002 Daniel Veillard. All Rights Reserved. | ||
512 | 492 | External notice: | ||
513 | 493 | |||
514 | 494 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
515 | 495 | |||
516 | 496 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
517 | 497 | |||
518 | 498 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL DANIEL VEILLARD BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
519 | 499 | |||
520 | 500 | |||
521 | 501 | Except as contained in this notice, the name of Daniel Veillard shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from him. | ||
522 | 502 | |||
523 | 503 | |||
524 | 504 | ---------------------------------------------------- | ||
525 | 505 | |||
526 | 506 | Name: ICU4C | ||
527 | 507 | Preferred version: 3.6 or higher | ||
528 | 508 | Is mandatory: true | ||
529 | 509 | Website: http://www.icu-project.org/ | ||
530 | 510 | License: ICU License | ||
531 | 511 | Copyright: 1995-2011 International Business Machines Corporation and others | ||
532 | 512 | External notice: | ||
533 | 513 | |||
534 | 514 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice(s) and this permission notice appear in all copies of the Software and that both the above copyright notice(s) and this permission notice appear in supporting documentation. | ||
535 | 515 | |||
536 | 516 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
537 | 517 | |||
538 | 518 | Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder. | ||
539 | 519 | |||
540 | 520 | ---------------------------------------------------- | ||
541 | 521 | |||
542 | 522 | Name: CURL | ||
543 | 523 | Preferred version: above 7.12 | ||
544 | 524 | Is mandatory: false | ||
545 | 525 | Website: http://curl.haxx.se/ | ||
546 | 526 | License: MIT/X derivate license | ||
547 | 527 | Copyright: 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>. | ||
548 | 528 | External notice: | ||
549 | 529 | |||
550 | 530 | All rights reserved. | ||
551 | 531 | |||
552 | 532 | Permission to use, copy, modify, and distribute this software for any purpose | ||
553 | 533 | with or without fee is hereby granted, provided that the above copyright | ||
554 | 534 | notice and this permission notice appear in all copies. | ||
555 | 535 | |||
556 | 536 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
557 | 537 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
558 | 538 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN | ||
559 | 539 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
560 | 540 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
561 | 541 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE | ||
562 | 542 | OR OTHER DEALINGS IN THE SOFTWARE. | ||
563 | 543 | |||
564 | 544 | Except as contained in this notice, the name of a copyright holder shall not | ||
565 | 545 | be used in advertising or otherwise to promote the sale, use or other dealings | ||
566 | 546 | in this Software without prior written authorization of the copyright holder. | ||
567 | 547 | |||
568 | 548 | ---------------------------------------------------- | ||
569 | 549 | |||
570 | 550 | Name: ICONV | ||
571 | 551 | Preferred version: above 1.12 | ||
572 | 552 | Is mandatory: true | ||
573 | 553 | Website: http://www.gnu.org/software/libiconv/ | ||
574 | 554 | License: LGPL | ||
575 | 555 | Copyright: 1998, 2010 Free Software Foundation, Inc. | ||
576 | 556 | External notice: | ||
577 | 557 | |||
578 | 558 | ---------------------------------------------------- | ||
579 | 559 | |||
580 | 560 | Name: ZLIB | ||
581 | 561 | Preferred version: 1.2.5 | ||
582 | 562 | Is mandatory: true | ||
583 | 563 | Website: http://www.zlib.net/ | ||
584 | 564 | Copyright: 1995-2004 Jean-loup Gailly and Mark Adler | ||
585 | 565 | External notice: | ||
586 | 566 | |||
587 | 567 | This software is provided 'as-is', without any express or implied | ||
588 | 568 | warranty. In no event will the authors be held liable for any damages | ||
589 | 569 | arising from the use of this software. | ||
590 | 570 | |||
591 | 571 | Permission is granted to anyone to use this software for any purpose, | ||
592 | 572 | including commercial applications, and to alter it and redistribute it | ||
593 | 573 | freely, subject to the following restrictions: | ||
594 | 574 | |||
595 | 575 | 1. The origin of this software must not be misrepresented; you must not | ||
596 | 576 | claim that you wrote the original software. If you use this software | ||
597 | 577 | in a product, an acknowledgment in the product documentation would be | ||
598 | 578 | appreciated but is not required. | ||
599 | 579 | 2. Altered source versions must be plainly marked as such, and must not be | ||
600 | 580 | misrepresented as being the original software. | ||
601 | 581 | 3. This notice may not be removed or altered from any source distribution. | ||
602 | 582 | |||
603 | 583 | Jean-loup Gailly jloup@gzip.org | ||
604 | 584 | Mark Adler madler@alumni.caltech.edu | ||
605 | 585 | |||
606 | 586 | ---------------------------------------------------- | ||
607 | 587 | |||
608 | 588 | Name: XERCES | ||
609 | 589 | Preferred version: 2.8.0 or higher | ||
610 | 590 | Is mandatory: true | ||
611 | 591 | Website: http://xerces.apache.org/xerces-c/ | ||
612 | 592 | License: Apache 2 | ||
613 | 593 | Copyright: Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved. | ||
614 | 594 | External notice: | ||
615 | 595 | |||
616 | 596 | http://www.apache.org/licenses/LICENSE-2.0 | ||
617 | 597 | |||
618 | 598 | ---------------------------------------------------- | ||
619 | 599 | |||
620 | 600 | Name: BOOST (boost_filesystem) | ||
621 | 601 | Preferred version: 1.32 or higher | ||
622 | 602 | Is mandatory: false | ||
623 | 603 | Website: http://www.boost.org/ | ||
624 | 604 | License: Boost Software License v1.0 | ||
625 | 605 | Copyright: | ||
626 | 606 | Beman Dawes, David Abrahams, 1998-2005. | ||
627 | 607 | Rene Rivera 2004-2007 | ||
628 | 608 | |||
629 | 609 | External notice: | ||
630 | 610 | |||
631 | 611 | Permission is hereby granted, free of charge, to any person or organization | ||
632 | 612 | obtaining a copy of the software and accompanying documentation covered by | ||
633 | 613 | this license (the "Software") to use, reproduce, display, distribute, | ||
634 | 614 | execute, and transmit the Software, and to prepare derivative works of the | ||
635 | 615 | Software, and to permit third-parties to whom the Software is furnished to | ||
636 | 616 | do so, all subject to the following: | ||
637 | 617 | |||
638 | 618 | The copyright notices in the Software and this entire statement, including | ||
639 | 619 | the above license grant, this restriction and the following disclaimer, | ||
640 | 620 | must be included in all copies of the Software, in whole or in part, and | ||
641 | 621 | all derivative works of the Software, unless such copies or derivative | ||
642 | 622 | works are solely in the form of machine-executable object code generated by | ||
643 | 623 | a source language processor. | ||
644 | 624 | |||
645 | 625 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
646 | 626 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
647 | 627 | FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT | ||
648 | 628 | SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE | ||
649 | 629 | FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, | ||
650 | 630 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
651 | 631 | DEALINGS IN THE SOFTWARE. | ||
652 | 632 | |||
653 | 633 | |||
654 | 634 | External applications used by this project: | ||
655 | 635 | ---------------------------------------------------- | ||
656 | 636 | |||
657 | 637 | Name: FLEX | ||
658 | 638 | Preferred version: 2.5.33 | ||
659 | 639 | Is mandatory: false | ||
660 | 640 | Website: http://flex.sourceforge.net/ | ||
661 | 641 | Copyright: | ||
662 | 642 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The Flex Project. | ||
663 | 643 | 1990, 1997 The Regents of the University of California. All rights reserved. | ||
664 | 644 | |||
665 | 645 | External notice: | ||
666 | 646 | |||
667 | 647 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
668 | 648 | |||
669 | 649 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
670 | 650 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
671 | 651 | |||
672 | 652 | Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
673 | 653 | |||
674 | 654 | THIS SOFTWARE IS PROVIDED “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
675 | 655 | |||
676 | 656 | ---------------------------------------------------- | ||
677 | 657 | |||
678 | 658 | Name: BISON | ||
679 | 659 | Preferred version: 2.4 or higher | ||
680 | 660 | Is mandatory: false | ||
681 | 661 | Website: http://www.gnu.org/software/bison/ | ||
682 | 662 | License: GPL | ||
683 | 663 | Copyright: 1998, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | ||
684 | 664 | External notice: | ||
685 | 665 | |||
686 | 666 | ---------------------------------------------------- | ||
687 | 667 | |||
688 | 668 | Name: DOXYGEN | ||
689 | 669 | Preferred version: v1.7.4 | ||
690 | 670 | Is mandatory: false | ||
691 | 671 | Website: www.doxygen.org | ||
692 | 672 | License: GPL | ||
693 | 673 | Copyright: 1997-2011 by Dimitri van Heesch | ||
694 | 674 | External notice: | ||
695 | 675 | |||
696 | 676 | Permission to use, copy, modify, and distribute this software and its documentation under the terms of the GNU General Public License is hereby granted. | ||
697 | 677 | No representations are made about the suitability of this software for any purpose. | ||
698 | 678 | It is provided "as is" without express or implied warranty. | ||
699 | 679 | See the GNU General Public License for more details. | ||
700 | 680 | |||
701 | 681 | Documents produced by doxygen are derivative works derived from the input used in their production; they are not affected by this license. | ||
702 | 682 | |||
703 | 683 | ---------------------------------------------------- | ||
704 | 684 | |||
705 | 685 | Name: CMAKE | ||
706 | 686 | Preferred version: 2.8.4 | ||
707 | 687 | Is mandatory: true | ||
708 | 688 | Website: http://www.cmake.org/ | ||
709 | 689 | License: Creative Commons Attribution-NoDerivs 3.0 Unported License | ||
710 | 690 | Copyright: 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved. | ||
711 | 691 | External notice: | ||
712 | 692 | |||
713 | 693 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
714 | 694 | |||
715 | 695 | Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
716 | 696 | |||
717 | 697 | Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
718 | 698 | |||
719 | 699 | Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
720 | 700 | |||
721 | 701 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
722 | 702 | |||
723 | 703 | ---------------------------------------------------- | ||
724 | 704 | |||
725 | 705 | Name: SWIG | ||
726 | 706 | Preferred version: 2.0.4 or above | ||
727 | 707 | Is mandatory: false | ||
728 | 708 | Website: http://www.swig.org/ | ||
729 | 709 | License: GPL | ||
730 | 710 | Copyright: | ||
731 | 711 | 1995-2011 The SWIG Developers | ||
732 | 712 | 2005-2006 Arizona Board of Regents (University of Arizona). | ||
733 | 713 | 1998-2005 University of Chicago. | ||
734 | 714 | 1995-1998 The University of Utah and the Regents of the University of California | ||
735 | 715 | |||
736 | 716 | External notice: | ||
737 | 717 | |||
738 | 718 | SWIG is free software: you can redistribute it and/or modify it | ||
739 | 719 | under the terms of the GNU General Public License as published by | ||
740 | 720 | the Free Software Foundation, either version 3 of the License, or | ||
741 | 721 | (at your option) any later version. See the LICENSE-GPL file for | ||
742 | 722 | the full terms of the GNU General Public license version 3. | ||
743 | 723 | |||
744 | 724 | Portions of SWIG are also licensed under the terms of the licenses | ||
745 | 725 | in the file LICENSE-UNIVERSITIES. You must observe the terms of | ||
746 | 726 | these licenses, as well as the terms of the GNU General Public License, | ||
747 | 727 | when you distribute SWIG. | ||
748 | 728 | |||
749 | 729 | The SWIG library and examples, under the Lib and Examples top level | ||
750 | 730 | directories, are distributed under the following terms: | ||
751 | 731 | |||
752 | 732 | You may copy, modify, distribute, and make derivative works based on | ||
753 | 733 | this software, in source code or object code form, without | ||
754 | 734 | restriction. If you distribute the software to others, you may do | ||
755 | 735 | so according to the terms of your choice. This software is offered as | ||
756 | 736 | is, without warranty of any kind. | ||
757 | 737 | |||
758 | 738 | See the COPYRIGHT file for a list of contributors to SWIG and their | ||
759 | 739 | copyright notices. | ||
760 | 740 | |||
761 | 0 | \ No newline at end of file | 741 | \ No newline at end of file |
762 | 1 | 742 | ||
763 | === removed file 'NOTICE.txt' | |||
764 | --- NOTICE.txt 2012-03-28 05:19:57 +0000 | |||
765 | +++ NOTICE.txt 1970-01-01 00:00:00 +0000 | |||
766 | @@ -1,740 +0,0 @@ | |||
767 | 1 | ----------- | ||
768 | 2 | Zorba 2.2.0 | ||
769 | 3 | ----------- | ||
770 | 4 | |||
771 | 5 | (Note: This file is generated automatically from NOTICE.xml. | ||
772 | 6 | Please do not modify this file directly.) | ||
773 | 7 | |||
774 | 8 | |||
775 | 9 | |||
776 | 10 | |||
777 | 11 | Apache 2 | ||
778 | 12 | |||
779 | 13 | Copyright 2006-2011 The FLWOR Foundation | ||
780 | 14 | |||
781 | 15 | See LICENSE.txt for license information. | ||
782 | 16 | |||
783 | 17 | ------------------------ | ||
784 | 18 | This product includes software developed at | ||
785 | 19 | The FLWOR Foundation (http://www.flworfound.org/). | ||
786 | 20 | |||
787 | 21 | ------------------------ | ||
788 | 22 | Portions of this software were developed at the Systems | ||
789 | 23 | Group of the ETH Zurich, Switzerland. | ||
790 | 24 | |||
791 | 25 | |||
792 | 26 | Other files used by this project: | ||
793 | 27 | ---------------------------------------------------- | ||
794 | 28 | |||
795 | 29 | src/zorbatypes/m_apm.h | ||
796 | 30 | src/zorbatypes/mapm/ | ||
797 | 31 | |||
798 | 32 | Copyright: 1999-2007 Michael C. Ring | ||
799 | 33 | Website: http://www.tc.umn.edu/~ringx004/mapm-main.html | ||
800 | 34 | |||
801 | 35 | This software is Freeware. | ||
802 | 36 | |||
803 | 37 | Permission to use, copy, and distribute this software and its | ||
804 | 38 | documentation for any purpose with or without fee is hereby granted, | ||
805 | 39 | provided that the above copyright notice appear in all copies and | ||
806 | 40 | that both that copyright notice and this permission notice appear | ||
807 | 41 | in supporting documentation. | ||
808 | 42 | |||
809 | 43 | Permission to modify the software is granted. Permission to distribute | ||
810 | 44 | the modified code is granted. Modifications are to be distributed by | ||
811 | 45 | using the file 'license.txt' as a template to modify the file header. | ||
812 | 46 | 'license.txt' is available in the official MAPM distribution. | ||
813 | 47 | |||
814 | 48 | To distribute modified source code, insert the file 'license.txt' | ||
815 | 49 | at the top of all modified source code files and edit accordingly. | ||
816 | 50 | |||
817 | 51 | This software is provided "as is" without express or implied warranty. | ||
818 | 52 | |||
819 | 53 | ---------------------------------------------------- | ||
820 | 54 | |||
821 | 55 | src/zorbamisc/config/stdint.h | ||
822 | 56 | |||
823 | 57 | Copyright: 2006 Alexander Chemeris | ||
824 | 58 | |||
825 | 59 | |||
826 | 60 | Redistribution and use in source and binary forms, with or without | ||
827 | 61 | modification, are permitted provided that the following conditions are met: | ||
828 | 62 | |||
829 | 63 | 1. Redistributions of source code must retain the above copyright notice, | ||
830 | 64 | this list of conditions and the following disclaimer. | ||
831 | 65 | |||
832 | 66 | 2. Redistributions in binary form must reproduce the above copyright | ||
833 | 67 | notice, this list of conditions and the following disclaimer in the | ||
834 | 68 | documentation and/or other materials provided with the distribution. | ||
835 | 69 | |||
836 | 70 | 3. The name of the author may be used to endorse or promote products | ||
837 | 71 | derived from this software without specific prior written permission. | ||
838 | 72 | |||
839 | 73 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
840 | 74 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
841 | 75 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
842 | 76 | EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
843 | 77 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
844 | 78 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
845 | 79 | OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
846 | 80 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | ||
847 | 81 | OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
848 | 82 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
849 | 83 | |||
850 | 84 | ---------------------------------------------------- | ||
851 | 85 | |||
852 | 86 | src/zorbautils/stemmer/ | ||
853 | 87 | |||
854 | 88 | Copyright: 2001 Dr. Martin Porter | ||
855 | 89 | |||
856 | 90 | |||
857 | 91 | All the software given out on this Snowball site is covered by the BSD | ||
858 | 92 | License (see http://www.opensource.org/licenses/bsd-license.html), with | ||
859 | 93 | Copyright (c) 2001, Dr Martin Porter, and (for the Java developments) | ||
860 | 94 | Copyright (c) 2002, Richard Boulton. | ||
861 | 95 | |||
862 | 96 | Essentially, all this means is that you can do what you like with the code, | ||
863 | 97 | except claim another Copyright for it, or claim that it is issued under a | ||
864 | 98 | different license. The software is also issued without warranties, which | ||
865 | 99 | means that if anyone suffers through its use, they cannot come back and sue | ||
866 | 100 | you. You also have to alert anyone to whom you give the Snowball software to | ||
867 | 101 | the fact that it is covered by the BSD license. | ||
868 | 102 | |||
869 | 103 | We have not bothered to insert the licensing arrangement into the text of | ||
870 | 104 | the Snowball software. | ||
871 | 105 | |||
872 | 106 | ---------------------------------------------------- | ||
873 | 107 | |||
874 | 108 | src/util/less.h | ||
875 | 109 | |||
876 | 110 | Copyright: 1998 Paul J. Lucas | ||
877 | 111 | |||
878 | 112 | |||
879 | 113 | Redistribution and use in source and binary forms, with or without | ||
880 | 114 | modification, are permitted provided that the following conditions are met: | ||
881 | 115 | |||
882 | 116 | o Redistributions of source code must retain the above copyright notice, | ||
883 | 117 | this list of conditions and the following disclaimer. | ||
884 | 118 | |||
885 | 119 | o Redistributions in binary form must reproduce the above copyright | ||
886 | 120 | notice, this list of conditions and the following disclaimer in the | ||
887 | 121 | documentation and/or other materials provided with the distribution. | ||
888 | 122 | |||
889 | 123 | o The name of the author may not be used to endorse or promote products | ||
890 | 124 | derived from this software without specific prior written permission. | ||
891 | 125 | |||
892 | 126 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
893 | 127 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
894 | 128 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
895 | 129 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
896 | 130 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
897 | 131 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
898 | 132 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
899 | 133 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
900 | 134 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
901 | 135 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
902 | 136 | POSSIBILITY OF SUCH DAMAGE. | ||
903 | 137 | |||
904 | 138 | ---------------------------------------------------- | ||
905 | 139 | |||
906 | 140 | src/util/auto_vector.h (has been modified) | ||
907 | 141 | |||
908 | 142 | Copyright: 2003 Reliable Software | ||
909 | 143 | |||
910 | 144 | |||
911 | 145 | Redistribution and use in source and binary forms, with or without | ||
912 | 146 | modification, are permitted provided that the following conditions are met: | ||
913 | 147 | |||
914 | 148 | o Redistributions of source code must retain the above copyright notice, | ||
915 | 149 | this list of conditions and the following disclaimer. | ||
916 | 150 | |||
917 | 151 | o Redistributions in binary form must reproduce the above copyright | ||
918 | 152 | notice, this list of conditions and the following disclaimer in the | ||
919 | 153 | documentation and/or other materials provided with the distribution. | ||
920 | 154 | |||
921 | 155 | o The name of the author may not be used to endorse or promote products | ||
922 | 156 | derived from this software without specific prior written permission. | ||
923 | 157 | |||
924 | 158 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
925 | 159 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
926 | 160 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
927 | 161 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
928 | 162 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
929 | 163 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
930 | 164 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
931 | 165 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
932 | 166 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
933 | 167 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
934 | 168 | POSSIBILITY OF SUCH DAMAGE. | ||
935 | 169 | |||
936 | 170 | ---------------------------------------------------- | ||
937 | 171 | |||
938 | 172 | cmake_modules/FindBoost.cmake | ||
939 | 173 | |||
940 | 174 | Copyright: | ||
941 | 175 | 2006-2008 Andreas Schneider <mail@cynapses.org> | ||
942 | 176 | 2007 Wengo | ||
943 | 177 | 2007 Mike Jackson | ||
944 | 178 | 2008 Andreas Pakulat <apaku@gmx.de> | ||
945 | 179 | |||
946 | 180 | |||
947 | 181 | |||
948 | 182 | Redistribution AND use is allowed according to the terms of the New BSD license. | ||
949 | 183 | For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
950 | 184 | |||
951 | 185 | ---------------------------------------------------- | ||
952 | 186 | |||
953 | 187 | cmake_modules/FindJNI.cmake | ||
954 | 188 | cmake_modules/FindPythonLibs.cmake | ||
955 | 189 | cmake_modules/FindSWIG.cmake | ||
956 | 190 | |||
957 | 191 | Copyright: 2001-2009 Kitware, Inc. | ||
958 | 192 | |||
959 | 193 | |||
960 | 194 | Distributed under the OSI-approved BSD License (the "License"); | ||
961 | 195 | see accompanying file Copyright.txt for details. | ||
962 | 196 | |||
963 | 197 | This software is distributed WITHOUT ANY WARRANTY; without even the | ||
964 | 198 | implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
965 | 199 | See the License for more information. | ||
966 | 200 | |||
967 | 201 | CMake - Cross Platform Makefile Generator | ||
968 | 202 | Copyright 2000-2009 Kitware, Inc., Insight Software Consortium | ||
969 | 203 | All rights reserved. | ||
970 | 204 | |||
971 | 205 | Redistribution and use in source and binary forms, with or without | ||
972 | 206 | modification, are permitted provided that the following conditions | ||
973 | 207 | are met: | ||
974 | 208 | |||
975 | 209 | * Redistributions of source code must retain the above copyright | ||
976 | 210 | notice, this list of conditions and the following disclaimer. | ||
977 | 211 | |||
978 | 212 | * Redistributions in binary form must reproduce the above copyright | ||
979 | 213 | notice, this list of conditions and the following disclaimer in the | ||
980 | 214 | documentation and/or other materials provided with the distribution. | ||
981 | 215 | |||
982 | 216 | * Neither the names of Kitware, Inc., the Insight Software Consortium, | ||
983 | 217 | nor the names of their contributors may be used to endorse or promote | ||
984 | 218 | products derived from this software without specific prior written | ||
985 | 219 | permission. | ||
986 | 220 | |||
987 | 221 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
988 | 222 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
989 | 223 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
990 | 224 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
991 | 225 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
992 | 226 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
993 | 227 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
994 | 228 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
995 | 229 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
996 | 230 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
997 | 231 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
998 | 232 | |||
999 | 233 | ------------------------------------------------------------------------------ | ||
1000 | 234 | |||
1001 | 235 | The above copyright and license notice applies to distributions of | ||
1002 | 236 | CMake in source and binary form. Some source files contain additional | ||
1003 | 237 | notices of original copyright by their contributors; see each source | ||
1004 | 238 | for details. Third-party software packages supplied with CMake under | ||
1005 | 239 | compatible licenses provide their own copyright notices documented in | ||
1006 | 240 | corresponding subdirectories. | ||
1007 | 241 | |||
1008 | 242 | ------------------------------------------------------------------------------ | ||
1009 | 243 | |||
1010 | 244 | CMake was initially developed by Kitware with the following sponsorship: | ||
1011 | 245 | |||
1012 | 246 | * National Library of Medicine at the National Institutes of Health | ||
1013 | 247 | as part of the Insight Segmentation and Registration Toolkit (ITK). | ||
1014 | 248 | |||
1015 | 249 | * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel | ||
1016 | 250 | Visualization Initiative. | ||
1017 | 251 | |||
1018 | 252 | * National Alliance for Medical Image Computing (NAMIC) is funded by the | ||
1019 | 253 | National Institutes of Health through the NIH Roadmap for Medical Research, | ||
1020 | 254 | Grant U54 EB005149. | ||
1021 | 255 | |||
1022 | 256 | * Kitware, Inc. | ||
1023 | 257 | |||
1024 | 258 | ---------------------------------------------------- | ||
1025 | 259 | |||
1026 | 260 | /xml.xsd | ||
1027 | 261 | |||
1028 | 262 | Copyright: 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University) | ||
1029 | 263 | |||
1030 | 264 | |||
1031 | 265 | All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
1032 | 266 | |||
1033 | 267 | W3C Software Notice and License | ||
1034 | 268 | |||
1035 | 269 | This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license. | ||
1036 | 270 | |||
1037 | 271 | License | ||
1038 | 272 | |||
1039 | 273 | By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. | ||
1040 | 274 | |||
1041 | 275 | Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications: | ||
1042 | 276 | •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. | ||
1043 | 277 | •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code. | ||
1044 | 278 | •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.) | ||
1045 | 279 | |||
1046 | 280 | Disclaimers | ||
1047 | 281 | |||
1048 | 282 | THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. | ||
1049 | 283 | |||
1050 | 284 | COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. | ||
1051 | 285 | |||
1052 | 286 | The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders. | ||
1053 | 287 | |||
1054 | 288 | ---------------------------------------------------- | ||
1055 | 289 | |||
1056 | 290 | schemas/xslt-xquery-serialization.xsd | ||
1057 | 291 | |||
1058 | 292 | Copyright: 2010 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University) | ||
1059 | 293 | |||
1060 | 294 | |||
1061 | 295 | All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
1062 | 296 | |||
1063 | 297 | W3C Software Notice and License | ||
1064 | 298 | |||
1065 | 299 | This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license. | ||
1066 | 300 | |||
1067 | 301 | License | ||
1068 | 302 | |||
1069 | 303 | By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. | ||
1070 | 304 | |||
1071 | 305 | Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications: | ||
1072 | 306 | •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. | ||
1073 | 307 | •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code. | ||
1074 | 308 | •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.) | ||
1075 | 309 | |||
1076 | 310 | Disclaimers | ||
1077 | 311 | |||
1078 | 312 | THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. | ||
1079 | 313 | |||
1080 | 314 | COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. | ||
1081 | 315 | |||
1082 | 316 | The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders. | ||
1083 | 317 | |||
1084 | 318 | ---------------------------------------------------- | ||
1085 | 319 | |||
1086 | 320 | modules/w3c/xpath-functions.xsd | ||
1087 | 321 | |||
1088 | 322 | Copyright: 2005 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University) | ||
1089 | 323 | |||
1090 | 324 | |||
1091 | 325 | All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
1092 | 326 | |||
1093 | 327 | W3C Software Notice and License | ||
1094 | 328 | |||
1095 | 329 | This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license. | ||
1096 | 330 | |||
1097 | 331 | License | ||
1098 | 332 | |||
1099 | 333 | By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. | ||
1100 | 334 | |||
1101 | 335 | Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications: | ||
1102 | 336 | •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. | ||
1103 | 337 | •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code. | ||
1104 | 338 | •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.) | ||
1105 | 339 | |||
1106 | 340 | Disclaimers | ||
1107 | 341 | |||
1108 | 342 | THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. | ||
1109 | 343 | |||
1110 | 344 | COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. | ||
1111 | 345 | |||
1112 | 346 | The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders. | ||
1113 | 347 | |||
1114 | 348 | ---------------------------------------------------- | ||
1115 | 349 | |||
1116 | 350 | include/xqc.h | ||
1117 | 351 | |||
1118 | 352 | Copyright: 2008, Matthias Brantner, John Snelson | ||
1119 | 353 | |||
1120 | 354 | |||
1121 | 355 | * All rights reserved. | ||
1122 | 356 | * | ||
1123 | 357 | * Redistribution and use in source and binary forms, with or without | ||
1124 | 358 | * modification, are permitted provided that the following conditions are met: | ||
1125 | 359 | * | ||
1126 | 360 | * * Redistributions of source code must retain the above copyright notice, | ||
1127 | 361 | * this list of conditions and the following disclaimer. | ||
1128 | 362 | * * Redistributions in binary form must reproduce the above copyright | ||
1129 | 363 | * notice, this list of conditions and the following disclaimer in the | ||
1130 | 364 | * documentation and/or other materials provided with the distribution. | ||
1131 | 365 | * * Neither the name of the developers nor the names of contributors may be | ||
1132 | 366 | * used to endorse or promote products derived from this software without | ||
1133 | 367 | * specific prior written permission. | ||
1134 | 368 | * | ||
1135 | 369 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
1136 | 370 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
1137 | 371 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
1138 | 372 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
1139 | 373 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
1140 | 374 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
1141 | 375 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
1142 | 376 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
1143 | 377 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
1144 | 378 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
1145 | 379 | * POSSIBILITY OF SUCH DAMAGE. | ||
1146 | 380 | |||
1147 | 381 | ---------------------------------------------------- | ||
1148 | 382 | |||
1149 | 383 | modules/functx/functx.xq | ||
1150 | 384 | |||
1151 | 385 | Copyright: 2007 Datypic | ||
1152 | 386 | |||
1153 | 387 | |||
1154 | 388 | : This library is free software; you can redistribute it and/or | ||
1155 | 389 | : modify it under the terms of the GNU Lesser General Public | ||
1156 | 390 | : License as published by the Free Software Foundation; either | ||
1157 | 391 | : version 2.1 of the License. | ||
1158 | 392 | |||
1159 | 393 | : This library is distributed in the hope that it will be useful, | ||
1160 | 394 | : but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1161 | 395 | : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
1162 | 396 | : Lesser General Public License for more details. | ||
1163 | 397 | |||
1164 | 398 | : You should have received a copy of the GNU Lesser General Public | ||
1165 | 399 | : License along with this library; if not, write to the Free Software | ||
1166 | 400 | : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
1167 | 401 | |||
1168 | 402 | ---------------------------------------------------- | ||
1169 | 403 | |||
1170 | 404 | src/compiler/parser/FlexLexer.h | ||
1171 | 405 | |||
1172 | 406 | Copyright: 1993 The Regents of the University of California | ||
1173 | 407 | |||
1174 | 408 | |||
1175 | 409 | // All rights reserved. | ||
1176 | 410 | // | ||
1177 | 411 | // This code is derived from software contributed to Berkeley by | ||
1178 | 412 | // Kent Williams and Tom Epperly. | ||
1179 | 413 | // | ||
1180 | 414 | // Redistribution and use in source and binary forms, with or without | ||
1181 | 415 | // modification, are permitted provided that the following conditions | ||
1182 | 416 | // are met: | ||
1183 | 417 | |||
1184 | 418 | // 1. Redistributions of source code must retain the above copyright | ||
1185 | 419 | // notice, this list of conditions and the following disclaimer. | ||
1186 | 420 | // 2. Redistributions in binary form must reproduce the above copyright | ||
1187 | 421 | // notice, this list of conditions and the following disclaimer in the | ||
1188 | 422 | // documentation and/or other materials provided with the distribution. | ||
1189 | 423 | |||
1190 | 424 | // Neither the name of the University nor the names of its contributors | ||
1191 | 425 | // may be used to endorse or promote products derived from this software | ||
1192 | 426 | // without specific prior written permission. | ||
1193 | 427 | |||
1194 | 428 | // THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
1195 | 429 | // IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
1196 | 430 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
1197 | 431 | // PURPOSE. | ||
1198 | 432 | |||
1199 | 433 | ---------------------------------------------------- | ||
1200 | 434 | |||
1201 | 435 | src/diagnostics/StackWalker.cpp | ||
1202 | 436 | src/diagnostics/StackWalker.h | ||
1203 | 437 | |||
1204 | 438 | Copyright: 2005 Jochen Kalmbach | ||
1205 | 439 | |||
1206 | 440 | |||
1207 | 441 | Under BSD License: http://www.opensource.org/licenses/bsd-license.php | ||
1208 | 442 | |||
1209 | 443 | ---------------------------------------------------- | ||
1210 | 444 | |||
1211 | 445 | src/util/singleton.h | ||
1212 | 446 | src/util/threads.h | ||
1213 | 447 | |||
1214 | 448 | Copyright: 2001 Andrei Alexandrescu | ||
1215 | 449 | |||
1216 | 450 | |||
1217 | 451 | This code accompanies the book: | ||
1218 | 452 | Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design | ||
1219 | 453 | Patterns Applied". Copyright (c) 2001. Addison-Wesley. | ||
1220 | 454 | Permission to use, copy, modify, distribute and sell this software for any | ||
1221 | 455 | purpose is hereby granted without fee, provided that the above copyright | ||
1222 | 456 | notice appear in all copies and that both that copyright notice and this | ||
1223 | 457 | permission notice appear in supporting documentation. | ||
1224 | 458 | The author or Addison-Wesley Longman make no representations about the | ||
1225 | 459 | suitability of this software for any purpose. It is provided "as is" | ||
1226 | 460 | without express or implied warranty. | ||
1227 | 461 | |||
1228 | 462 | |||
1229 | 463 | External libraries used by this project: | ||
1230 | 464 | ---------------------------------------------------- | ||
1231 | 465 | |||
1232 | 466 | Name: LIBXML2 | ||
1233 | 467 | Preferred version: 2.2.16 or higher | ||
1234 | 468 | Is mandatory: true | ||
1235 | 469 | Website: http://xmlsoft.org/ | ||
1236 | 470 | License: MIT | ||
1237 | 471 | Copyright: 1998-2002 Daniel Veillard. All Rights Reserved. | ||
1238 | 472 | External notice: | ||
1239 | 473 | |||
1240 | 474 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
1241 | 475 | |||
1242 | 476 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
1243 | 477 | |||
1244 | 478 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
1245 | 479 | |||
1246 | 480 | Except as contained in this notice, the name of Daniel Veillard shall not | ||
1247 | 481 | be used in advertising or otherwise to promote the sale, use or other deal- | ||
1248 | 482 | ings in this Software without prior written authorization from him. | ||
1249 | 483 | |||
1250 | 484 | ---------------------------------------------------- | ||
1251 | 485 | |||
1252 | 486 | Name: LIBXSLT | ||
1253 | 487 | Preferred version: 1.1.26 | ||
1254 | 488 | Is mandatory: false | ||
1255 | 489 | Website: http://xmlsoft.org/XSLT/ | ||
1256 | 490 | License: MIT | ||
1257 | 491 | Copyright: 2001-2002 Daniel Veillard. All Rights Reserved. | ||
1258 | 492 | External notice: | ||
1259 | 493 | |||
1260 | 494 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
1261 | 495 | |||
1262 | 496 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
1263 | 497 | |||
1264 | 498 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL DANIEL VEILLARD BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
1265 | 499 | |||
1266 | 500 | |||
1267 | 501 | Except as contained in this notice, the name of Daniel Veillard shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from him. | ||
1268 | 502 | |||
1269 | 503 | |||
1270 | 504 | ---------------------------------------------------- | ||
1271 | 505 | |||
1272 | 506 | Name: ICU4C | ||
1273 | 507 | Preferred version: 3.6 or higher | ||
1274 | 508 | Is mandatory: true | ||
1275 | 509 | Website: http://www.icu-project.org/ | ||
1276 | 510 | License: ICU License | ||
1277 | 511 | Copyright: 1995-2011 International Business Machines Corporation and others | ||
1278 | 512 | External notice: | ||
1279 | 513 | |||
1280 | 514 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice(s) and this permission notice appear in all copies of the Software and that both the above copyright notice(s) and this permission notice appear in supporting documentation. | ||
1281 | 515 | |||
1282 | 516 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
1283 | 517 | |||
1284 | 518 | Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder. | ||
1285 | 519 | |||
1286 | 520 | ---------------------------------------------------- | ||
1287 | 521 | |||
1288 | 522 | Name: CURL | ||
1289 | 523 | Preferred version: above 7.12 | ||
1290 | 524 | Is mandatory: false | ||
1291 | 525 | Website: http://curl.haxx.se/ | ||
1292 | 526 | License: MIT/X derivate license | ||
1293 | 527 | Copyright: 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>. | ||
1294 | 528 | External notice: | ||
1295 | 529 | |||
1296 | 530 | All rights reserved. | ||
1297 | 531 | |||
1298 | 532 | Permission to use, copy, modify, and distribute this software for any purpose | ||
1299 | 533 | with or without fee is hereby granted, provided that the above copyright | ||
1300 | 534 | notice and this permission notice appear in all copies. | ||
1301 | 535 | |||
1302 | 536 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
1303 | 537 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
1304 | 538 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN | ||
1305 | 539 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
1306 | 540 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
1307 | 541 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE | ||
1308 | 542 | OR OTHER DEALINGS IN THE SOFTWARE. | ||
1309 | 543 | |||
1310 | 544 | Except as contained in this notice, the name of a copyright holder shall not | ||
1311 | 545 | be used in advertising or otherwise to promote the sale, use or other dealings | ||
1312 | 546 | in this Software without prior written authorization of the copyright holder. | ||
1313 | 547 | |||
1314 | 548 | ---------------------------------------------------- | ||
1315 | 549 | |||
1316 | 550 | Name: ICONV | ||
1317 | 551 | Preferred version: above 1.12 | ||
1318 | 552 | Is mandatory: true | ||
1319 | 553 | Website: http://www.gnu.org/software/libiconv/ | ||
1320 | 554 | License: LGPL | ||
1321 | 555 | Copyright: 1998, 2010 Free Software Foundation, Inc. | ||
1322 | 556 | External notice: | ||
1323 | 557 | |||
1324 | 558 | ---------------------------------------------------- | ||
1325 | 559 | |||
1326 | 560 | Name: ZLIB | ||
1327 | 561 | Preferred version: 1.2.5 | ||
1328 | 562 | Is mandatory: true | ||
1329 | 563 | Website: http://www.zlib.net/ | ||
1330 | 564 | Copyright: 1995-2004 Jean-loup Gailly and Mark Adler | ||
1331 | 565 | External notice: | ||
1332 | 566 | |||
1333 | 567 | This software is provided 'as-is', without any express or implied | ||
1334 | 568 | warranty. In no event will the authors be held liable for any damages | ||
1335 | 569 | arising from the use of this software. | ||
1336 | 570 | |||
1337 | 571 | Permission is granted to anyone to use this software for any purpose, | ||
1338 | 572 | including commercial applications, and to alter it and redistribute it | ||
1339 | 573 | freely, subject to the following restrictions: | ||
1340 | 574 | |||
1341 | 575 | 1. The origin of this software must not be misrepresented; you must not | ||
1342 | 576 | claim that you wrote the original software. If you use this software | ||
1343 | 577 | in a product, an acknowledgment in the product documentation would be | ||
1344 | 578 | appreciated but is not required. | ||
1345 | 579 | 2. Altered source versions must be plainly marked as such, and must not be | ||
1346 | 580 | misrepresented as being the original software. | ||
1347 | 581 | 3. This notice may not be removed or altered from any source distribution. | ||
1348 | 582 | |||
1349 | 583 | Jean-loup Gailly jloup@gzip.org | ||
1350 | 584 | Mark Adler madler@alumni.caltech.edu | ||
1351 | 585 | |||
1352 | 586 | ---------------------------------------------------- | ||
1353 | 587 | |||
1354 | 588 | Name: XERCES | ||
1355 | 589 | Preferred version: 2.8.0 or higher | ||
1356 | 590 | Is mandatory: true | ||
1357 | 591 | Website: http://xerces.apache.org/xerces-c/ | ||
1358 | 592 | License: Apache 2 | ||
1359 | 593 | Copyright: Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved. | ||
1360 | 594 | External notice: | ||
1361 | 595 | |||
1362 | 596 | http://www.apache.org/licenses/LICENSE-2.0 | ||
1363 | 597 | |||
1364 | 598 | ---------------------------------------------------- | ||
1365 | 599 | |||
1366 | 600 | Name: BOOST (boost_filesystem) | ||
1367 | 601 | Preferred version: 1.32 or higher | ||
1368 | 602 | Is mandatory: false | ||
1369 | 603 | Website: http://www.boost.org/ | ||
1370 | 604 | License: Boost Software License v1.0 | ||
1371 | 605 | Copyright: | ||
1372 | 606 | Beman Dawes, David Abrahams, 1998-2005. | ||
1373 | 607 | Rene Rivera 2004-2007 | ||
1374 | 608 | |||
1375 | 609 | External notice: | ||
1376 | 610 | |||
1377 | 611 | Permission is hereby granted, free of charge, to any person or organization | ||
1378 | 612 | obtaining a copy of the software and accompanying documentation covered by | ||
1379 | 613 | this license (the "Software") to use, reproduce, display, distribute, | ||
1380 | 614 | execute, and transmit the Software, and to prepare derivative works of the | ||
1381 | 615 | Software, and to permit third-parties to whom the Software is furnished to | ||
1382 | 616 | do so, all subject to the following: | ||
1383 | 617 | |||
1384 | 618 | The copyright notices in the Software and this entire statement, including | ||
1385 | 619 | the above license grant, this restriction and the following disclaimer, | ||
1386 | 620 | must be included in all copies of the Software, in whole or in part, and | ||
1387 | 621 | all derivative works of the Software, unless such copies or derivative | ||
1388 | 622 | works are solely in the form of machine-executable object code generated by | ||
1389 | 623 | a source language processor. | ||
1390 | 624 | |||
1391 | 625 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
1392 | 626 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
1393 | 627 | FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT | ||
1394 | 628 | SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE | ||
1395 | 629 | FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, | ||
1396 | 630 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
1397 | 631 | DEALINGS IN THE SOFTWARE. | ||
1398 | 632 | |||
1399 | 633 | |||
1400 | 634 | External applications used by this project: | ||
1401 | 635 | ---------------------------------------------------- | ||
1402 | 636 | |||
1403 | 637 | Name: FLEX | ||
1404 | 638 | Preferred version: 2.5.33 | ||
1405 | 639 | Is mandatory: false | ||
1406 | 640 | Website: http://flex.sourceforge.net/ | ||
1407 | 641 | Copyright: | ||
1408 | 642 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The Flex Project. | ||
1409 | 643 | 1990, 1997 The Regents of the University of California. All rights reserved. | ||
1410 | 644 | |||
1411 | 645 | External notice: | ||
1412 | 646 | |||
1413 | 647 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
1414 | 648 | |||
1415 | 649 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
1416 | 650 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
1417 | 651 | |||
1418 | 652 | Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
1419 | 653 | |||
1420 | 654 | THIS SOFTWARE IS PROVIDED “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
1421 | 655 | |||
1422 | 656 | ---------------------------------------------------- | ||
1423 | 657 | |||
1424 | 658 | Name: BISON | ||
1425 | 659 | Preferred version: 2.4 or higher | ||
1426 | 660 | Is mandatory: false | ||
1427 | 661 | Website: http://www.gnu.org/software/bison/ | ||
1428 | 662 | License: GPL | ||
1429 | 663 | Copyright: 1998, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | ||
1430 | 664 | External notice: | ||
1431 | 665 | |||
1432 | 666 | ---------------------------------------------------- | ||
1433 | 667 | |||
1434 | 668 | Name: DOXYGEN | ||
1435 | 669 | Preferred version: v1.7.4 | ||
1436 | 670 | Is mandatory: false | ||
1437 | 671 | Website: www.doxygen.org | ||
1438 | 672 | License: GPL | ||
1439 | 673 | Copyright: 1997-2011 by Dimitri van Heesch | ||
1440 | 674 | External notice: | ||
1441 | 675 | |||
1442 | 676 | Permission to use, copy, modify, and distribute this software and its documentation under the terms of the GNU General Public License is hereby granted. | ||
1443 | 677 | No representations are made about the suitability of this software for any purpose. | ||
1444 | 678 | It is provided "as is" without express or implied warranty. | ||
1445 | 679 | See the GNU General Public License for more details. | ||
1446 | 680 | |||
1447 | 681 | Documents produced by doxygen are derivative works derived from the input used in their production; they are not affected by this license. | ||
1448 | 682 | |||
1449 | 683 | ---------------------------------------------------- | ||
1450 | 684 | |||
1451 | 685 | Name: CMAKE | ||
1452 | 686 | Preferred version: 2.8.4 | ||
1453 | 687 | Is mandatory: true | ||
1454 | 688 | Website: http://www.cmake.org/ | ||
1455 | 689 | License: Creative Commons Attribution-NoDerivs 3.0 Unported License | ||
1456 | 690 | Copyright: 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved. | ||
1457 | 691 | External notice: | ||
1458 | 692 | |||
1459 | 693 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
1460 | 694 | |||
1461 | 695 | Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
1462 | 696 | |||
1463 | 697 | Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
1464 | 698 | |||
1465 | 699 | Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
1466 | 700 | |||
1467 | 701 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
1468 | 702 | |||
1469 | 703 | ---------------------------------------------------- | ||
1470 | 704 | |||
1471 | 705 | Name: SWIG | ||
1472 | 706 | Preferred version: 2.0.4 or above | ||
1473 | 707 | Is mandatory: false | ||
1474 | 708 | Website: http://www.swig.org/ | ||
1475 | 709 | License: GPL | ||
1476 | 710 | Copyright: | ||
1477 | 711 | 1995-2011 The SWIG Developers | ||
1478 | 712 | 2005-2006 Arizona Board of Regents (University of Arizona). | ||
1479 | 713 | 1998-2005 University of Chicago. | ||
1480 | 714 | 1995-1998 The University of Utah and the Regents of the University of California | ||
1481 | 715 | |||
1482 | 716 | External notice: | ||
1483 | 717 | |||
1484 | 718 | SWIG is free software: you can redistribute it and/or modify it | ||
1485 | 719 | under the terms of the GNU General Public License as published by | ||
1486 | 720 | the Free Software Foundation, either version 3 of the License, or | ||
1487 | 721 | (at your option) any later version. See the LICENSE-GPL file for | ||
1488 | 722 | the full terms of the GNU General Public license version 3. | ||
1489 | 723 | |||
1490 | 724 | Portions of SWIG are also licensed under the terms of the licenses | ||
1491 | 725 | in the file LICENSE-UNIVERSITIES. You must observe the terms of | ||
1492 | 726 | these licenses, as well as the terms of the GNU General Public License, | ||
1493 | 727 | when you distribute SWIG. | ||
1494 | 728 | |||
1495 | 729 | The SWIG library and examples, under the Lib and Examples top level | ||
1496 | 730 | directories, are distributed under the following terms: | ||
1497 | 731 | |||
1498 | 732 | You may copy, modify, distribute, and make derivative works based on | ||
1499 | 733 | this software, in source code or object code form, without | ||
1500 | 734 | restriction. If you distribute the software to others, you may do | ||
1501 | 735 | so according to the terms of your choice. This software is offered as | ||
1502 | 736 | is, without warranty of any kind. | ||
1503 | 737 | |||
1504 | 738 | See the COPYRIGHT file for a list of contributors to SWIG and their | ||
1505 | 739 | copyright notices. | ||
1506 | 740 | |||
1507 | 741 | \ No newline at end of file | 0 | \ No newline at end of file |
1508 | 742 | 1 | ||
1509 | === modified file 'include/zorba/pregenerated/diagnostic_list.h' | |||
1510 | --- include/zorba/pregenerated/diagnostic_list.h 2012-03-28 05:19:57 +0000 | |||
1511 | +++ include/zorba/pregenerated/diagnostic_list.h 2012-04-13 09:38:53 +0000 | |||
1512 | @@ -286,6 +286,10 @@ | |||
1513 | 286 | 286 | ||
1514 | 287 | extern ZORBA_DLL_PUBLIC XQueryErrorCode FOTY0015; | 287 | extern ZORBA_DLL_PUBLIC XQueryErrorCode FOTY0015; |
1515 | 288 | 288 | ||
1516 | 289 | extern ZORBA_DLL_PUBLIC XQueryErrorCode FOUT1170; | ||
1517 | 290 | |||
1518 | 291 | extern ZORBA_DLL_PUBLIC XQueryErrorCode FOUT1190; | ||
1519 | 292 | |||
1520 | 289 | extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0001; | 293 | extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0001; |
1521 | 290 | 294 | ||
1522 | 291 | extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0002; | 295 | extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0002; |
1523 | 292 | 296 | ||
1524 | === modified file 'modules/w3c/pregenerated/xqt-errors.xq' | |||
1525 | --- modules/w3c/pregenerated/xqt-errors.xq 2012-03-28 05:19:57 +0000 | |||
1526 | +++ modules/w3c/pregenerated/xqt-errors.xq 2012-04-13 09:38:53 +0000 | |||
1527 | @@ -1240,6 +1240,24 @@ | |||
1528 | 1240 | 1240 | ||
1529 | 1241 | (:~ | 1241 | (:~ |
1530 | 1242 | : | 1242 | : |
1531 | 1243 | : Identifier cannot be used to retrive a resource containing text | ||
1532 | 1244 | : | ||
1533 | 1245 | : @see http://www.w3.org/2005/xqt-errors | ||
1534 | 1246 | :) | ||
1535 | 1247 | declare variable $err:FOUT1170 as xs:QName := fn:QName($err:NS, "err:FOUT1170"); | ||
1536 | 1248 | |||
1537 | 1249 | (:~ | ||
1538 | 1250 | : | ||
1539 | 1251 | : Retrieved resource contains octets that cannot be decoded into Unicode | ||
1540 | 1252 | : using the specified encoding, the resulting characters are not | ||
1541 | 1253 | : permitted XML characters or requested encoding not supported | ||
1542 | 1254 | : | ||
1543 | 1255 | : @see http://www.w3.org/2005/xqt-errors | ||
1544 | 1256 | :) | ||
1545 | 1257 | declare variable $err:FOUT1190 as xs:QName := fn:QName($err:NS, "err:FOUT1190"); | ||
1546 | 1258 | |||
1547 | 1259 | (:~ | ||
1548 | 1260 | : | ||
1549 | 1243 | : It is a static error if an updating expression is used in any position | 1261 | : It is a static error if an updating expression is used in any position |
1550 | 1244 | : other than one of the following: | 1262 | : other than one of the following: |
1551 | 1245 | : - The topmost expression in the body of a query. | 1263 | : - The topmost expression in the body of a query. |
1552 | 1246 | 1264 | ||
1553 | === modified file 'modules/w3c/xpath_functions.xq' | |||
1554 | --- modules/w3c/xpath_functions.xq 2012-03-28 05:19:57 +0000 | |||
1555 | +++ modules/w3c/xpath_functions.xq 2012-04-13 09:38:53 +0000 | |||
1556 | @@ -994,4 +994,49 @@ | |||
1557 | 994 | (:~ | 994 | (:~ |
1558 | 995 | : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string">fn:string</a> | 995 | : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string">fn:string</a> |
1559 | 996 | :) | 996 | :) |
1560 | 997 | declare function fn:string($arg as item()?) as xs:string external; | ||
1561 | 998 | \ No newline at end of file | 997 | \ No newline at end of file |
1562 | 998 | declare function fn:string($arg as item()?) as xs:string external; | ||
1563 | 999 | |||
1564 | 1000 | (:~ | ||
1565 | 1001 | : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-available-environment-variables">fn:available-environment-variables</a> | ||
1566 | 1002 | :) | ||
1567 | 1003 | declare function fn:available-environment-variables() as xs:string* external; | ||
1568 | 1004 | |||
1569 | 1005 | (:~ | ||
1570 | 1006 | : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-environment-variable">fn:environment-variable</a> | ||
1571 | 1007 | :) | ||
1572 | 1008 | declare function fn:environment-variable($arg as xs:string) as xs:string? external; | ||
1573 | 1009 | |||
1574 | 1010 | (:~ | ||
1575 | 1011 | : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text">fn:unparsed-text</a> | ||
1576 | 1012 | :) | ||
1577 | 1013 | declare function fn:unparsed-text($href as xs:string?) as xs:string? external; | ||
1578 | 1014 | |||
1579 | 1015 | (:~ | ||
1580 | 1016 | : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text">fn:unparsed-text</a> | ||
1581 | 1017 | :) | ||
1582 | 1018 | declare function fn:unparsed-text($href as xs:string?, $encoding as xs:string) as xs:string? external; | ||
1583 | 1019 | |||
1584 | 1020 | (:~ | ||
1585 | 1021 | : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-available">fn:unparsed-text-available</a> | ||
1586 | 1022 | :) | ||
1587 | 1023 | declare function fn:unparsed-text-available($href as xs:string?) as xs:boolean external; | ||
1588 | 1024 | |||
1589 | 1025 | (:~ | ||
1590 | 1026 | : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-lines">fn:unparsed-text-lines</a> | ||
1591 | 1027 | :) | ||
1592 | 1028 | declare function fn:unparsed-text-lines( $href as xs:string?, $encoding as xs:string) as xs:string* external; | ||
1593 | 1029 | |||
1594 | 1030 | (:~ | ||
1595 | 1031 | : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-available">fn:unparsed-text-available</a> | ||
1596 | 1032 | :) | ||
1597 | 1033 | declare function fn:unparsed-text-available( $href as xs:string?, $encoding as xs:string) as xs:boolean external; | ||
1598 | 1034 | |||
1599 | 1035 | (:~ | ||
1600 | 1036 | : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-uri-collection">fn:uri-collection</a> | ||
1601 | 1037 | :) | ||
1602 | 1038 | declare function fn:uri-collection() as xs:anyURI* external; | ||
1603 | 1039 | |||
1604 | 1040 | (:~ | ||
1605 | 1041 | : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-uri-collection">fn:uri-collection</a> | ||
1606 | 1042 | :) | ||
1607 | 1043 | declare function fn:uri-collection($arg as xs:string?) as xs:anyURI* external; | ||
1608 | 999 | 1044 | ||
1609 | === modified file 'src/context/dynamic_context.cpp' | |||
1610 | --- src/context/dynamic_context.cpp 2012-03-28 05:19:57 +0000 | |||
1611 | +++ src/context/dynamic_context.cpp 2012-04-13 09:38:53 +0000 | |||
1612 | @@ -21,6 +21,7 @@ | |||
1613 | 21 | #include <sys/timeb.h> | 21 | #include <sys/timeb.h> |
1614 | 22 | #ifdef UNIX | 22 | #ifdef UNIX |
1615 | 23 | #include <sys/time.h> | 23 | #include <sys/time.h> |
1616 | 24 | #include <unistd.h> | ||
1617 | 24 | #endif | 25 | #endif |
1618 | 25 | 26 | ||
1619 | 26 | #include "store/api/iterator.h" | 27 | #include "store/api/iterator.h" |
1620 | @@ -29,6 +30,7 @@ | |||
1621 | 29 | #include "store/api/store.h" | 30 | #include "store/api/store.h" |
1622 | 30 | #include "store/api/index.h" | 31 | #include "store/api/index.h" |
1623 | 31 | #include "store/api/ic.h" | 32 | #include "store/api/ic.h" |
1624 | 33 | #include "store/api/iterator_factory.h" | ||
1625 | 32 | 34 | ||
1626 | 33 | #include "system/globalenv.h" | 35 | #include "system/globalenv.h" |
1627 | 34 | 36 | ||
1628 | @@ -54,10 +56,13 @@ | |||
1629 | 54 | 56 | ||
1630 | 55 | using namespace std; | 57 | using namespace std; |
1631 | 56 | 58 | ||
1632 | 59 | #ifdef UNIX | ||
1633 | 60 | //external variables | ||
1634 | 61 | extern char **environ; | ||
1635 | 62 | #endif | ||
1636 | 63 | |||
1637 | 57 | namespace zorba | 64 | namespace zorba |
1638 | 58 | { | 65 | { |
1639 | 59 | |||
1640 | 60 | |||
1641 | 61 | /******************************************************************************* | 66 | /******************************************************************************* |
1642 | 62 | 67 | ||
1643 | 63 | ********************************************************************************/ | 68 | ********************************************************************************/ |
1644 | @@ -122,6 +127,7 @@ | |||
1645 | 122 | theParent(NULL), | 127 | theParent(NULL), |
1646 | 123 | keymap(NULL), | 128 | keymap(NULL), |
1647 | 124 | theAvailableIndices(NULL), | 129 | theAvailableIndices(NULL), |
1648 | 130 | theEnvironmentVariables(NULL), | ||
1649 | 125 | theDocLoadingUserTime(0.0), | 131 | theDocLoadingUserTime(0.0), |
1650 | 126 | theDocLoadingTime(0) | 132 | theDocLoadingTime(0) |
1651 | 127 | { | 133 | { |
1652 | @@ -161,6 +167,9 @@ | |||
1653 | 161 | delete keymap; | 167 | delete keymap; |
1654 | 162 | } | 168 | } |
1655 | 163 | 169 | ||
1656 | 170 | if(theEnvironmentVariables) | ||
1657 | 171 | delete theEnvironmentVariables; | ||
1658 | 172 | |||
1659 | 164 | if (theAvailableIndices) | 173 | if (theAvailableIndices) |
1660 | 165 | delete theAvailableIndices; | 174 | delete theAvailableIndices; |
1661 | 166 | } | 175 | } |
1662 | @@ -259,6 +268,145 @@ | |||
1663 | 259 | /******************************************************************************* | 268 | /******************************************************************************* |
1664 | 260 | 269 | ||
1665 | 261 | ********************************************************************************/ | 270 | ********************************************************************************/ |
1666 | 271 | void dynamic_context::set_environment_variables() | ||
1667 | 272 | { | ||
1668 | 273 | if (!theEnvironmentVariables) | ||
1669 | 274 | theEnvironmentVariables = new EnvVarMap(); | ||
1670 | 275 | |||
1671 | 276 | #if defined (WIN32) | ||
1672 | 277 | LPTCH envVarsCH = GetEnvironmentStrings(); | ||
1673 | 278 | LPTSTR envVarsSTR = (LPTSTR) envVarsCH; | ||
1674 | 279 | |||
1675 | 280 | while (*envVarsSTR) | ||
1676 | 281 | { | ||
1677 | 282 | int size = lstrlen(envVarsSTR); | ||
1678 | 283 | |||
1679 | 284 | char * envVar = new char[size+1]; | ||
1680 | 285 | |||
1681 | 286 | |||
1682 | 287 | WideCharToMultiByte( CP_ACP, | ||
1683 | 288 | WC_NO_BEST_FIT_CHARS|WC_COMPOSITECHECK|WC_DEFAULTCHAR, | ||
1684 | 289 | envVarsSTR, | ||
1685 | 290 | size+1, | ||
1686 | 291 | envVar, | ||
1687 | 292 | size+1, | ||
1688 | 293 | NULL, | ||
1689 | 294 | NULL); | ||
1690 | 295 | |||
1691 | 296 | |||
1692 | 297 | zstring envVarZS(envVar); | ||
1693 | 298 | |||
1694 | 299 | int eqPos = envVarZS.find_first_of("="); | ||
1695 | 300 | |||
1696 | 301 | if (eqPos > 0) | ||
1697 | 302 | { | ||
1698 | 303 | zstring varname(envVarZS.substr(0, eqPos)); | ||
1699 | 304 | zstring varvalue(envVarZS.substr(eqPos+1, size)); | ||
1700 | 305 | |||
1701 | 306 | if (!varname.empty() || !varvalue.empty()) | ||
1702 | 307 | theEnvironmentVariables->insert(std::pair<zstring, zstring>(varname,varvalue)); | ||
1703 | 308 | } | ||
1704 | 309 | |||
1705 | 310 | delete envVar; | ||
1706 | 311 | envVarsSTR += lstrlen(envVarsSTR) + 1; | ||
1707 | 312 | } | ||
1708 | 313 | |||
1709 | 314 | FreeEnvironmentStrings(envVarsCH); | ||
1710 | 315 | #else | ||
1711 | 316 | const char* invalid_char; | ||
1712 | 317 | for (char **env = environ; *env; ++env) | ||
1713 | 318 | { | ||
1714 | 319 | zstring envVarZS(*env); | ||
1715 | 320 | |||
1716 | 321 | if ((invalid_char = utf8::validate(envVarZS.c_str())) != NULL) | ||
1717 | 322 | throw XQUERY_EXCEPTION(err::FOCH0001, | ||
1718 | 323 | ERROR_PARAMS(zstring("#x") + | ||
1719 | 324 | BUILD_STRING(std::uppercase << std::hex | ||
1720 | 325 | << (static_cast<unsigned int>(*invalid_char)&0xFF)))); | ||
1721 | 326 | |||
1722 | 327 | if ((invalid_char = utf8::validate(envVarZS.c_str())) != NULL) | ||
1723 | 328 | { | ||
1724 | 329 | throw XQUERY_EXCEPTION(err::FOCH0001, | ||
1725 | 330 | ERROR_PARAMS(zstring("#x") + | ||
1726 | 331 | BUILD_STRING(std::uppercase << std::hex | ||
1727 | 332 | << (static_cast<unsigned int>(*invalid_char) & 0xFF)) )); | ||
1728 | 333 | } | ||
1729 | 334 | |||
1730 | 335 | int size = envVarZS.size(); | ||
1731 | 336 | |||
1732 | 337 | int eqPos = envVarZS.find_first_of("="); | ||
1733 | 338 | |||
1734 | 339 | if (eqPos > 0) | ||
1735 | 340 | { | ||
1736 | 341 | zstring varname(envVarZS.substr(0, eqPos)); | ||
1737 | 342 | zstring varvalue(envVarZS.substr(eqPos+1, size)); | ||
1738 | 343 | |||
1739 | 344 | if (!varname.empty() || !varvalue.empty()) | ||
1740 | 345 | theEnvironmentVariables->insert(std::pair<zstring, zstring>(varname,varvalue)); | ||
1741 | 346 | } | ||
1742 | 347 | } | ||
1743 | 348 | |||
1744 | 349 | #endif | ||
1745 | 350 | |||
1746 | 351 | } | ||
1747 | 352 | /******************************************************************************* | ||
1748 | 353 | |||
1749 | 354 | ********************************************************************************/ | ||
1750 | 355 | store::Iterator_t dynamic_context::available_environment_variables() | ||
1751 | 356 | { | ||
1752 | 357 | if (!theEnvironmentVariables) | ||
1753 | 358 | { | ||
1754 | 359 | set_environment_variables(); | ||
1755 | 360 | } | ||
1756 | 361 | |||
1757 | 362 | EnvVarMap::iterator lIte = theEnvironmentVariables->begin(); | ||
1758 | 363 | EnvVarMap::iterator lEnd = theEnvironmentVariables->end(); | ||
1759 | 364 | |||
1760 | 365 | std::vector<store::Item_t> lVarNames; | ||
1761 | 366 | |||
1762 | 367 | for (;lIte != lEnd; ++lIte) | ||
1763 | 368 | { | ||
1764 | 369 | store::Item_t varname; | ||
1765 | 370 | zstring zsvarname = lIte->first; | ||
1766 | 371 | GENV_ITEMFACTORY->createString(varname, zsvarname); | ||
1767 | 372 | lVarNames.push_back(varname); | ||
1768 | 373 | } | ||
1769 | 374 | |||
1770 | 375 | if (lVarNames.empty()) | ||
1771 | 376 | { | ||
1772 | 377 | return NULL; | ||
1773 | 378 | } | ||
1774 | 379 | |||
1775 | 380 | return GENV_STORE.createTempSeq(lVarNames)->getIterator(); | ||
1776 | 381 | } | ||
1777 | 382 | |||
1778 | 383 | /******************************************************************************* | ||
1779 | 384 | |||
1780 | 385 | ********************************************************************************/ | ||
1781 | 386 | store::Item_t dynamic_context::get_environment_variable(const zstring& varname) | ||
1782 | 387 | { | ||
1783 | 388 | |||
1784 | 389 | if (!theEnvironmentVariables) | ||
1785 | 390 | { | ||
1786 | 391 | set_environment_variables(); | ||
1787 | 392 | } | ||
1788 | 393 | |||
1789 | 394 | EnvVarMap::iterator lIter = theEnvironmentVariables->find(varname); | ||
1790 | 395 | |||
1791 | 396 | if (lIter == theEnvironmentVariables->end()) | ||
1792 | 397 | { | ||
1793 | 398 | return NULL; | ||
1794 | 399 | } | ||
1795 | 400 | |||
1796 | 401 | store::Item_t value; | ||
1797 | 402 | zstring varvalue = lIter->second; | ||
1798 | 403 | GENV_ITEMFACTORY->createString(value, varvalue); | ||
1799 | 404 | return value; | ||
1800 | 405 | } | ||
1801 | 406 | |||
1802 | 407 | /******************************************************************************* | ||
1803 | 408 | |||
1804 | 409 | ********************************************************************************/ | ||
1805 | 262 | void dynamic_context::add_variable(ulong varid, store::Iterator_t& value) | 410 | void dynamic_context::add_variable(ulong varid, store::Iterator_t& value) |
1806 | 263 | { | 411 | { |
1807 | 264 | declare_variable(varid); | 412 | declare_variable(varid); |
1808 | @@ -607,7 +755,6 @@ | |||
1809 | 607 | { | 755 | { |
1810 | 608 | keymap = new ValueMap(8, false); | 756 | keymap = new ValueMap(8, false); |
1811 | 609 | } | 757 | } |
1812 | 610 | |||
1813 | 611 | if (!keymap->insert(aName, val)) | 758 | if (!keymap->insert(aName, val)) |
1814 | 612 | { | 759 | { |
1815 | 613 | keymap->update(aName, val); | 760 | keymap->update(aName, val); |
1816 | 614 | 761 | ||
1817 | === modified file 'src/context/dynamic_context.h' | |||
1818 | --- src/context/dynamic_context.h 2012-03-28 05:19:57 +0000 | |||
1819 | +++ src/context/dynamic_context.h 2012-04-13 09:38:53 +0000 | |||
1820 | @@ -105,6 +105,8 @@ | |||
1821 | 105 | 105 | ||
1822 | 106 | typedef ItemPointerHashMap<store::Index_t> IndexMap; | 106 | typedef ItemPointerHashMap<store::Index_t> IndexMap; |
1823 | 107 | 107 | ||
1824 | 108 | typedef std::map<const zstring,const zstring> EnvVarMap; | ||
1825 | 109 | |||
1826 | 108 | protected: | 110 | protected: |
1827 | 109 | dynamic_context * theParent; | 111 | dynamic_context * theParent; |
1828 | 110 | 112 | ||
1829 | @@ -119,6 +121,9 @@ | |||
1830 | 119 | 121 | ||
1831 | 120 | IndexMap * theAvailableIndices; | 122 | IndexMap * theAvailableIndices; |
1832 | 121 | 123 | ||
1833 | 124 | //MODIFY | ||
1834 | 125 | EnvVarMap * theEnvironmentVariables; | ||
1835 | 126 | |||
1836 | 122 | public: | 127 | public: |
1837 | 123 | double theDocLoadingUserTime; | 128 | double theDocLoadingUserTime; |
1838 | 124 | double theDocLoadingTime; | 129 | double theDocLoadingTime; |
1839 | @@ -142,6 +147,12 @@ | |||
1840 | 142 | 147 | ||
1841 | 143 | store::Item_t get_current_time_millis() const; | 148 | store::Item_t get_current_time_millis() const; |
1842 | 144 | 149 | ||
1843 | 150 | void set_environment_variables(); | ||
1844 | 151 | |||
1845 | 152 | store::Item_t get_environment_variable(const zstring& varname); | ||
1846 | 153 | |||
1847 | 154 | store::Iterator_t available_environment_variables(); | ||
1848 | 155 | |||
1849 | 145 | void set_implicit_timezone(long tzone_seconds); | 156 | void set_implicit_timezone(long tzone_seconds); |
1850 | 146 | 157 | ||
1851 | 147 | long get_implicit_timezone() const; | 158 | long get_implicit_timezone() const; |
1852 | 148 | 159 | ||
1853 | === modified file 'src/diagnostics/diagnostic_en.xml' | |||
1854 | --- src/diagnostics/diagnostic_en.xml 2012-04-10 13:10:22 +0000 | |||
1855 | +++ src/diagnostics/diagnostic_en.xml 2012-04-13 09:38:53 +0000 | |||
1856 | @@ -1142,7 +1142,23 @@ | |||
1857 | 1142 | An argument to \c fn:deep-equal() contains a function item. | 1142 | An argument to \c fn:deep-equal() contains a function item. |
1858 | 1143 | </comment> | 1143 | </comment> |
1859 | 1144 | <value>"$1": argument to fn:deep-equal() contains a function item</value> | 1144 | <value>"$1": argument to fn:deep-equal() contains a function item</value> |
1860 | 1145 | </diagnostic> | ||
1861 | 1146 | |||
1862 | 1147 | <diagnostic code="FOUT1170"> | ||
1863 | 1148 | <comment> | ||
1864 | 1149 | Identifier cannot be used to retrive a resource containing text | ||
1865 | 1150 | </comment> | ||
1866 | 1151 | <value>"$1": error retrieving resource containing text</value> | ||
1867 | 1145 | </diagnostic> | 1152 | </diagnostic> |
1868 | 1153 | |||
1869 | 1154 | <diagnostic code="FOUT1190"> | ||
1870 | 1155 | <comment> | ||
1871 | 1156 | Retrieved resource contains octets that cannot be decoded into Unicode | ||
1872 | 1157 | using the specified encoding, the resulting characters are not | ||
1873 | 1158 | permitted XML characters or requested encoding not supported | ||
1874 | 1159 | </comment> | ||
1875 | 1160 | <value>"$1": Cannot decode resource retrieved</value> | ||
1876 | 1161 | </diagnostic> | ||
1877 | 1146 | 1162 | ||
1878 | 1147 | <!--////////// XQuery Update Facility //////////////////////////////////--> | 1163 | <!--////////// XQuery Update Facility //////////////////////////////////--> |
1879 | 1148 | 1164 | ||
1880 | 1149 | 1165 | ||
1881 | === modified file 'src/diagnostics/pregenerated/diagnostic_list.cpp' | |||
1882 | --- src/diagnostics/pregenerated/diagnostic_list.cpp 2012-03-28 05:19:57 +0000 | |||
1883 | +++ src/diagnostics/pregenerated/diagnostic_list.cpp 2012-04-13 09:38:53 +0000 | |||
1884 | @@ -411,6 +411,12 @@ | |||
1885 | 411 | XQueryErrorCode FOTY0015( "FOTY0015" ); | 411 | XQueryErrorCode FOTY0015( "FOTY0015" ); |
1886 | 412 | 412 | ||
1887 | 413 | 413 | ||
1888 | 414 | XQueryErrorCode FOUT1170( "FOUT1170" ); | ||
1889 | 415 | |||
1890 | 416 | |||
1891 | 417 | XQueryErrorCode FOUT1190( "FOUT1190" ); | ||
1892 | 418 | |||
1893 | 419 | |||
1894 | 414 | XQueryErrorCode XUST0001( "XUST0001" ); | 420 | XQueryErrorCode XUST0001( "XUST0001" ); |
1895 | 415 | 421 | ||
1896 | 416 | 422 | ||
1897 | 417 | 423 | ||
1898 | === modified file 'src/diagnostics/pregenerated/dict_en.cpp' | |||
1899 | --- src/diagnostics/pregenerated/dict_en.cpp 2012-04-10 13:10:22 +0000 | |||
1900 | +++ src/diagnostics/pregenerated/dict_en.cpp 2012-04-13 09:38:53 +0000 | |||
1901 | @@ -74,6 +74,8 @@ | |||
1902 | 74 | { "FOTY0015", "\"$1\": argument to fn:deep-equal() contains a function item" }, | 74 | { "FOTY0015", "\"$1\": argument to fn:deep-equal() contains a function item" }, |
1903 | 75 | { "FOUP0001", "first operand of fn:put() is not a node of a supported kind" }, | 75 | { "FOUP0001", "first operand of fn:put() is not a node of a supported kind" }, |
1904 | 76 | { "FOUP0002", "second operand of fn:put() is not a valid lexical representation of the xs:anyURI type" }, | 76 | { "FOUP0002", "second operand of fn:put() is not a valid lexical representation of the xs:anyURI type" }, |
1905 | 77 | { "FOUT1170", "\"$1\": error retrieving resource containing text" }, | ||
1906 | 78 | { "FOUT1190", "\"$1\": Cannot decode resource retrieved" }, | ||
1907 | 77 | #if !defined(ZORBA_NO_FULL_TEXT) | 79 | #if !defined(ZORBA_NO_FULL_TEXT) |
1908 | 78 | { "FTDY0016", "\"$1\": invalid weight: absolute value must be in [0,1000]" }, | 80 | { "FTDY0016", "\"$1\": invalid weight: absolute value must be in [0,1000]" }, |
1909 | 79 | #endif | 81 | #endif |
1910 | 80 | 82 | ||
1911 | === added file 'src/functions/pregenerated/func_access.cpp' | |||
1912 | --- src/functions/pregenerated/func_access.cpp 1970-01-01 00:00:00 +0000 | |||
1913 | +++ src/functions/pregenerated/func_access.cpp 2012-04-13 09:38:53 +0000 | |||
1914 | @@ -0,0 +1,111 @@ | |||
1915 | 1 | /* | ||
1916 | 2 | * Copyright 2006-2008 The FLWOR Foundation. | ||
1917 | 3 | * | ||
1918 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
1919 | 5 | * you may not use this file except in compliance with the License. | ||
1920 | 6 | * You may obtain a copy of the License at | ||
1921 | 7 | * | ||
1922 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
1923 | 9 | * | ||
1924 | 10 | * Unless required by applicable law or agreed to in writing, software | ||
1925 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
1926 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
1927 | 13 | * See the License for the specific language governing permissions and | ||
1928 | 14 | * limitations under the License. | ||
1929 | 15 | */ | ||
1930 | 16 | |||
1931 | 17 | // ****************************************** | ||
1932 | 18 | // * * | ||
1933 | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * | ||
1934 | 20 | // * SEE .xml FILE WITH SAME NAME * | ||
1935 | 21 | // * * | ||
1936 | 22 | // ****************************************** | ||
1937 | 23 | |||
1938 | 24 | |||
1939 | 25 | #include "stdafx.h" | ||
1940 | 26 | #include "runtime/access/access.h" | ||
1941 | 27 | #include "functions/func_access.h" | ||
1942 | 28 | |||
1943 | 29 | |||
1944 | 30 | namespace zorba{ | ||
1945 | 31 | |||
1946 | 32 | |||
1947 | 33 | |||
1948 | 34 | PlanIter_t fn_unparsed_text::codegen( | ||
1949 | 35 | CompilerCB*, | ||
1950 | 36 | static_context* sctx, | ||
1951 | 37 | const QueryLoc& loc, | ||
1952 | 38 | std::vector<PlanIter_t>& argv, | ||
1953 | 39 | expr& ann) const | ||
1954 | 40 | { | ||
1955 | 41 | return new FnUnparsedTextIterator(sctx, loc, argv); | ||
1956 | 42 | } | ||
1957 | 43 | |||
1958 | 44 | PlanIter_t fn_unparsed_text_available::codegen( | ||
1959 | 45 | CompilerCB*, | ||
1960 | 46 | static_context* sctx, | ||
1961 | 47 | const QueryLoc& loc, | ||
1962 | 48 | std::vector<PlanIter_t>& argv, | ||
1963 | 49 | expr& ann) const | ||
1964 | 50 | { | ||
1965 | 51 | return new FnUnparsedTextAvailableIterator(sctx, loc, argv); | ||
1966 | 52 | } | ||
1967 | 53 | |||
1968 | 54 | void populate_context_access(static_context* sctx) | ||
1969 | 55 | { | ||
1970 | 56 | { | ||
1971 | 57 | |||
1972 | 58 | |||
1973 | 59 | DECL_WITH_KIND(sctx, fn_unparsed_text, | ||
1974 | 60 | (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text"), | ||
1975 | 61 | GENV_TYPESYSTEM.STRING_TYPE_QUESTION, | ||
1976 | 62 | GENV_TYPESYSTEM.STRING_TYPE_QUESTION), | ||
1977 | 63 | FunctionConsts::FN_UNPARSED_TEXT_1); | ||
1978 | 64 | |||
1979 | 65 | } | ||
1980 | 66 | |||
1981 | 67 | |||
1982 | 68 | { | ||
1983 | 69 | |||
1984 | 70 | |||
1985 | 71 | DECL_WITH_KIND(sctx, fn_unparsed_text, | ||
1986 | 72 | (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text"), | ||
1987 | 73 | GENV_TYPESYSTEM.STRING_TYPE_QUESTION, | ||
1988 | 74 | GENV_TYPESYSTEM.STRING_TYPE_ONE, | ||
1989 | 75 | GENV_TYPESYSTEM.STRING_TYPE_QUESTION), | ||
1990 | 76 | FunctionConsts::FN_UNPARSED_TEXT_2); | ||
1991 | 77 | |||
1992 | 78 | } | ||
1993 | 79 | |||
1994 | 80 | |||
1995 | 81 | { | ||
1996 | 82 | |||
1997 | 83 | |||
1998 | 84 | DECL_WITH_KIND(sctx, fn_unparsed_text_available, | ||
1999 | 85 | (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text-available"), | ||
2000 | 86 | GENV_TYPESYSTEM.STRING_TYPE_QUESTION, | ||
2001 | 87 | GENV_TYPESYSTEM.STRING_TYPE_QUESTION), | ||
2002 | 88 | FunctionConsts::FN_UNPARSED_TEXT_AVAILABLE_1); | ||
2003 | 89 | |||
2004 | 90 | } | ||
2005 | 91 | |||
2006 | 92 | |||
2007 | 93 | { | ||
2008 | 94 | |||
2009 | 95 | |||
2010 | 96 | DECL_WITH_KIND(sctx, fn_unparsed_text_available, | ||
2011 | 97 | (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text-available"), | ||
2012 | 98 | GENV_TYPESYSTEM.STRING_TYPE_QUESTION, | ||
2013 | 99 | GENV_TYPESYSTEM.STRING_TYPE_ONE, | ||
2014 | 100 | GENV_TYPESYSTEM.STRING_TYPE_QUESTION), | ||
2015 | 101 | FunctionConsts::FN_UNPARSED_TEXT_AVAILABLE_2); | ||
2016 | 102 | |||
2017 | 103 | } | ||
2018 | 104 | |||
2019 | 105 | } | ||
2020 | 106 | |||
2021 | 107 | |||
2022 | 108 | } | ||
2023 | 109 | |||
2024 | 110 | |||
2025 | 111 | |||
2026 | 0 | 112 | ||
2027 | === added file 'src/functions/pregenerated/func_access.h' | |||
2028 | --- src/functions/pregenerated/func_access.h 1970-01-01 00:00:00 +0000 | |||
2029 | +++ src/functions/pregenerated/func_access.h 2012-04-13 09:38:53 +0000 | |||
2030 | @@ -0,0 +1,79 @@ | |||
2031 | 1 | /* | ||
2032 | 2 | * Copyright 2006-2008 The FLWOR Foundation. | ||
2033 | 3 | * | ||
2034 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
2035 | 5 | * you may not use this file except in compliance with the License. | ||
2036 | 6 | * You may obtain a copy of the License at | ||
2037 | 7 | * | ||
2038 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
2039 | 9 | * | ||
2040 | 10 | * Unless required by applicable law or agreed to in writing, software | ||
2041 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
2042 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
2043 | 13 | * See the License for the specific language governing permissions and | ||
2044 | 14 | * limitations under the License. | ||
2045 | 15 | */ | ||
2046 | 16 | |||
2047 | 17 | // ****************************************** | ||
2048 | 18 | // * * | ||
2049 | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * | ||
2050 | 20 | // * SEE .xml FILE WITH SAME NAME * | ||
2051 | 21 | // * * | ||
2052 | 22 | // ****************************************** | ||
2053 | 23 | |||
2054 | 24 | |||
2055 | 25 | #ifndef ZORBA_FUNCTIONS_ACCESS_H | ||
2056 | 26 | #define ZORBA_FUNCTIONS_ACCESS_H | ||
2057 | 27 | |||
2058 | 28 | |||
2059 | 29 | #include "common/shared_types.h" | ||
2060 | 30 | #include "functions/function_impl.h" | ||
2061 | 31 | |||
2062 | 32 | |||
2063 | 33 | namespace zorba { | ||
2064 | 34 | |||
2065 | 35 | |||
2066 | 36 | void populate_context_access(static_context* sctx); | ||
2067 | 37 | |||
2068 | 38 | |||
2069 | 39 | |||
2070 | 40 | |||
2071 | 41 | //fn:unparsed-text | ||
2072 | 42 | class fn_unparsed_text : public function | ||
2073 | 43 | { | ||
2074 | 44 | public: | ||
2075 | 45 | fn_unparsed_text(const signature& sig, FunctionConsts::FunctionKind kind) | ||
2076 | 46 | : | ||
2077 | 47 | function(sig, kind) | ||
2078 | 48 | { | ||
2079 | 49 | |||
2080 | 50 | } | ||
2081 | 51 | |||
2082 | 52 | CODEGEN_DECL(); | ||
2083 | 53 | }; | ||
2084 | 54 | |||
2085 | 55 | |||
2086 | 56 | //fn:unparsed-text-available | ||
2087 | 57 | class fn_unparsed_text_available : public function | ||
2088 | 58 | { | ||
2089 | 59 | public: | ||
2090 | 60 | fn_unparsed_text_available(const signature& sig, FunctionConsts::FunctionKind kind) | ||
2091 | 61 | : | ||
2092 | 62 | function(sig, kind) | ||
2093 | 63 | { | ||
2094 | 64 | |||
2095 | 65 | } | ||
2096 | 66 | |||
2097 | 67 | CODEGEN_DECL(); | ||
2098 | 68 | }; | ||
2099 | 69 | |||
2100 | 70 | |||
2101 | 71 | } //namespace zorba | ||
2102 | 72 | |||
2103 | 73 | |||
2104 | 74 | #endif | ||
2105 | 75 | /* | ||
2106 | 76 | * Local variables: | ||
2107 | 77 | * mode: c++ | ||
2108 | 78 | * End: | ||
2109 | 79 | */ | ||
2110 | 0 | 80 | ||
2111 | === modified file 'src/functions/pregenerated/func_accessors.cpp' | |||
2112 | --- src/functions/pregenerated/func_accessors.cpp 2012-03-28 05:19:57 +0000 | |||
2113 | +++ src/functions/pregenerated/func_accessors.cpp 2012-04-13 09:38:53 +0000 | |||
2114 | @@ -1,259 +1,259 @@ | |||
2374 | 1 | /* | 1 | /* |
2375 | 2 | * Copyright 2006-2008 The FLWOR Foundation. | 2 | * Copyright 2006-2008 The FLWOR Foundation. |
2376 | 3 | * | 3 | * |
2377 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
2378 | 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
2379 | 6 | * You may obtain a copy of the License at | 6 | * You may obtain a copy of the License at |
2380 | 7 | * | 7 | * |
2381 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
2382 | 9 | * | 9 | * |
2383 | 10 | * Unless required by applicable law or agreed to in writing, software | 10 | * Unless required by applicable law or agreed to in writing, software |
2384 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
2385 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
2386 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
2387 | 14 | * limitations under the License. | 14 | * limitations under the License. |
2388 | 15 | */ | 15 | */ |
2389 | 16 | 16 | ||
2390 | 17 | // ****************************************** | 17 | // ****************************************** |
2391 | 18 | // * * | 18 | // * * |
2392 | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * |
2393 | 20 | // * SEE .xml FILE WITH SAME NAME * | 20 | // * SEE .xml FILE WITH SAME NAME * |
2394 | 21 | // * * | 21 | // * * |
2395 | 22 | // ****************************************** | 22 | // ****************************************** |
2396 | 23 | 23 | ||
2397 | 24 | 24 | ||
2398 | 25 | #include "stdafx.h" | 25 | #include "stdafx.h" |
2399 | 26 | #include "runtime/accessors/accessors.h" | 26 | #include "runtime/accessors/accessors.h" |
2400 | 27 | #include "functions/func_accessors.h" | 27 | #include "functions/func_accessors.h" |
2401 | 28 | 28 | ||
2402 | 29 | 29 | ||
2403 | 30 | namespace zorba{ | 30 | namespace zorba{ |
2404 | 31 | 31 | ||
2405 | 32 | 32 | ||
2406 | 33 | 33 | ||
2407 | 34 | PlanIter_t fn_node_name_3_0::codegen( | 34 | PlanIter_t fn_node_name_3_0::codegen( |
2408 | 35 | CompilerCB*, | 35 | CompilerCB*, |
2409 | 36 | static_context* sctx, | 36 | static_context* sctx, |
2410 | 37 | const QueryLoc& loc, | 37 | const QueryLoc& loc, |
2411 | 38 | std::vector<PlanIter_t>& argv, | 38 | std::vector<PlanIter_t>& argv, |
2412 | 39 | expr& ann) const | 39 | expr& ann) const |
2413 | 40 | { | 40 | { |
2414 | 41 | return new NodeNameIterator(sctx, loc, argv); | 41 | return new NodeNameIterator(sctx, loc, argv); |
2415 | 42 | } | 42 | } |
2416 | 43 | PlanIter_t fn_node_name::codegen( | 43 | PlanIter_t fn_node_name::codegen( |
2417 | 44 | CompilerCB*, | 44 | CompilerCB*, |
2418 | 45 | static_context* sctx, | 45 | static_context* sctx, |
2419 | 46 | const QueryLoc& loc, | 46 | const QueryLoc& loc, |
2420 | 47 | std::vector<PlanIter_t>& argv, | 47 | std::vector<PlanIter_t>& argv, |
2421 | 48 | expr& ann) const | 48 | expr& ann) const |
2422 | 49 | { | 49 | { |
2423 | 50 | return new NodeNameIterator(sctx, loc, argv); | 50 | return new NodeNameIterator(sctx, loc, argv); |
2424 | 51 | } | 51 | } |
2425 | 52 | 52 | ||
2426 | 53 | PlanIter_t fn_nilled::codegen( | 53 | PlanIter_t fn_nilled::codegen( |
2427 | 54 | CompilerCB*, | 54 | CompilerCB*, |
2428 | 55 | static_context* sctx, | 55 | static_context* sctx, |
2429 | 56 | const QueryLoc& loc, | 56 | const QueryLoc& loc, |
2430 | 57 | std::vector<PlanIter_t>& argv, | 57 | std::vector<PlanIter_t>& argv, |
2431 | 58 | expr& ann) const | 58 | expr& ann) const |
2432 | 59 | { | 59 | { |
2433 | 60 | return new NilledIterator(sctx, loc, argv); | 60 | return new NilledIterator(sctx, loc, argv); |
2434 | 61 | } | 61 | } |
2435 | 62 | 62 | ||
2436 | 63 | 63 | ||
2437 | 64 | PlanIter_t fn_data::codegen( | 64 | PlanIter_t fn_data::codegen( |
2438 | 65 | CompilerCB*, | 65 | CompilerCB*, |
2439 | 66 | static_context* sctx, | 66 | static_context* sctx, |
2440 | 67 | const QueryLoc& loc, | 67 | const QueryLoc& loc, |
2441 | 68 | std::vector<PlanIter_t>& argv, | 68 | std::vector<PlanIter_t>& argv, |
2442 | 69 | expr& ann) const | 69 | expr& ann) const |
2443 | 70 | { | 70 | { |
2444 | 71 | return new FnDataIterator(sctx, loc, argv); | 71 | return new FnDataIterator(sctx, loc, argv); |
2445 | 72 | } | 72 | } |
2446 | 73 | 73 | ||
2447 | 74 | PlanIter_t fn_base_uri::codegen( | 74 | PlanIter_t fn_base_uri::codegen( |
2448 | 75 | CompilerCB*, | 75 | CompilerCB*, |
2449 | 76 | static_context* sctx, | 76 | static_context* sctx, |
2450 | 77 | const QueryLoc& loc, | 77 | const QueryLoc& loc, |
2451 | 78 | std::vector<PlanIter_t>& argv, | 78 | std::vector<PlanIter_t>& argv, |
2452 | 79 | expr& ann) const | 79 | expr& ann) const |
2453 | 80 | { | 80 | { |
2454 | 81 | return new BaseUriIterator(sctx, loc, argv); | 81 | return new BaseUriIterator(sctx, loc, argv); |
2455 | 82 | } | 82 | } |
2456 | 83 | 83 | ||
2457 | 84 | PlanIter_t fn_document_uri_3_0::codegen( | 84 | PlanIter_t fn_document_uri_3_0::codegen( |
2458 | 85 | CompilerCB*, | 85 | CompilerCB*, |
2459 | 86 | static_context* sctx, | 86 | static_context* sctx, |
2460 | 87 | const QueryLoc& loc, | 87 | const QueryLoc& loc, |
2461 | 88 | std::vector<PlanIter_t>& argv, | 88 | std::vector<PlanIter_t>& argv, |
2462 | 89 | expr& ann) const | 89 | expr& ann) const |
2463 | 90 | { | 90 | { |
2464 | 91 | return new DocumentUriIterator(sctx, loc, argv); | 91 | return new DocumentUriIterator(sctx, loc, argv); |
2465 | 92 | } | 92 | } |
2466 | 93 | PlanIter_t fn_document_uri::codegen( | 93 | PlanIter_t fn_document_uri::codegen( |
2467 | 94 | CompilerCB*, | 94 | CompilerCB*, |
2468 | 95 | static_context* sctx, | 95 | static_context* sctx, |
2469 | 96 | const QueryLoc& loc, | 96 | const QueryLoc& loc, |
2470 | 97 | std::vector<PlanIter_t>& argv, | 97 | std::vector<PlanIter_t>& argv, |
2471 | 98 | expr& ann) const | 98 | expr& ann) const |
2472 | 99 | { | 99 | { |
2473 | 100 | return new DocumentUriIterator(sctx, loc, argv); | 100 | return new DocumentUriIterator(sctx, loc, argv); |
2474 | 101 | } | 101 | } |
2475 | 102 | 102 | ||
2476 | 103 | PlanIter_t fn_root::codegen( | 103 | PlanIter_t fn_root::codegen( |
2477 | 104 | CompilerCB*, | 104 | CompilerCB*, |
2478 | 105 | static_context* sctx, | 105 | static_context* sctx, |
2479 | 106 | const QueryLoc& loc, | 106 | const QueryLoc& loc, |
2480 | 107 | std::vector<PlanIter_t>& argv, | 107 | std::vector<PlanIter_t>& argv, |
2481 | 108 | expr& ann) const | 108 | expr& ann) const |
2482 | 109 | { | 109 | { |
2483 | 110 | return new RootIterator(sctx, loc, argv); | 110 | return new RootIterator(sctx, loc, argv); |
2484 | 111 | } | 111 | } |
2485 | 112 | 112 | ||
2486 | 113 | void populate_context_accessors(static_context* sctx) | 113 | void populate_context_accessors(static_context* sctx) |
2487 | 114 | { | 114 | { |
2488 | 115 | { | 115 | { |
2489 | 116 | 116 | ||
2490 | 117 | 117 | ||
2491 | 118 | DECL_WITH_KIND(sctx, fn_node_name_3_0, | 118 | DECL_WITH_KIND(sctx, fn_node_name_3_0, |
2492 | 119 | (createQName("http://www.w3.org/2005/xpath-functions","","node-name"), | 119 | (createQName("http://www.w3.org/2005/xpath-functions","","node-name"), |
2493 | 120 | GENV_TYPESYSTEM.QNAME_TYPE_QUESTION), | 120 | GENV_TYPESYSTEM.QNAME_TYPE_QUESTION), |
2494 | 121 | FunctionConsts::FN_NODE_NAME_0); | 121 | FunctionConsts::FN_NODE_NAME_0); |
2495 | 122 | 122 | ||
2496 | 123 | } | 123 | } |
2497 | 124 | 124 | ||
2498 | 125 | 125 | ||
2499 | 126 | { | 126 | { |
2500 | 127 | 127 | ||
2501 | 128 | 128 | ||
2502 | 129 | DECL_WITH_KIND(sctx, fn_node_name, | 129 | DECL_WITH_KIND(sctx, fn_node_name, |
2503 | 130 | (createQName("http://www.w3.org/2005/xpath-functions","","node-name"), | 130 | (createQName("http://www.w3.org/2005/xpath-functions","","node-name"), |
2504 | 131 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, | 131 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, |
2505 | 132 | GENV_TYPESYSTEM.QNAME_TYPE_QUESTION), | 132 | GENV_TYPESYSTEM.QNAME_TYPE_QUESTION), |
2506 | 133 | FunctionConsts::FN_NODE_NAME_1); | 133 | FunctionConsts::FN_NODE_NAME_1); |
2507 | 134 | 134 | ||
2508 | 135 | } | 135 | } |
2509 | 136 | 136 | ||
2510 | 137 | 137 | ||
2511 | 138 | { | 138 | { |
2512 | 139 | 139 | ||
2513 | 140 | 140 | ||
2514 | 141 | DECL_WITH_KIND(sctx, fn_nilled, | 141 | DECL_WITH_KIND(sctx, fn_nilled, |
2515 | 142 | (createQName("http://www.w3.org/2005/xpath-functions","","nilled"), | 142 | (createQName("http://www.w3.org/2005/xpath-functions","","nilled"), |
2516 | 143 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, | 143 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, |
2517 | 144 | GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION), | 144 | GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION), |
2518 | 145 | FunctionConsts::FN_NILLED_1); | 145 | FunctionConsts::FN_NILLED_1); |
2519 | 146 | 146 | ||
2520 | 147 | } | 147 | } |
2521 | 148 | 148 | ||
2522 | 149 | 149 | ||
2523 | 150 | { | 150 | { |
2524 | 151 | 151 | ||
2525 | 152 | 152 | ||
2526 | 153 | DECL_WITH_KIND(sctx, fn_string, | 153 | DECL_WITH_KIND(sctx, fn_string, |
2527 | 154 | (createQName("http://www.w3.org/2005/xpath-functions","","string"), | 154 | (createQName("http://www.w3.org/2005/xpath-functions","","string"), |
2528 | 155 | GENV_TYPESYSTEM.STRING_TYPE_ONE), | 155 | GENV_TYPESYSTEM.STRING_TYPE_ONE), |
2529 | 156 | FunctionConsts::FN_STRING_0); | 156 | FunctionConsts::FN_STRING_0); |
2530 | 157 | 157 | ||
2531 | 158 | } | 158 | } |
2532 | 159 | 159 | ||
2533 | 160 | 160 | ||
2534 | 161 | { | 161 | { |
2535 | 162 | 162 | ||
2536 | 163 | 163 | ||
2537 | 164 | DECL_WITH_KIND(sctx, fn_string, | 164 | DECL_WITH_KIND(sctx, fn_string, |
2538 | 165 | (createQName("http://www.w3.org/2005/xpath-functions","","string"), | 165 | (createQName("http://www.w3.org/2005/xpath-functions","","string"), |
2539 | 166 | GENV_TYPESYSTEM.ITEM_TYPE_QUESTION, | 166 | GENV_TYPESYSTEM.ITEM_TYPE_QUESTION, |
2540 | 167 | GENV_TYPESYSTEM.STRING_TYPE_ONE), | 167 | GENV_TYPESYSTEM.STRING_TYPE_ONE), |
2541 | 168 | FunctionConsts::FN_STRING_1); | 168 | FunctionConsts::FN_STRING_1); |
2542 | 169 | 169 | ||
2543 | 170 | } | 170 | } |
2544 | 171 | 171 | ||
2545 | 172 | 172 | ||
2546 | 173 | { | 173 | { |
2547 | 174 | 174 | ||
2548 | 175 | 175 | ||
2549 | 176 | DECL_WITH_KIND(sctx, fn_data, | 176 | DECL_WITH_KIND(sctx, fn_data, |
2550 | 177 | (createQName("http://www.w3.org/2005/xpath-functions","","data"), | 177 | (createQName("http://www.w3.org/2005/xpath-functions","","data"), |
2551 | 178 | GENV_TYPESYSTEM.ITEM_TYPE_STAR, | 178 | GENV_TYPESYSTEM.ITEM_TYPE_STAR, |
2552 | 179 | GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR), | 179 | GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR), |
2553 | 180 | FunctionConsts::FN_DATA_1); | 180 | FunctionConsts::FN_DATA_1); |
2554 | 181 | 181 | ||
2555 | 182 | } | 182 | } |
2556 | 183 | 183 | ||
2557 | 184 | 184 | ||
2558 | 185 | { | 185 | { |
2559 | 186 | 186 | ||
2560 | 187 | 187 | ||
2561 | 188 | DECL_WITH_KIND(sctx, fn_base_uri, | 188 | DECL_WITH_KIND(sctx, fn_base_uri, |
2562 | 189 | (createQName("http://www.w3.org/2005/xpath-functions","","base-uri"), | 189 | (createQName("http://www.w3.org/2005/xpath-functions","","base-uri"), |
2563 | 190 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), | 190 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), |
2564 | 191 | FunctionConsts::FN_BASE_URI_0); | 191 | FunctionConsts::FN_BASE_URI_0); |
2565 | 192 | 192 | ||
2566 | 193 | } | 193 | } |
2567 | 194 | 194 | ||
2568 | 195 | 195 | ||
2569 | 196 | { | 196 | { |
2570 | 197 | 197 | ||
2571 | 198 | 198 | ||
2572 | 199 | DECL_WITH_KIND(sctx, fn_base_uri, | 199 | DECL_WITH_KIND(sctx, fn_base_uri, |
2573 | 200 | (createQName("http://www.w3.org/2005/xpath-functions","","base-uri"), | 200 | (createQName("http://www.w3.org/2005/xpath-functions","","base-uri"), |
2574 | 201 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, | 201 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, |
2575 | 202 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), | 202 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), |
2576 | 203 | FunctionConsts::FN_BASE_URI_1); | 203 | FunctionConsts::FN_BASE_URI_1); |
2577 | 204 | 204 | ||
2578 | 205 | } | 205 | } |
2579 | 206 | 206 | ||
2580 | 207 | 207 | ||
2581 | 208 | { | 208 | { |
2582 | 209 | 209 | ||
2583 | 210 | 210 | ||
2584 | 211 | DECL_WITH_KIND(sctx, fn_document_uri_3_0, | 211 | DECL_WITH_KIND(sctx, fn_document_uri_3_0, |
2585 | 212 | (createQName("http://www.w3.org/2005/xpath-functions","","document-uri"), | 212 | (createQName("http://www.w3.org/2005/xpath-functions","","document-uri"), |
2586 | 213 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), | 213 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), |
2587 | 214 | FunctionConsts::FN_DOCUMENT_URI_0); | 214 | FunctionConsts::FN_DOCUMENT_URI_0); |
2588 | 215 | 215 | ||
2589 | 216 | } | 216 | } |
2590 | 217 | 217 | ||
2591 | 218 | 218 | ||
2592 | 219 | { | 219 | { |
2593 | 220 | 220 | ||
2594 | 221 | 221 | ||
2595 | 222 | DECL_WITH_KIND(sctx, fn_document_uri, | 222 | DECL_WITH_KIND(sctx, fn_document_uri, |
2596 | 223 | (createQName("http://www.w3.org/2005/xpath-functions","","document-uri"), | 223 | (createQName("http://www.w3.org/2005/xpath-functions","","document-uri"), |
2597 | 224 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, | 224 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, |
2598 | 225 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), | 225 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), |
2599 | 226 | FunctionConsts::FN_DOCUMENT_URI_1); | 226 | FunctionConsts::FN_DOCUMENT_URI_1); |
2600 | 227 | 227 | ||
2601 | 228 | } | 228 | } |
2602 | 229 | 229 | ||
2603 | 230 | 230 | ||
2604 | 231 | { | 231 | { |
2605 | 232 | 232 | ||
2606 | 233 | 233 | ||
2607 | 234 | DECL_WITH_KIND(sctx, fn_root, | 234 | DECL_WITH_KIND(sctx, fn_root, |
2608 | 235 | (createQName("http://www.w3.org/2005/xpath-functions","","root"), | 235 | (createQName("http://www.w3.org/2005/xpath-functions","","root"), |
2609 | 236 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION), | 236 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION), |
2610 | 237 | FunctionConsts::FN_ROOT_0); | 237 | FunctionConsts::FN_ROOT_0); |
2611 | 238 | 238 | ||
2612 | 239 | } | 239 | } |
2613 | 240 | 240 | ||
2614 | 241 | 241 | ||
2615 | 242 | { | 242 | { |
2616 | 243 | 243 | ||
2617 | 244 | 244 | ||
2618 | 245 | DECL_WITH_KIND(sctx, fn_root, | 245 | DECL_WITH_KIND(sctx, fn_root, |
2619 | 246 | (createQName("http://www.w3.org/2005/xpath-functions","","root"), | 246 | (createQName("http://www.w3.org/2005/xpath-functions","","root"), |
2620 | 247 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, | 247 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, |
2621 | 248 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION), | 248 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION), |
2622 | 249 | FunctionConsts::FN_ROOT_1); | 249 | FunctionConsts::FN_ROOT_1); |
2623 | 250 | 250 | ||
2624 | 251 | } | 251 | } |
2625 | 252 | 252 | ||
2626 | 253 | } | 253 | } |
2627 | 254 | 254 | ||
2628 | 255 | 255 | ||
2629 | 256 | } | 256 | } |
2630 | 257 | 257 | ||
2631 | 258 | 258 | ||
2632 | 259 | 259 | ||
2633 | 260 | 260 | ||
2634 | === modified file 'src/functions/pregenerated/func_accessors.h' | |||
2635 | --- src/functions/pregenerated/func_accessors.h 2012-03-28 05:19:57 +0000 | |||
2636 | +++ src/functions/pregenerated/func_accessors.h 2012-04-13 09:38:53 +0000 | |||
2637 | @@ -1,208 +1,208 @@ | |||
2846 | 1 | /* | 1 | /* |
2847 | 2 | * Copyright 2006-2008 The FLWOR Foundation. | 2 | * Copyright 2006-2008 The FLWOR Foundation. |
2848 | 3 | * | 3 | * |
2849 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
2850 | 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
2851 | 6 | * You may obtain a copy of the License at | 6 | * You may obtain a copy of the License at |
2852 | 7 | * | 7 | * |
2853 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
2854 | 9 | * | 9 | * |
2855 | 10 | * Unless required by applicable law or agreed to in writing, software | 10 | * Unless required by applicable law or agreed to in writing, software |
2856 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
2857 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
2858 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
2859 | 14 | * limitations under the License. | 14 | * limitations under the License. |
2860 | 15 | */ | 15 | */ |
2861 | 16 | 16 | ||
2862 | 17 | // ****************************************** | 17 | // ****************************************** |
2863 | 18 | // * * | 18 | // * * |
2864 | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * |
2865 | 20 | // * SEE .xml FILE WITH SAME NAME * | 20 | // * SEE .xml FILE WITH SAME NAME * |
2866 | 21 | // * * | 21 | // * * |
2867 | 22 | // ****************************************** | 22 | // ****************************************** |
2868 | 23 | 23 | ||
2869 | 24 | 24 | ||
2870 | 25 | #ifndef ZORBA_FUNCTIONS_ACCESSORS_H | 25 | #ifndef ZORBA_FUNCTIONS_ACCESSORS_H |
2871 | 26 | #define ZORBA_FUNCTIONS_ACCESSORS_H | 26 | #define ZORBA_FUNCTIONS_ACCESSORS_H |
2872 | 27 | 27 | ||
2873 | 28 | 28 | ||
2874 | 29 | #include "common/shared_types.h" | 29 | #include "common/shared_types.h" |
2875 | 30 | #include "functions/function_impl.h" | 30 | #include "functions/function_impl.h" |
2876 | 31 | 31 | ||
2877 | 32 | 32 | ||
2878 | 33 | namespace zorba { | 33 | namespace zorba { |
2879 | 34 | 34 | ||
2880 | 35 | 35 | ||
2881 | 36 | void populate_context_accessors(static_context* sctx); | 36 | void populate_context_accessors(static_context* sctx); |
2882 | 37 | 37 | ||
2883 | 38 | 38 | ||
2884 | 39 | 39 | ||
2885 | 40 | 40 | ||
2886 | 41 | //fn:node-name | 41 | //fn:node-name |
2887 | 42 | class fn_node_name_3_0 : public function | 42 | class fn_node_name_3_0 : public function |
2888 | 43 | { | 43 | { |
2889 | 44 | public: | 44 | public: |
2890 | 45 | fn_node_name_3_0(const signature& sig, FunctionConsts::FunctionKind kind) | 45 | fn_node_name_3_0(const signature& sig, FunctionConsts::FunctionKind kind) |
2891 | 46 | : | 46 | : |
2892 | 47 | function(sig, kind) | 47 | function(sig, kind) |
2893 | 48 | { | 48 | { |
2894 | 49 | theXQueryVersion = StaticContextConsts::xquery_version_3_0; | 49 | theXQueryVersion = StaticContextConsts::xquery_version_3_0; |
2895 | 50 | } | 50 | } |
2896 | 51 | 51 | ||
2897 | 52 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } | 52 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } |
2898 | 53 | 53 | ||
2899 | 54 | CODEGEN_DECL(); | 54 | CODEGEN_DECL(); |
2900 | 55 | }; | 55 | }; |
2901 | 56 | 56 | ||
2902 | 57 | //fn:node-name | 57 | //fn:node-name |
2903 | 58 | class fn_node_name : public function | 58 | class fn_node_name : public function |
2904 | 59 | { | 59 | { |
2905 | 60 | public: | 60 | public: |
2906 | 61 | fn_node_name(const signature& sig, FunctionConsts::FunctionKind kind) | 61 | fn_node_name(const signature& sig, FunctionConsts::FunctionKind kind) |
2907 | 62 | : | 62 | : |
2908 | 63 | function(sig, kind) | 63 | function(sig, kind) |
2909 | 64 | { | 64 | { |
2910 | 65 | 65 | ||
2911 | 66 | } | 66 | } |
2912 | 67 | 67 | ||
2913 | 68 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } | 68 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } |
2914 | 69 | 69 | ||
2915 | 70 | CODEGEN_DECL(); | 70 | CODEGEN_DECL(); |
2916 | 71 | }; | 71 | }; |
2917 | 72 | 72 | ||
2918 | 73 | 73 | ||
2919 | 74 | //fn:nilled | 74 | //fn:nilled |
2920 | 75 | class fn_nilled : public function | 75 | class fn_nilled : public function |
2921 | 76 | { | 76 | { |
2922 | 77 | public: | 77 | public: |
2923 | 78 | fn_nilled(const signature& sig, FunctionConsts::FunctionKind kind) | 78 | fn_nilled(const signature& sig, FunctionConsts::FunctionKind kind) |
2924 | 79 | : | 79 | : |
2925 | 80 | function(sig, kind) | 80 | function(sig, kind) |
2926 | 81 | { | 81 | { |
2927 | 82 | 82 | ||
2928 | 83 | } | 83 | } |
2929 | 84 | 84 | ||
2930 | 85 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } | 85 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } |
2931 | 86 | 86 | ||
2932 | 87 | CODEGEN_DECL(); | 87 | CODEGEN_DECL(); |
2933 | 88 | }; | 88 | }; |
2934 | 89 | 89 | ||
2935 | 90 | 90 | ||
2936 | 91 | //fn:string | 91 | //fn:string |
2937 | 92 | class fn_string : public function | 92 | class fn_string : public function |
2938 | 93 | { | 93 | { |
2939 | 94 | public: | 94 | public: |
2940 | 95 | fn_string(const signature& sig, FunctionConsts::FunctionKind kind) | 95 | fn_string(const signature& sig, FunctionConsts::FunctionKind kind) |
2941 | 96 | : | 96 | : |
2942 | 97 | function(sig, kind) | 97 | function(sig, kind) |
2943 | 98 | { | 98 | { |
2944 | 99 | 99 | ||
2945 | 100 | } | 100 | } |
2946 | 101 | 101 | ||
2947 | 102 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } | 102 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } |
2948 | 103 | 103 | ||
2949 | 104 | CODEGEN_DECL(); | 104 | CODEGEN_DECL(); |
2950 | 105 | }; | 105 | }; |
2951 | 106 | 106 | ||
2952 | 107 | 107 | ||
2953 | 108 | //fn:data | 108 | //fn:data |
2954 | 109 | class fn_data : public function | 109 | class fn_data : public function |
2955 | 110 | { | 110 | { |
2956 | 111 | public: | 111 | public: |
2957 | 112 | fn_data(const signature& sig, FunctionConsts::FunctionKind kind) | 112 | fn_data(const signature& sig, FunctionConsts::FunctionKind kind) |
2958 | 113 | : | 113 | : |
2959 | 114 | function(sig, kind) | 114 | function(sig, kind) |
2960 | 115 | { | 115 | { |
2961 | 116 | 116 | ||
2962 | 117 | } | 117 | } |
2963 | 118 | 118 | ||
2964 | 119 | xqtref_t getReturnType(const fo_expr* caller) const; | 119 | xqtref_t getReturnType(const fo_expr* caller) const; |
2965 | 120 | 120 | ||
2966 | 121 | bool isMap(ulong producer) const { return producer == 0; } | 121 | bool isMap(ulong producer) const { return producer == 0; } |
2967 | 122 | 122 | ||
2968 | 123 | BoolAnnotationValue ignoresSortedNodes(expr* fo, csize producer) const; | 123 | BoolAnnotationValue ignoresSortedNodes(expr* fo, csize producer) const; |
2969 | 124 | 124 | ||
2970 | 125 | BoolAnnotationValue ignoresDuplicateNodes(expr* fo, csize producer) const; | 125 | BoolAnnotationValue ignoresDuplicateNodes(expr* fo, csize producer) const; |
2971 | 126 | 126 | ||
2972 | 127 | bool mustCopyInputNodes(expr* fo, csize producer) const; | 127 | bool mustCopyInputNodes(expr* fo, csize producer) const; |
2973 | 128 | 128 | ||
2974 | 129 | CODEGEN_DECL(); | 129 | CODEGEN_DECL(); |
2975 | 130 | }; | 130 | }; |
2976 | 131 | 131 | ||
2977 | 132 | 132 | ||
2978 | 133 | //fn:base-uri | 133 | //fn:base-uri |
2979 | 134 | class fn_base_uri : public function | 134 | class fn_base_uri : public function |
2980 | 135 | { | 135 | { |
2981 | 136 | public: | 136 | public: |
2982 | 137 | fn_base_uri(const signature& sig, FunctionConsts::FunctionKind kind) | 137 | fn_base_uri(const signature& sig, FunctionConsts::FunctionKind kind) |
2983 | 138 | : | 138 | : |
2984 | 139 | function(sig, kind) | 139 | function(sig, kind) |
2985 | 140 | { | 140 | { |
2986 | 141 | 141 | ||
2987 | 142 | } | 142 | } |
2988 | 143 | 143 | ||
2989 | 144 | bool mustCopyInputNodes(expr* fo, csize producer) const { return true; } | 144 | bool mustCopyInputNodes(expr* fo, csize producer) const { return true; } |
2990 | 145 | 145 | ||
2991 | 146 | CODEGEN_DECL(); | 146 | CODEGEN_DECL(); |
2992 | 147 | }; | 147 | }; |
2993 | 148 | 148 | ||
2994 | 149 | 149 | ||
2995 | 150 | //fn:document-uri | 150 | //fn:document-uri |
2996 | 151 | class fn_document_uri_3_0 : public function | 151 | class fn_document_uri_3_0 : public function |
2997 | 152 | { | 152 | { |
2998 | 153 | public: | 153 | public: |
2999 | 154 | fn_document_uri_3_0(const signature& sig, FunctionConsts::FunctionKind kind) | 154 | fn_document_uri_3_0(const signature& sig, FunctionConsts::FunctionKind kind) |
3000 | 155 | : | 155 | : |
3001 | 156 | function(sig, kind) | 156 | function(sig, kind) |
3002 | 157 | { | 157 | { |
3003 | 158 | theXQueryVersion = StaticContextConsts::xquery_version_3_0; | 158 | theXQueryVersion = StaticContextConsts::xquery_version_3_0; |
3004 | 159 | } | 159 | } |
3005 | 160 | 160 | ||
3006 | 161 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } | 161 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } |
3007 | 162 | 162 | ||
3008 | 163 | CODEGEN_DECL(); | 163 | CODEGEN_DECL(); |
3009 | 164 | }; | 164 | }; |
3010 | 165 | 165 | ||
3011 | 166 | //fn:document-uri | 166 | //fn:document-uri |
3012 | 167 | class fn_document_uri : public function | 167 | class fn_document_uri : public function |
3013 | 168 | { | 168 | { |
3014 | 169 | public: | 169 | public: |
3015 | 170 | fn_document_uri(const signature& sig, FunctionConsts::FunctionKind kind) | 170 | fn_document_uri(const signature& sig, FunctionConsts::FunctionKind kind) |
3016 | 171 | : | 171 | : |
3017 | 172 | function(sig, kind) | 172 | function(sig, kind) |
3018 | 173 | { | 173 | { |
3019 | 174 | 174 | ||
3020 | 175 | } | 175 | } |
3021 | 176 | 176 | ||
3022 | 177 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } | 177 | bool mustCopyInputNodes(expr* fo, csize producer) const { return false; } |
3023 | 178 | 178 | ||
3024 | 179 | CODEGEN_DECL(); | 179 | CODEGEN_DECL(); |
3025 | 180 | }; | 180 | }; |
3026 | 181 | 181 | ||
3027 | 182 | 182 | ||
3028 | 183 | //fn:root | 183 | //fn:root |
3029 | 184 | class fn_root : public function | 184 | class fn_root : public function |
3030 | 185 | { | 185 | { |
3031 | 186 | public: | 186 | public: |
3032 | 187 | fn_root(const signature& sig, FunctionConsts::FunctionKind kind) | 187 | fn_root(const signature& sig, FunctionConsts::FunctionKind kind) |
3033 | 188 | : | 188 | : |
3034 | 189 | function(sig, kind) | 189 | function(sig, kind) |
3035 | 190 | { | 190 | { |
3036 | 191 | 191 | ||
3037 | 192 | } | 192 | } |
3038 | 193 | 193 | ||
3039 | 194 | bool mustCopyInputNodes(expr* fo, csize producer) const { return true; } | 194 | bool mustCopyInputNodes(expr* fo, csize producer) const { return true; } |
3040 | 195 | 195 | ||
3041 | 196 | CODEGEN_DECL(); | 196 | CODEGEN_DECL(); |
3042 | 197 | }; | 197 | }; |
3043 | 198 | 198 | ||
3044 | 199 | 199 | ||
3045 | 200 | } //namespace zorba | 200 | } //namespace zorba |
3046 | 201 | 201 | ||
3047 | 202 | 202 | ||
3048 | 203 | #endif | 203 | #endif |
3049 | 204 | /* | 204 | /* |
3050 | 205 | * Local variables: | 205 | * Local variables: |
3051 | 206 | * mode: c++ | 206 | * mode: c++ |
3052 | 207 | * End: | 207 | * End: |
3053 | 208 | */ | 208 | */ |
3054 | 209 | 209 | ||
3055 | === modified file 'src/functions/pregenerated/func_any_uri.cpp' | |||
3056 | --- src/functions/pregenerated/func_any_uri.cpp 2012-03-28 05:19:57 +0000 | |||
3057 | +++ src/functions/pregenerated/func_any_uri.cpp 2012-04-13 09:38:53 +0000 | |||
3058 | @@ -1,76 +1,76 @@ | |||
3135 | 1 | /* | 1 | /* |
3136 | 2 | * Copyright 2006-2008 The FLWOR Foundation. | 2 | * Copyright 2006-2008 The FLWOR Foundation. |
3137 | 3 | * | 3 | * |
3138 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
3139 | 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
3140 | 6 | * You may obtain a copy of the License at | 6 | * You may obtain a copy of the License at |
3141 | 7 | * | 7 | * |
3142 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
3143 | 9 | * | 9 | * |
3144 | 10 | * Unless required by applicable law or agreed to in writing, software | 10 | * Unless required by applicable law or agreed to in writing, software |
3145 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
3146 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
3147 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
3148 | 14 | * limitations under the License. | 14 | * limitations under the License. |
3149 | 15 | */ | 15 | */ |
3150 | 16 | 16 | ||
3151 | 17 | // ****************************************** | 17 | // ****************************************** |
3152 | 18 | // * * | 18 | // * * |
3153 | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * |
3154 | 20 | // * SEE .xml FILE WITH SAME NAME * | 20 | // * SEE .xml FILE WITH SAME NAME * |
3155 | 21 | // * * | 21 | // * * |
3156 | 22 | // ****************************************** | 22 | // ****************************************** |
3157 | 23 | 23 | ||
3158 | 24 | 24 | ||
3159 | 25 | #include "stdafx.h" | 25 | #include "stdafx.h" |
3160 | 26 | #include "runtime/any_uri/any_uri.h" | 26 | #include "runtime/any_uri/any_uri.h" |
3161 | 27 | #include "functions/func_any_uri.h" | 27 | #include "functions/func_any_uri.h" |
3162 | 28 | 28 | ||
3163 | 29 | 29 | ||
3164 | 30 | namespace zorba{ | 30 | namespace zorba{ |
3165 | 31 | 31 | ||
3166 | 32 | 32 | ||
3167 | 33 | 33 | ||
3168 | 34 | PlanIter_t fn_resolve_uri::codegen( | 34 | PlanIter_t fn_resolve_uri::codegen( |
3169 | 35 | CompilerCB*, | 35 | CompilerCB*, |
3170 | 36 | static_context* sctx, | 36 | static_context* sctx, |
3171 | 37 | const QueryLoc& loc, | 37 | const QueryLoc& loc, |
3172 | 38 | std::vector<PlanIter_t>& argv, | 38 | std::vector<PlanIter_t>& argv, |
3173 | 39 | expr& ann) const | 39 | expr& ann) const |
3174 | 40 | { | 40 | { |
3175 | 41 | return new ResolveUriIterator(sctx, loc, argv); | 41 | return new ResolveUriIterator(sctx, loc, argv); |
3176 | 42 | } | 42 | } |
3177 | 43 | 43 | ||
3178 | 44 | void populate_context_any_uri(static_context* sctx) | 44 | void populate_context_any_uri(static_context* sctx) |
3179 | 45 | { | 45 | { |
3180 | 46 | { | 46 | { |
3181 | 47 | 47 | ||
3182 | 48 | 48 | ||
3183 | 49 | DECL_WITH_KIND(sctx, fn_resolve_uri, | 49 | DECL_WITH_KIND(sctx, fn_resolve_uri, |
3184 | 50 | (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri"), | 50 | (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri"), |
3185 | 51 | GENV_TYPESYSTEM.STRING_TYPE_QUESTION, | 51 | GENV_TYPESYSTEM.STRING_TYPE_QUESTION, |
3186 | 52 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), | 52 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), |
3187 | 53 | FunctionConsts::FN_RESOLVE_URI_1); | 53 | FunctionConsts::FN_RESOLVE_URI_1); |
3188 | 54 | 54 | ||
3189 | 55 | } | 55 | } |
3190 | 56 | 56 | ||
3191 | 57 | 57 | ||
3192 | 58 | { | 58 | { |
3193 | 59 | 59 | ||
3194 | 60 | 60 | ||
3195 | 61 | DECL_WITH_KIND(sctx, fn_resolve_uri, | 61 | DECL_WITH_KIND(sctx, fn_resolve_uri, |
3196 | 62 | (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri"), | 62 | (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri"), |
3197 | 63 | GENV_TYPESYSTEM.STRING_TYPE_QUESTION, | 63 | GENV_TYPESYSTEM.STRING_TYPE_QUESTION, |
3198 | 64 | GENV_TYPESYSTEM.STRING_TYPE_ONE, | 64 | GENV_TYPESYSTEM.STRING_TYPE_ONE, |
3199 | 65 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), | 65 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), |
3200 | 66 | FunctionConsts::FN_RESOLVE_URI_2); | 66 | FunctionConsts::FN_RESOLVE_URI_2); |
3201 | 67 | 67 | ||
3202 | 68 | } | 68 | } |
3203 | 69 | 69 | ||
3204 | 70 | } | 70 | } |
3205 | 71 | 71 | ||
3206 | 72 | 72 | ||
3207 | 73 | } | 73 | } |
3208 | 74 | 74 | ||
3209 | 75 | 75 | ||
3210 | 76 | 76 | ||
3211 | 77 | 77 | ||
3212 | === modified file 'src/functions/pregenerated/func_any_uri.h' | |||
3213 | --- src/functions/pregenerated/func_any_uri.h 2012-03-28 05:19:57 +0000 | |||
3214 | +++ src/functions/pregenerated/func_any_uri.h 2012-04-13 09:38:53 +0000 | |||
3215 | @@ -1,66 +1,66 @@ | |||
3282 | 1 | /* | 1 | /* |
3283 | 2 | * Copyright 2006-2008 The FLWOR Foundation. | 2 | * Copyright 2006-2008 The FLWOR Foundation. |
3284 | 3 | * | 3 | * |
3285 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
3286 | 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
3287 | 6 | * You may obtain a copy of the License at | 6 | * You may obtain a copy of the License at |
3288 | 7 | * | 7 | * |
3289 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
3290 | 9 | * | 9 | * |
3291 | 10 | * Unless required by applicable law or agreed to in writing, software | 10 | * Unless required by applicable law or agreed to in writing, software |
3292 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
3293 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
3294 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
3295 | 14 | * limitations under the License. | 14 | * limitations under the License. |
3296 | 15 | */ | 15 | */ |
3297 | 16 | 16 | ||
3298 | 17 | // ****************************************** | 17 | // ****************************************** |
3299 | 18 | // * * | 18 | // * * |
3300 | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * |
3301 | 20 | // * SEE .xml FILE WITH SAME NAME * | 20 | // * SEE .xml FILE WITH SAME NAME * |
3302 | 21 | // * * | 21 | // * * |
3303 | 22 | // ****************************************** | 22 | // ****************************************** |
3304 | 23 | 23 | ||
3305 | 24 | 24 | ||
3306 | 25 | #ifndef ZORBA_FUNCTIONS_ANY_URI_H | 25 | #ifndef ZORBA_FUNCTIONS_ANY_URI_H |
3307 | 26 | #define ZORBA_FUNCTIONS_ANY_URI_H | 26 | #define ZORBA_FUNCTIONS_ANY_URI_H |
3308 | 27 | 27 | ||
3309 | 28 | 28 | ||
3310 | 29 | #include "common/shared_types.h" | 29 | #include "common/shared_types.h" |
3311 | 30 | #include "functions/function_impl.h" | 30 | #include "functions/function_impl.h" |
3312 | 31 | 31 | ||
3313 | 32 | 32 | ||
3314 | 33 | namespace zorba { | 33 | namespace zorba { |
3315 | 34 | 34 | ||
3316 | 35 | 35 | ||
3317 | 36 | void populate_context_any_uri(static_context* sctx); | 36 | void populate_context_any_uri(static_context* sctx); |
3318 | 37 | 37 | ||
3319 | 38 | 38 | ||
3320 | 39 | 39 | ||
3321 | 40 | 40 | ||
3322 | 41 | //fn:resolve-uri | 41 | //fn:resolve-uri |
3323 | 42 | class fn_resolve_uri : public function | 42 | class fn_resolve_uri : public function |
3324 | 43 | { | 43 | { |
3325 | 44 | public: | 44 | public: |
3326 | 45 | fn_resolve_uri(const signature& sig, FunctionConsts::FunctionKind kind) | 45 | fn_resolve_uri(const signature& sig, FunctionConsts::FunctionKind kind) |
3327 | 46 | : | 46 | : |
3328 | 47 | function(sig, kind) | 47 | function(sig, kind) |
3329 | 48 | { | 48 | { |
3330 | 49 | 49 | ||
3331 | 50 | } | 50 | } |
3332 | 51 | 51 | ||
3333 | 52 | bool accessesDynCtx() const { return true; } | 52 | bool accessesDynCtx() const { return true; } |
3334 | 53 | 53 | ||
3335 | 54 | CODEGEN_DECL(); | 54 | CODEGEN_DECL(); |
3336 | 55 | }; | 55 | }; |
3337 | 56 | 56 | ||
3338 | 57 | 57 | ||
3339 | 58 | } //namespace zorba | 58 | } //namespace zorba |
3340 | 59 | 59 | ||
3341 | 60 | 60 | ||
3342 | 61 | #endif | 61 | #endif |
3343 | 62 | /* | 62 | /* |
3344 | 63 | * Local variables: | 63 | * Local variables: |
3345 | 64 | * mode: c++ | 64 | * mode: c++ |
3346 | 65 | * End: | 65 | * End: |
3347 | 66 | */ | 66 | */ |
3348 | 67 | 67 | ||
3349 | === modified file 'src/functions/pregenerated/func_base64.cpp' | |||
3350 | --- src/functions/pregenerated/func_base64.cpp 2012-03-28 05:19:57 +0000 | |||
3351 | +++ src/functions/pregenerated/func_base64.cpp 2012-04-13 09:38:53 +0000 | |||
3352 | @@ -1,85 +1,85 @@ | |||
3438 | 1 | /* | 1 | /* |
3439 | 2 | * Copyright 2006-2008 The FLWOR Foundation. | 2 | * Copyright 2006-2008 The FLWOR Foundation. |
3440 | 3 | * | 3 | * |
3441 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
3442 | 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
3443 | 6 | * You may obtain a copy of the License at | 6 | * You may obtain a copy of the License at |
3444 | 7 | * | 7 | * |
3445 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
3446 | 9 | * | 9 | * |
3447 | 10 | * Unless required by applicable law or agreed to in writing, software | 10 | * Unless required by applicable law or agreed to in writing, software |
3448 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
3449 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
3450 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
3451 | 14 | * limitations under the License. | 14 | * limitations under the License. |
3452 | 15 | */ | 15 | */ |
3453 | 16 | 16 | ||
3454 | 17 | // ****************************************** | 17 | // ****************************************** |
3455 | 18 | // * * | 18 | // * * |
3456 | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * |
3457 | 20 | // * SEE .xml FILE WITH SAME NAME * | 20 | // * SEE .xml FILE WITH SAME NAME * |
3458 | 21 | // * * | 21 | // * * |
3459 | 22 | // ****************************************** | 22 | // ****************************************** |
3460 | 23 | 23 | ||
3461 | 24 | 24 | ||
3462 | 25 | #include "stdafx.h" | 25 | #include "stdafx.h" |
3463 | 26 | #include "runtime/base64/base64.h" | 26 | #include "runtime/base64/base64.h" |
3464 | 27 | #include "functions/func_base64.h" | 27 | #include "functions/func_base64.h" |
3465 | 28 | 28 | ||
3466 | 29 | 29 | ||
3467 | 30 | namespace zorba{ | 30 | namespace zorba{ |
3468 | 31 | 31 | ||
3469 | 32 | 32 | ||
3470 | 33 | 33 | ||
3471 | 34 | PlanIter_t fn_zorba_base64_decode::codegen( | 34 | PlanIter_t fn_zorba_base64_decode::codegen( |
3472 | 35 | CompilerCB*, | 35 | CompilerCB*, |
3473 | 36 | static_context* sctx, | 36 | static_context* sctx, |
3474 | 37 | const QueryLoc& loc, | 37 | const QueryLoc& loc, |
3475 | 38 | std::vector<PlanIter_t>& argv, | 38 | std::vector<PlanIter_t>& argv, |
3476 | 39 | expr& ann) const | 39 | expr& ann) const |
3477 | 40 | { | 40 | { |
3478 | 41 | return new Base64DecodeIterator(sctx, loc, argv); | 41 | return new Base64DecodeIterator(sctx, loc, argv); |
3479 | 42 | } | 42 | } |
3480 | 43 | 43 | ||
3481 | 44 | PlanIter_t fn_zorba_base64_encode::codegen( | 44 | PlanIter_t fn_zorba_base64_encode::codegen( |
3482 | 45 | CompilerCB*, | 45 | CompilerCB*, |
3483 | 46 | static_context* sctx, | 46 | static_context* sctx, |
3484 | 47 | const QueryLoc& loc, | 47 | const QueryLoc& loc, |
3485 | 48 | std::vector<PlanIter_t>& argv, | 48 | std::vector<PlanIter_t>& argv, |
3486 | 49 | expr& ann) const | 49 | expr& ann) const |
3487 | 50 | { | 50 | { |
3488 | 51 | return new Base64EncodeIterator(sctx, loc, argv); | 51 | return new Base64EncodeIterator(sctx, loc, argv); |
3489 | 52 | } | 52 | } |
3490 | 53 | 53 | ||
3491 | 54 | void populate_context_base64(static_context* sctx) | 54 | void populate_context_base64(static_context* sctx) |
3492 | 55 | { | 55 | { |
3493 | 56 | { | 56 | { |
3494 | 57 | 57 | ||
3495 | 58 | 58 | ||
3496 | 59 | DECL_WITH_KIND(sctx, fn_zorba_base64_decode, | 59 | DECL_WITH_KIND(sctx, fn_zorba_base64_decode, |
3497 | 60 | (createQName("http://www.zorba-xquery.com/modules/converters/base64","","decode"), | 60 | (createQName("http://www.zorba-xquery.com/modules/converters/base64","","decode"), |
3498 | 61 | GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE, | 61 | GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE, |
3499 | 62 | GENV_TYPESYSTEM.STRING_TYPE_ONE), | 62 | GENV_TYPESYSTEM.STRING_TYPE_ONE), |
3500 | 63 | FunctionConsts::FN_ZORBA_BASE64_DECODE_1); | 63 | FunctionConsts::FN_ZORBA_BASE64_DECODE_1); |
3501 | 64 | 64 | ||
3502 | 65 | } | 65 | } |
3503 | 66 | 66 | ||
3504 | 67 | 67 | ||
3505 | 68 | { | 68 | { |
3506 | 69 | 69 | ||
3507 | 70 | 70 | ||
3508 | 71 | DECL_WITH_KIND(sctx, fn_zorba_base64_encode, | 71 | DECL_WITH_KIND(sctx, fn_zorba_base64_encode, |
3509 | 72 | (createQName("http://www.zorba-xquery.com/modules/converters/base64","","encode"), | 72 | (createQName("http://www.zorba-xquery.com/modules/converters/base64","","encode"), |
3510 | 73 | GENV_TYPESYSTEM.STRING_TYPE_ONE, | 73 | GENV_TYPESYSTEM.STRING_TYPE_ONE, |
3511 | 74 | GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE), | 74 | GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE), |
3512 | 75 | FunctionConsts::FN_ZORBA_BASE64_ENCODE_1); | 75 | FunctionConsts::FN_ZORBA_BASE64_ENCODE_1); |
3513 | 76 | 76 | ||
3514 | 77 | } | 77 | } |
3515 | 78 | 78 | ||
3516 | 79 | } | 79 | } |
3517 | 80 | 80 | ||
3518 | 81 | 81 | ||
3519 | 82 | } | 82 | } |
3520 | 83 | 83 | ||
3521 | 84 | 84 | ||
3522 | 85 | 85 | ||
3523 | 86 | 86 | ||
3524 | === modified file 'src/functions/pregenerated/func_base64.h' | |||
3525 | --- src/functions/pregenerated/func_base64.h 2012-03-28 05:19:57 +0000 | |||
3526 | +++ src/functions/pregenerated/func_base64.h 2012-04-13 09:38:53 +0000 | |||
3527 | @@ -1,79 +1,79 @@ | |||
3607 | 1 | /* | 1 | /* |
3608 | 2 | * Copyright 2006-2008 The FLWOR Foundation. | 2 | * Copyright 2006-2008 The FLWOR Foundation. |
3609 | 3 | * | 3 | * |
3610 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
3611 | 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
3612 | 6 | * You may obtain a copy of the License at | 6 | * You may obtain a copy of the License at |
3613 | 7 | * | 7 | * |
3614 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
3615 | 9 | * | 9 | * |
3616 | 10 | * Unless required by applicable law or agreed to in writing, software | 10 | * Unless required by applicable law or agreed to in writing, software |
3617 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
3618 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
3619 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
3620 | 14 | * limitations under the License. | 14 | * limitations under the License. |
3621 | 15 | */ | 15 | */ |
3622 | 16 | 16 | ||
3623 | 17 | // ****************************************** | 17 | // ****************************************** |
3624 | 18 | // * * | 18 | // * * |
3625 | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * |
3626 | 20 | // * SEE .xml FILE WITH SAME NAME * | 20 | // * SEE .xml FILE WITH SAME NAME * |
3627 | 21 | // * * | 21 | // * * |
3628 | 22 | // ****************************************** | 22 | // ****************************************** |
3629 | 23 | 23 | ||
3630 | 24 | 24 | ||
3631 | 25 | #ifndef ZORBA_FUNCTIONS_BASE64_H | 25 | #ifndef ZORBA_FUNCTIONS_BASE64_H |
3632 | 26 | #define ZORBA_FUNCTIONS_BASE64_H | 26 | #define ZORBA_FUNCTIONS_BASE64_H |
3633 | 27 | 27 | ||
3634 | 28 | 28 | ||
3635 | 29 | #include "common/shared_types.h" | 29 | #include "common/shared_types.h" |
3636 | 30 | #include "functions/function_impl.h" | 30 | #include "functions/function_impl.h" |
3637 | 31 | 31 | ||
3638 | 32 | 32 | ||
3639 | 33 | namespace zorba { | 33 | namespace zorba { |
3640 | 34 | 34 | ||
3641 | 35 | 35 | ||
3642 | 36 | void populate_context_base64(static_context* sctx); | 36 | void populate_context_base64(static_context* sctx); |
3643 | 37 | 37 | ||
3644 | 38 | 38 | ||
3645 | 39 | 39 | ||
3646 | 40 | 40 | ||
3647 | 41 | //fn-zorba-base64:decode | 41 | //fn-zorba-base64:decode |
3648 | 42 | class fn_zorba_base64_decode : public function | 42 | class fn_zorba_base64_decode : public function |
3649 | 43 | { | 43 | { |
3650 | 44 | public: | 44 | public: |
3651 | 45 | fn_zorba_base64_decode(const signature& sig, FunctionConsts::FunctionKind kind) | 45 | fn_zorba_base64_decode(const signature& sig, FunctionConsts::FunctionKind kind) |
3652 | 46 | : | 46 | : |
3653 | 47 | function(sig, kind) | 47 | function(sig, kind) |
3654 | 48 | { | 48 | { |
3655 | 49 | 49 | ||
3656 | 50 | } | 50 | } |
3657 | 51 | 51 | ||
3658 | 52 | CODEGEN_DECL(); | 52 | CODEGEN_DECL(); |
3659 | 53 | }; | 53 | }; |
3660 | 54 | 54 | ||
3661 | 55 | 55 | ||
3662 | 56 | //fn-zorba-base64:encode | 56 | //fn-zorba-base64:encode |
3663 | 57 | class fn_zorba_base64_encode : public function | 57 | class fn_zorba_base64_encode : public function |
3664 | 58 | { | 58 | { |
3665 | 59 | public: | 59 | public: |
3666 | 60 | fn_zorba_base64_encode(const signature& sig, FunctionConsts::FunctionKind kind) | 60 | fn_zorba_base64_encode(const signature& sig, FunctionConsts::FunctionKind kind) |
3667 | 61 | : | 61 | : |
3668 | 62 | function(sig, kind) | 62 | function(sig, kind) |
3669 | 63 | { | 63 | { |
3670 | 64 | 64 | ||
3671 | 65 | } | 65 | } |
3672 | 66 | 66 | ||
3673 | 67 | CODEGEN_DECL(); | 67 | CODEGEN_DECL(); |
3674 | 68 | }; | 68 | }; |
3675 | 69 | 69 | ||
3676 | 70 | 70 | ||
3677 | 71 | } //namespace zorba | 71 | } //namespace zorba |
3678 | 72 | 72 | ||
3679 | 73 | 73 | ||
3680 | 74 | #endif | 74 | #endif |
3681 | 75 | /* | 75 | /* |
3682 | 76 | * Local variables: | 76 | * Local variables: |
3683 | 77 | * mode: c++ | 77 | * mode: c++ |
3684 | 78 | * End: | 78 | * End: |
3685 | 79 | */ | 79 | */ |
3686 | 80 | 80 | ||
3687 | === modified file 'src/functions/pregenerated/func_booleans.cpp' | |||
3688 | --- src/functions/pregenerated/func_booleans.cpp 2012-03-28 05:19:57 +0000 | |||
3689 | +++ src/functions/pregenerated/func_booleans.cpp 2012-04-13 09:38:53 +0000 | |||
3690 | @@ -1,110 +1,110 @@ | |||
3801 | 1 | /* | 1 | /* |
3802 | 2 | * Copyright 2006-2008 The FLWOR Foundation. | 2 | * Copyright 2006-2008 The FLWOR Foundation. |
3803 | 3 | * | 3 | * |
3804 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
3805 | 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
3806 | 6 | * You may obtain a copy of the License at | 6 | * You may obtain a copy of the License at |
3807 | 7 | * | 7 | * |
3808 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
3809 | 9 | * | 9 | * |
3810 | 10 | * Unless required by applicable law or agreed to in writing, software | 10 | * Unless required by applicable law or agreed to in writing, software |
3811 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
3812 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
3813 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
3814 | 14 | * limitations under the License. | 14 | * limitations under the License. |
3815 | 15 | */ | 15 | */ |
3816 | 16 | 16 | ||
3817 | 17 | // ****************************************** | 17 | // ****************************************** |
3818 | 18 | // * * | 18 | // * * |
3819 | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * |
3820 | 20 | // * SEE .xml FILE WITH SAME NAME * | 20 | // * SEE .xml FILE WITH SAME NAME * |
3821 | 21 | // * * | 21 | // * * |
3822 | 22 | // ****************************************** | 22 | // ****************************************** |
3823 | 23 | 23 | ||
3824 | 24 | 24 | ||
3825 | 25 | #include "stdafx.h" | 25 | #include "stdafx.h" |
3826 | 26 | #include "runtime/booleans/booleans.h" | 26 | #include "runtime/booleans/booleans.h" |
3827 | 27 | #include "functions/func_booleans.h" | 27 | #include "functions/func_booleans.h" |
3828 | 28 | 28 | ||
3829 | 29 | 29 | ||
3830 | 30 | namespace zorba{ | 30 | namespace zorba{ |
3831 | 31 | 31 | ||
3832 | 32 | 32 | ||
3833 | 33 | 33 | ||
3834 | 34 | PlanIter_t op_is_same_node::codegen( | 34 | PlanIter_t op_is_same_node::codegen( |
3835 | 35 | CompilerCB*, | 35 | CompilerCB*, |
3836 | 36 | static_context* sctx, | 36 | static_context* sctx, |
3837 | 37 | const QueryLoc& loc, | 37 | const QueryLoc& loc, |
3838 | 38 | std::vector<PlanIter_t>& argv, | 38 | std::vector<PlanIter_t>& argv, |
3839 | 39 | expr& ann) const | 39 | expr& ann) const |
3840 | 40 | { | 40 | { |
3841 | 41 | return new IsSameNodeIterator(sctx, loc, argv); | 41 | return new IsSameNodeIterator(sctx, loc, argv); |
3842 | 42 | } | 42 | } |
3843 | 43 | 43 | ||
3844 | 44 | PlanIter_t op_node_before::codegen( | 44 | PlanIter_t op_node_before::codegen( |
3845 | 45 | CompilerCB*, | 45 | CompilerCB*, |
3846 | 46 | static_context* sctx, | 46 | static_context* sctx, |
3847 | 47 | const QueryLoc& loc, | 47 | const QueryLoc& loc, |
3848 | 48 | std::vector<PlanIter_t>& argv, | 48 | std::vector<PlanIter_t>& argv, |
3849 | 49 | expr& ann) const | 49 | expr& ann) const |
3850 | 50 | { | 50 | { |
3851 | 51 | return new NodeBeforeIterator(sctx, loc, argv); | 51 | return new NodeBeforeIterator(sctx, loc, argv); |
3852 | 52 | } | 52 | } |
3853 | 53 | 53 | ||
3854 | 54 | PlanIter_t op_node_after::codegen( | 54 | PlanIter_t op_node_after::codegen( |
3855 | 55 | CompilerCB*, | 55 | CompilerCB*, |
3856 | 56 | static_context* sctx, | 56 | static_context* sctx, |
3857 | 57 | const QueryLoc& loc, | 57 | const QueryLoc& loc, |
3858 | 58 | std::vector<PlanIter_t>& argv, | 58 | std::vector<PlanIter_t>& argv, |
3859 | 59 | expr& ann) const | 59 | expr& ann) const |
3860 | 60 | { | 60 | { |
3861 | 61 | return new NodeAfterIterator(sctx, loc, argv); | 61 | return new NodeAfterIterator(sctx, loc, argv); |
3862 | 62 | } | 62 | } |
3863 | 63 | 63 | ||
3864 | 64 | void populate_context_booleans(static_context* sctx) | 64 | void populate_context_booleans(static_context* sctx) |
3865 | 65 | { | 65 | { |
3866 | 66 | { | 66 | { |
3867 | 67 | 67 | ||
3868 | 68 | 68 | ||
3869 | 69 | DECL_WITH_KIND(sctx, op_is_same_node, | 69 | DECL_WITH_KIND(sctx, op_is_same_node, |
3870 | 70 | (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","is-same-node"), | 70 | (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","is-same-node"), |
3871 | 71 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, | 71 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, |
3872 | 72 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, | 72 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, |
3873 | 73 | GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION), | 73 | GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION), |
3874 | 74 | FunctionConsts::OP_IS_SAME_NODE_2); | 74 | FunctionConsts::OP_IS_SAME_NODE_2); |
3875 | 75 | 75 | ||
3876 | 76 | } | 76 | } |
3877 | 77 | 77 | ||
3878 | 78 | 78 | ||
3879 | 79 | { | 79 | { |
3880 | 80 | 80 | ||
3881 | 81 | 81 | ||
3882 | 82 | DECL_WITH_KIND(sctx, op_node_before, | 82 | DECL_WITH_KIND(sctx, op_node_before, |
3883 | 83 | (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-before"), | 83 | (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-before"), |
3884 | 84 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, | 84 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, |
3885 | 85 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, | 85 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, |
3886 | 86 | GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION), | 86 | GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION), |
3887 | 87 | FunctionConsts::OP_NODE_BEFORE_2); | 87 | FunctionConsts::OP_NODE_BEFORE_2); |
3888 | 88 | 88 | ||
3889 | 89 | } | 89 | } |
3890 | 90 | 90 | ||
3891 | 91 | 91 | ||
3892 | 92 | { | 92 | { |
3893 | 93 | 93 | ||
3894 | 94 | 94 | ||
3895 | 95 | DECL_WITH_KIND(sctx, op_node_after, | 95 | DECL_WITH_KIND(sctx, op_node_after, |
3896 | 96 | (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-after"), | 96 | (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-after"), |
3897 | 97 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, | 97 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, |
3898 | 98 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, | 98 | GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, |
3899 | 99 | GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION), | 99 | GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION), |
3900 | 100 | FunctionConsts::OP_NODE_AFTER_2); | 100 | FunctionConsts::OP_NODE_AFTER_2); |
3901 | 101 | 101 | ||
3902 | 102 | } | 102 | } |
3903 | 103 | 103 | ||
3904 | 104 | } | 104 | } |
3905 | 105 | 105 | ||
3906 | 106 | 106 | ||
3907 | 107 | } | 107 | } |
3908 | 108 | 108 | ||
3909 | 109 | 109 | ||
3910 | 110 | 110 | ||
3911 | 111 | 111 | ||
3912 | === modified file 'src/functions/pregenerated/func_booleans.h' | |||
3913 | --- src/functions/pregenerated/func_booleans.h 2012-03-28 05:19:57 +0000 | |||
3914 | +++ src/functions/pregenerated/func_booleans.h 2012-04-13 09:38:53 +0000 | |||
3915 | @@ -1,100 +1,100 @@ | |||
4016 | 1 | /* | 1 | /* |
4017 | 2 | * Copyright 2006-2008 The FLWOR Foundation. | 2 | * Copyright 2006-2008 The FLWOR Foundation. |
4018 | 3 | * | 3 | * |
4019 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
4020 | 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
4021 | 6 | * You may obtain a copy of the License at | 6 | * You may obtain a copy of the License at |
4022 | 7 | * | 7 | * |
4023 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
4024 | 9 | * | 9 | * |
4025 | 10 | * Unless required by applicable law or agreed to in writing, software | 10 | * Unless required by applicable law or agreed to in writing, software |
4026 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
4027 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
4028 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
4029 | 14 | * limitations under the License. | 14 | * limitations under the License. |
4030 | 15 | */ | 15 | */ |
4031 | 16 | 16 | ||
4032 | 17 | // ****************************************** | 17 | // ****************************************** |
4033 | 18 | // * * | 18 | // * * |
4034 | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * |
4035 | 20 | // * SEE .xml FILE WITH SAME NAME * | 20 | // * SEE .xml FILE WITH SAME NAME * |
4036 | 21 | // * * | 21 | // * * |
4037 | 22 | // ****************************************** | 22 | // ****************************************** |
4038 | 23 | 23 | ||
4039 | 24 | 24 | ||
4040 | 25 | #ifndef ZORBA_FUNCTIONS_BOOLEANS_H | 25 | #ifndef ZORBA_FUNCTIONS_BOOLEANS_H |
4041 | 26 | #define ZORBA_FUNCTIONS_BOOLEANS_H | 26 | #define ZORBA_FUNCTIONS_BOOLEANS_H |
4042 | 27 | 27 | ||
4043 | 28 | 28 | ||
4044 | 29 | #include "common/shared_types.h" | 29 | #include "common/shared_types.h" |
4045 | 30 | #include "functions/function_impl.h" | 30 | #include "functions/function_impl.h" |
4046 | 31 | 31 | ||
4047 | 32 | 32 | ||
4048 | 33 | namespace zorba { | 33 | namespace zorba { |
4049 | 34 | 34 | ||
4050 | 35 | 35 | ||
4051 | 36 | void populate_context_booleans(static_context* sctx); | 36 | void populate_context_booleans(static_context* sctx); |
4052 | 37 | 37 | ||
4053 | 38 | 38 | ||
4054 | 39 | 39 | ||
4055 | 40 | 40 | ||
4056 | 41 | //op:is-same-node | 41 | //op:is-same-node |
4057 | 42 | class op_is_same_node : public function | 42 | class op_is_same_node : public function |
4058 | 43 | { | 43 | { |
4059 | 44 | public: | 44 | public: |
4060 | 45 | op_is_same_node(const signature& sig, FunctionConsts::FunctionKind kind) | 45 | op_is_same_node(const signature& sig, FunctionConsts::FunctionKind kind) |
4061 | 46 | : | 46 | : |
4062 | 47 | function(sig, kind) | 47 | function(sig, kind) |
4063 | 48 | { | 48 | { |
4064 | 49 | 49 | ||
4065 | 50 | } | 50 | } |
4066 | 51 | 51 | ||
4067 | 52 | bool mustCopyInputNodes(expr* fo, csize producer) const { return true; } | 52 | bool mustCopyInputNodes(expr* fo, csize producer) const { return true; } |
4068 | 53 | 53 | ||
4069 | 54 | CODEGEN_DECL(); | 54 | CODEGEN_DECL(); |
4070 | 55 | }; | 55 | }; |
4071 | 56 | 56 | ||
4072 | 57 | 57 | ||
4073 | 58 | //op:node-before | 58 | //op:node-before |
4074 | 59 | class op_node_before : public function | 59 | class op_node_before : public function |
4075 | 60 | { | 60 | { |
4076 | 61 | public: | 61 | public: |
4077 | 62 | op_node_before(const signature& sig, FunctionConsts::FunctionKind kind) | 62 | op_node_before(const signature& sig, FunctionConsts::FunctionKind kind) |
4078 | 63 | : | 63 | : |
4079 | 64 | function(sig, kind) | 64 | function(sig, kind) |
4080 | 65 | { | 65 | { |
4081 | 66 | 66 | ||
4082 | 67 | } | 67 | } |
4083 | 68 | 68 | ||
4084 | 69 | bool mustCopyInputNodes(expr* fo, csize producer) const { return true; } | 69 | bool mustCopyInputNodes(expr* fo, csize producer) const { return true; } |
4085 | 70 | 70 | ||
4086 | 71 | CODEGEN_DECL(); | 71 | CODEGEN_DECL(); |
4087 | 72 | }; | 72 | }; |
4088 | 73 | 73 | ||
4089 | 74 | 74 | ||
4090 | 75 | //op:node-after | 75 | //op:node-after |
4091 | 76 | class op_node_after : public function | 76 | class op_node_after : public function |
4092 | 77 | { | 77 | { |
4093 | 78 | public: | 78 | public: |
4094 | 79 | op_node_after(const signature& sig, FunctionConsts::FunctionKind kind) | 79 | op_node_after(const signature& sig, FunctionConsts::FunctionKind kind) |
4095 | 80 | : | 80 | : |
4096 | 81 | function(sig, kind) | 81 | function(sig, kind) |
4097 | 82 | { | 82 | { |
4098 | 83 | 83 | ||
4099 | 84 | } | 84 | } |
4100 | 85 | 85 | ||
4101 | 86 | bool mustCopyInputNodes(expr* fo, csize producer) const { return true; } | 86 | bool mustCopyInputNodes(expr* fo, csize producer) const { return true; } |
4102 | 87 | 87 | ||
4103 | 88 | CODEGEN_DECL(); | 88 | CODEGEN_DECL(); |
4104 | 89 | }; | 89 | }; |
4105 | 90 | 90 | ||
4106 | 91 | 91 | ||
4107 | 92 | } //namespace zorba | 92 | } //namespace zorba |
4108 | 93 | 93 | ||
4109 | 94 | 94 | ||
4110 | 95 | #endif | 95 | #endif |
4111 | 96 | /* | 96 | /* |
4112 | 97 | * Local variables: | 97 | * Local variables: |
4113 | 98 | * mode: c++ | 98 | * mode: c++ |
4114 | 99 | * End: | 99 | * End: |
4115 | 100 | */ | 100 | */ |
4116 | 101 | 101 | ||
4117 | === modified file 'src/functions/pregenerated/func_collections.cpp' | |||
4118 | --- src/functions/pregenerated/func_collections.cpp 2012-03-28 23:58:23 +0000 | |||
4119 | +++ src/functions/pregenerated/func_collections.cpp 2012-04-13 09:38:53 +0000 | |||
4120 | @@ -171,6 +171,16 @@ | |||
4121 | 171 | return new DeclaredICsIterator(sctx, loc, argv); | 171 | return new DeclaredICsIterator(sctx, loc, argv); |
4122 | 172 | } | 172 | } |
4123 | 173 | 173 | ||
4124 | 174 | PlanIter_t fn_uri_collection::codegen( | ||
4125 | 175 | CompilerCB*, | ||
4126 | 176 | static_context* sctx, | ||
4127 | 177 | const QueryLoc& loc, | ||
4128 | 178 | std::vector<PlanIter_t>& argv, | ||
4129 | 179 | expr& ann) const | ||
4130 | 180 | { | ||
4131 | 181 | return new FnURICollectionIterator(sctx, loc, argv); | ||
4132 | 182 | } | ||
4133 | 183 | |||
4134 | 174 | void populate_context_collections(static_context* sctx) | 184 | void populate_context_collections(static_context* sctx) |
4135 | 175 | { | 185 | { |
4136 | 176 | { | 186 | { |
4137 | @@ -892,6 +902,29 @@ | |||
4138 | 892 | 902 | ||
4139 | 893 | } | 903 | } |
4140 | 894 | 904 | ||
4141 | 905 | |||
4142 | 906 | { | ||
4143 | 907 | |||
4144 | 908 | |||
4145 | 909 | DECL_WITH_KIND(sctx, fn_uri_collection, | ||
4146 | 910 | (createQName("http://www.w3.org/2005/xpath-functions","","uri-collection"), | ||
4147 | 911 | GENV_TYPESYSTEM.ANY_URI_TYPE_STAR), | ||
4148 | 912 | FunctionConsts::FN_URI_COLLECTION_0); | ||
4149 | 913 | |||
4150 | 914 | } | ||
4151 | 915 | |||
4152 | 916 | |||
4153 | 917 | { | ||
4154 | 918 | |||
4155 | 919 | |||
4156 | 920 | DECL_WITH_KIND(sctx, fn_uri_collection, | ||
4157 | 921 | (createQName("http://www.w3.org/2005/xpath-functions","","uri-collection"), | ||
4158 | 922 | GENV_TYPESYSTEM.STRING_TYPE_QUESTION, | ||
4159 | 923 | GENV_TYPESYSTEM.ANY_URI_TYPE_STAR), | ||
4160 | 924 | FunctionConsts::FN_URI_COLLECTION_1); | ||
4161 | 925 | |||
4162 | 926 | } | ||
4163 | 927 | |||
4164 | 895 | } | 928 | } |
4165 | 896 | 929 | ||
4166 | 897 | 930 | ||
4167 | 898 | 931 | ||
4168 | === modified file 'src/functions/pregenerated/func_collections.h' | |||
4169 | --- src/functions/pregenerated/func_collections.h 2012-03-28 23:58:23 +0000 | |||
4170 | +++ src/functions/pregenerated/func_collections.h 2012-04-13 09:38:53 +0000 | |||
4171 | @@ -664,6 +664,21 @@ | |||
4172 | 664 | }; | 664 | }; |
4173 | 665 | 665 | ||
4174 | 666 | 666 | ||
4175 | 667 | //fn:uri-collection | ||
4176 | 668 | class fn_uri_collection : public function | ||
4177 | 669 | { | ||
4178 | 670 | public: | ||
4179 | 671 | fn_uri_collection(const signature& sig, FunctionConsts::FunctionKind kind) | ||
4180 | 672 | : | ||
4181 | 673 | function(sig, kind) | ||
4182 | 674 | { | ||
4183 | 675 | |||
4184 | 676 | } | ||
4185 | 677 | |||
4186 | 678 | CODEGEN_DECL(); | ||
4187 | 679 | }; | ||
4188 | 680 | |||
4189 | 681 | |||
4190 | 667 | } //namespace zorba | 682 | } //namespace zorba |
4191 | 668 | 683 | ||
4192 | 669 | 684 | ||
4193 | 670 | 685 | ||
4194 | === modified file 'src/functions/pregenerated/func_context.cpp' | |||
4195 | --- src/functions/pregenerated/func_context.cpp 2012-03-28 05:19:57 +0000 | |||
4196 | +++ src/functions/pregenerated/func_context.cpp 2012-04-13 09:38:53 +0000 | |||
4197 | @@ -1,209 +1,209 @@ | |||
4407 | 1 | /* | 1 | /* |
4408 | 2 | * Copyright 2006-2008 The FLWOR Foundation. | 2 | * Copyright 2006-2008 The FLWOR Foundation. |
4409 | 3 | * | 3 | * |
4410 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
4411 | 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
4412 | 6 | * You may obtain a copy of the License at | 6 | * You may obtain a copy of the License at |
4413 | 7 | * | 7 | * |
4414 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
4415 | 9 | * | 9 | * |
4416 | 10 | * Unless required by applicable law or agreed to in writing, software | 10 | * Unless required by applicable law or agreed to in writing, software |
4417 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
4418 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
4419 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
4420 | 14 | * limitations under the License. | 14 | * limitations under the License. |
4421 | 15 | */ | 15 | */ |
4422 | 16 | 16 | ||
4423 | 17 | // ****************************************** | 17 | // ****************************************** |
4424 | 18 | // * * | 18 | // * * |
4425 | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * |
4426 | 20 | // * SEE .xml FILE WITH SAME NAME * | 20 | // * SEE .xml FILE WITH SAME NAME * |
4427 | 21 | // * * | 21 | // * * |
4428 | 22 | // ****************************************** | 22 | // ****************************************** |
4429 | 23 | 23 | ||
4430 | 24 | 24 | ||
4431 | 25 | #include "stdafx.h" | 25 | #include "stdafx.h" |
4432 | 26 | #include "runtime/context/context.h" | 26 | #include "runtime/context/context.h" |
4433 | 27 | #include "functions/func_context.h" | 27 | #include "functions/func_context.h" |
4434 | 28 | 28 | ||
4435 | 29 | 29 | ||
4436 | 30 | namespace zorba{ | 30 | namespace zorba{ |
4437 | 31 | 31 | ||
4438 | 32 | 32 | ||
4439 | 33 | 33 | ||
4440 | 34 | PlanIter_t fn_current_dateTime::codegen( | 34 | PlanIter_t fn_current_dateTime::codegen( |
4441 | 35 | CompilerCB*, | 35 | CompilerCB*, |
4442 | 36 | static_context* sctx, | 36 | static_context* sctx, |
4443 | 37 | const QueryLoc& loc, | 37 | const QueryLoc& loc, |
4444 | 38 | std::vector<PlanIter_t>& argv, | 38 | std::vector<PlanIter_t>& argv, |
4445 | 39 | expr& ann) const | 39 | expr& ann) const |
4446 | 40 | { | 40 | { |
4447 | 41 | return new CurrentDateTimeIterator(sctx, loc, argv); | 41 | return new CurrentDateTimeIterator(sctx, loc, argv); |
4448 | 42 | } | 42 | } |
4449 | 43 | 43 | ||
4450 | 44 | PlanIter_t fn_current_date::codegen( | 44 | PlanIter_t fn_current_date::codegen( |
4451 | 45 | CompilerCB*, | 45 | CompilerCB*, |
4452 | 46 | static_context* sctx, | 46 | static_context* sctx, |
4453 | 47 | const QueryLoc& loc, | 47 | const QueryLoc& loc, |
4454 | 48 | std::vector<PlanIter_t>& argv, | 48 | std::vector<PlanIter_t>& argv, |
4455 | 49 | expr& ann) const | 49 | expr& ann) const |
4456 | 50 | { | 50 | { |
4457 | 51 | return new CurrentDateIterator(sctx, loc, argv); | 51 | return new CurrentDateIterator(sctx, loc, argv); |
4458 | 52 | } | 52 | } |
4459 | 53 | 53 | ||
4460 | 54 | PlanIter_t fn_current_time::codegen( | 54 | PlanIter_t fn_current_time::codegen( |
4461 | 55 | CompilerCB*, | 55 | CompilerCB*, |
4462 | 56 | static_context* sctx, | 56 | static_context* sctx, |
4463 | 57 | const QueryLoc& loc, | 57 | const QueryLoc& loc, |
4464 | 58 | std::vector<PlanIter_t>& argv, | 58 | std::vector<PlanIter_t>& argv, |
4465 | 59 | expr& ann) const | 59 | expr& ann) const |
4466 | 60 | { | 60 | { |
4467 | 61 | return new CurrentTimeIterator(sctx, loc, argv); | 61 | return new CurrentTimeIterator(sctx, loc, argv); |
4468 | 62 | } | 62 | } |
4469 | 63 | 63 | ||
4470 | 64 | PlanIter_t fn_implicit_timezone::codegen( | 64 | PlanIter_t fn_implicit_timezone::codegen( |
4471 | 65 | CompilerCB*, | 65 | CompilerCB*, |
4472 | 66 | static_context* sctx, | 66 | static_context* sctx, |
4473 | 67 | const QueryLoc& loc, | 67 | const QueryLoc& loc, |
4474 | 68 | std::vector<PlanIter_t>& argv, | 68 | std::vector<PlanIter_t>& argv, |
4475 | 69 | expr& ann) const | 69 | expr& ann) const |
4476 | 70 | { | 70 | { |
4477 | 71 | return new ImplicitTimezoneIterator(sctx, loc, argv); | 71 | return new ImplicitTimezoneIterator(sctx, loc, argv); |
4478 | 72 | } | 72 | } |
4479 | 73 | 73 | ||
4480 | 74 | PlanIter_t fn_default_collation::codegen( | 74 | PlanIter_t fn_default_collation::codegen( |
4481 | 75 | CompilerCB*, | 75 | CompilerCB*, |
4482 | 76 | static_context* sctx, | 76 | static_context* sctx, |
4483 | 77 | const QueryLoc& loc, | 77 | const QueryLoc& loc, |
4484 | 78 | std::vector<PlanIter_t>& argv, | 78 | std::vector<PlanIter_t>& argv, |
4485 | 79 | expr& ann) const | 79 | expr& ann) const |
4486 | 80 | { | 80 | { |
4487 | 81 | return new DefaultCollationIterator(sctx, loc, argv); | 81 | return new DefaultCollationIterator(sctx, loc, argv); |
4488 | 82 | } | 82 | } |
4489 | 83 | 83 | ||
4490 | 84 | PlanIter_t fn_position::codegen( | 84 | PlanIter_t fn_position::codegen( |
4491 | 85 | CompilerCB*, | 85 | CompilerCB*, |
4492 | 86 | static_context* sctx, | 86 | static_context* sctx, |
4493 | 87 | const QueryLoc& loc, | 87 | const QueryLoc& loc, |
4494 | 88 | std::vector<PlanIter_t>& argv, | 88 | std::vector<PlanIter_t>& argv, |
4495 | 89 | expr& ann) const | 89 | expr& ann) const |
4496 | 90 | { | 90 | { |
4497 | 91 | return NULL; | 91 | return NULL; |
4498 | 92 | } | 92 | } |
4499 | 93 | 93 | ||
4500 | 94 | PlanIter_t fn_last::codegen( | 94 | PlanIter_t fn_last::codegen( |
4501 | 95 | CompilerCB*, | 95 | CompilerCB*, |
4502 | 96 | static_context* sctx, | 96 | static_context* sctx, |
4503 | 97 | const QueryLoc& loc, | 97 | const QueryLoc& loc, |
4504 | 98 | std::vector<PlanIter_t>& argv, | 98 | std::vector<PlanIter_t>& argv, |
4505 | 99 | expr& ann) const | 99 | expr& ann) const |
4506 | 100 | { | 100 | { |
4507 | 101 | return NULL; | 101 | return NULL; |
4508 | 102 | } | 102 | } |
4509 | 103 | 103 | ||
4510 | 104 | PlanIter_t fn_static_base_uri::codegen( | 104 | PlanIter_t fn_static_base_uri::codegen( |
4511 | 105 | CompilerCB*, | 105 | CompilerCB*, |
4512 | 106 | static_context* sctx, | 106 | static_context* sctx, |
4513 | 107 | const QueryLoc& loc, | 107 | const QueryLoc& loc, |
4514 | 108 | std::vector<PlanIter_t>& argv, | 108 | std::vector<PlanIter_t>& argv, |
4515 | 109 | expr& ann) const | 109 | expr& ann) const |
4516 | 110 | { | 110 | { |
4517 | 111 | return NULL; | 111 | return NULL; |
4518 | 112 | } | 112 | } |
4519 | 113 | 113 | ||
4520 | 114 | void populate_context_context(static_context* sctx) | 114 | void populate_context_context(static_context* sctx) |
4521 | 115 | { | 115 | { |
4522 | 116 | { | 116 | { |
4523 | 117 | 117 | ||
4524 | 118 | 118 | ||
4525 | 119 | DECL_WITH_KIND(sctx, fn_current_dateTime, | 119 | DECL_WITH_KIND(sctx, fn_current_dateTime, |
4526 | 120 | (createQName("http://www.w3.org/2005/xpath-functions","","current-dateTime"), | 120 | (createQName("http://www.w3.org/2005/xpath-functions","","current-dateTime"), |
4527 | 121 | GENV_TYPESYSTEM.DATETIME_TYPE_ONE), | 121 | GENV_TYPESYSTEM.DATETIME_TYPE_ONE), |
4528 | 122 | FunctionConsts::FN_CURRENT_DATETIME_0); | 122 | FunctionConsts::FN_CURRENT_DATETIME_0); |
4529 | 123 | 123 | ||
4530 | 124 | } | 124 | } |
4531 | 125 | 125 | ||
4532 | 126 | 126 | ||
4533 | 127 | { | 127 | { |
4534 | 128 | 128 | ||
4535 | 129 | 129 | ||
4536 | 130 | DECL_WITH_KIND(sctx, fn_current_date, | 130 | DECL_WITH_KIND(sctx, fn_current_date, |
4537 | 131 | (createQName("http://www.w3.org/2005/xpath-functions","","current-date"), | 131 | (createQName("http://www.w3.org/2005/xpath-functions","","current-date"), |
4538 | 132 | GENV_TYPESYSTEM.DATE_TYPE_ONE), | 132 | GENV_TYPESYSTEM.DATE_TYPE_ONE), |
4539 | 133 | FunctionConsts::FN_CURRENT_DATE_0); | 133 | FunctionConsts::FN_CURRENT_DATE_0); |
4540 | 134 | 134 | ||
4541 | 135 | } | 135 | } |
4542 | 136 | 136 | ||
4543 | 137 | 137 | ||
4544 | 138 | { | 138 | { |
4545 | 139 | 139 | ||
4546 | 140 | 140 | ||
4547 | 141 | DECL_WITH_KIND(sctx, fn_current_time, | 141 | DECL_WITH_KIND(sctx, fn_current_time, |
4548 | 142 | (createQName("http://www.w3.org/2005/xpath-functions","","current-time"), | 142 | (createQName("http://www.w3.org/2005/xpath-functions","","current-time"), |
4549 | 143 | GENV_TYPESYSTEM.TIME_TYPE_ONE), | 143 | GENV_TYPESYSTEM.TIME_TYPE_ONE), |
4550 | 144 | FunctionConsts::FN_CURRENT_TIME_0); | 144 | FunctionConsts::FN_CURRENT_TIME_0); |
4551 | 145 | 145 | ||
4552 | 146 | } | 146 | } |
4553 | 147 | 147 | ||
4554 | 148 | 148 | ||
4555 | 149 | { | 149 | { |
4556 | 150 | 150 | ||
4557 | 151 | 151 | ||
4558 | 152 | DECL_WITH_KIND(sctx, fn_implicit_timezone, | 152 | DECL_WITH_KIND(sctx, fn_implicit_timezone, |
4559 | 153 | (createQName("http://www.w3.org/2005/xpath-functions","","implicit-timezone"), | 153 | (createQName("http://www.w3.org/2005/xpath-functions","","implicit-timezone"), |
4560 | 154 | GENV_TYPESYSTEM.DT_DURATION_TYPE_ONE), | 154 | GENV_TYPESYSTEM.DT_DURATION_TYPE_ONE), |
4561 | 155 | FunctionConsts::FN_IMPLICIT_TIMEZONE_0); | 155 | FunctionConsts::FN_IMPLICIT_TIMEZONE_0); |
4562 | 156 | 156 | ||
4563 | 157 | } | 157 | } |
4564 | 158 | 158 | ||
4565 | 159 | 159 | ||
4566 | 160 | { | 160 | { |
4567 | 161 | 161 | ||
4568 | 162 | 162 | ||
4569 | 163 | DECL_WITH_KIND(sctx, fn_default_collation, | 163 | DECL_WITH_KIND(sctx, fn_default_collation, |
4570 | 164 | (createQName("http://www.w3.org/2005/xpath-functions","","default-collation"), | 164 | (createQName("http://www.w3.org/2005/xpath-functions","","default-collation"), |
4571 | 165 | GENV_TYPESYSTEM.STRING_TYPE_ONE), | 165 | GENV_TYPESYSTEM.STRING_TYPE_ONE), |
4572 | 166 | FunctionConsts::FN_DEFAULT_COLLATION_0); | 166 | FunctionConsts::FN_DEFAULT_COLLATION_0); |
4573 | 167 | 167 | ||
4574 | 168 | } | 168 | } |
4575 | 169 | 169 | ||
4576 | 170 | 170 | ||
4577 | 171 | { | 171 | { |
4578 | 172 | 172 | ||
4579 | 173 | 173 | ||
4580 | 174 | DECL_WITH_KIND(sctx, fn_position, | 174 | DECL_WITH_KIND(sctx, fn_position, |
4581 | 175 | (createQName("http://www.w3.org/2005/xpath-functions","","position"), | 175 | (createQName("http://www.w3.org/2005/xpath-functions","","position"), |
4582 | 176 | GENV_TYPESYSTEM.INTEGER_TYPE_ONE), | 176 | GENV_TYPESYSTEM.INTEGER_TYPE_ONE), |
4583 | 177 | FunctionConsts::FN_POSITION_0); | 177 | FunctionConsts::FN_POSITION_0); |
4584 | 178 | 178 | ||
4585 | 179 | } | 179 | } |
4586 | 180 | 180 | ||
4587 | 181 | 181 | ||
4588 | 182 | { | 182 | { |
4589 | 183 | 183 | ||
4590 | 184 | 184 | ||
4591 | 185 | DECL_WITH_KIND(sctx, fn_last, | 185 | DECL_WITH_KIND(sctx, fn_last, |
4592 | 186 | (createQName("http://www.w3.org/2005/xpath-functions","","last"), | 186 | (createQName("http://www.w3.org/2005/xpath-functions","","last"), |
4593 | 187 | GENV_TYPESYSTEM.INTEGER_TYPE_ONE), | 187 | GENV_TYPESYSTEM.INTEGER_TYPE_ONE), |
4594 | 188 | FunctionConsts::FN_LAST_0); | 188 | FunctionConsts::FN_LAST_0); |
4595 | 189 | 189 | ||
4596 | 190 | } | 190 | } |
4597 | 191 | 191 | ||
4598 | 192 | 192 | ||
4599 | 193 | { | 193 | { |
4600 | 194 | 194 | ||
4601 | 195 | 195 | ||
4602 | 196 | DECL_WITH_KIND(sctx, fn_static_base_uri, | 196 | DECL_WITH_KIND(sctx, fn_static_base_uri, |
4603 | 197 | (createQName("http://www.w3.org/2005/xpath-functions","","static-base-uri"), | 197 | (createQName("http://www.w3.org/2005/xpath-functions","","static-base-uri"), |
4604 | 198 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), | 198 | GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION), |
4605 | 199 | FunctionConsts::FN_STATIC_BASE_URI_0); | 199 | FunctionConsts::FN_STATIC_BASE_URI_0); |
4606 | 200 | 200 | ||
4607 | 201 | } | 201 | } |
4608 | 202 | 202 | ||
4609 | 203 | } | 203 | } |
4610 | 204 | 204 | ||
4611 | 205 | 205 | ||
4612 | 206 | } | 206 | } |
4613 | 207 | 207 | ||
4614 | 208 | 208 | ||
4615 | 209 | 209 | ||
4616 | 210 | 210 | ||
4617 | === modified file 'src/functions/pregenerated/func_context.h' | |||
4618 | --- src/functions/pregenerated/func_context.h 2012-03-28 05:19:57 +0000 | |||
4619 | +++ src/functions/pregenerated/func_context.h 2012-04-13 09:38:53 +0000 | |||
4620 | @@ -1,179 +1,179 @@ | |||
4800 | 1 | /* | 1 | /* |
4801 | 2 | * Copyright 2006-2008 The FLWOR Foundation. | 2 | * Copyright 2006-2008 The FLWOR Foundation. |
4802 | 3 | * | 3 | * |
4803 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
4804 | 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
4805 | 6 | * You may obtain a copy of the License at | 6 | * You may obtain a copy of the License at |
4806 | 7 | * | 7 | * |
4807 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
4808 | 9 | * | 9 | * |
4809 | 10 | * Unless required by applicable law or agreed to in writing, software | 10 | * Unless required by applicable law or agreed to in writing, software |
4810 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
4811 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
4812 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
4813 | 14 | * limitations under the License. | 14 | * limitations under the License. |
4814 | 15 | */ | 15 | */ |
4815 | 16 | 16 | ||
4816 | 17 | // ****************************************** | 17 | // ****************************************** |
4817 | 18 | // * * | 18 | // * * |
4818 | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * | 19 | // * THIS IS A GENERATED FILE. DO NOT EDIT! * |
4819 | 20 | // * SEE .xml FILE WITH SAME NAME * | 20 | // * SEE .xml FILE WITH SAME NAME * |
4820 | 21 | // * * | 21 | // * * |
4821 | 22 | // ****************************************** | 22 | // ****************************************** |
4822 | 23 | 23 | ||
4823 | 24 | 24 | ||
4824 | 25 | #ifndef ZORBA_FUNCTIONS_CONTEXT_H | 25 | #ifndef ZORBA_FUNCTIONS_CONTEXT_H |
4825 | 26 | #define ZORBA_FUNCTIONS_CONTEXT_H | 26 | #define ZORBA_FUNCTIONS_CONTEXT_H |
4826 | 27 | 27 | ||
4827 | 28 | 28 | ||
4828 | 29 | #include "common/shared_types.h" | 29 | #include "common/shared_types.h" |
4829 | 30 | #include "functions/function_impl.h" | 30 | #include "functions/function_impl.h" |
4830 | 31 | 31 | ||
4831 | 32 | 32 | ||
4832 | 33 | namespace zorba { | 33 | namespace zorba { |
4833 | 34 | 34 | ||
4834 | 35 | 35 | ||
4835 | 36 | void populate_context_context(static_context* sctx); | 36 | void populate_context_context(static_context* sctx); |
4836 | 37 | 37 | ||
4837 | 38 | 38 | ||
4838 | 39 | 39 | ||
4839 | 40 | 40 | ||
4840 | 41 | //fn:current-dateTime | 41 | //fn:current-dateTime |
4841 | 42 | class fn_current_dateTime : public function | 42 | class fn_current_dateTime : public function |
4842 | 43 | { | 43 | { |
4843 | 44 | public: | 44 | public: |
4844 | 45 | fn_current_dateTime(const signature& sig, FunctionConsts::FunctionKind kind) | 45 | fn_current_dateTime(const signature& sig, FunctionConsts::FunctionKind kind) |
4845 | 46 | : | 46 | : |
4846 | 47 | function(sig, kind) | 47 | function(sig, kind) |
4847 | 48 | { | 48 | { |
4848 | 49 | 49 | ||
4849 | 50 | } | 50 | } |
4850 | 51 | 51 | ||
4851 | 52 | bool accessesDynCtx() const { return true; } | 52 | bool accessesDynCtx() const { return true; } |
4852 | 53 | 53 | ||
4853 | 54 | CODEGEN_DECL(); | 54 | CODEGEN_DECL(); |
4854 | 55 | }; | 55 | }; |
4855 | 56 | 56 | ||
4856 | 57 | 57 | ||
4857 | 58 | //fn:current-date | 58 | //fn:current-date |
4858 | 59 | class fn_current_date : public function | 59 | class fn_current_date : public function |
4859 | 60 | { | 60 | { |
4860 | 61 | public: | 61 | public: |
4861 | 62 | fn_current_date(const signature& sig, FunctionConsts::FunctionKind kind) | 62 | fn_current_date(const signature& sig, FunctionConsts::FunctionKind kind) |
4862 | 63 | : | 63 | : |
4863 | 64 | function(sig, kind) | 64 | function(sig, kind) |
4864 | 65 | { | 65 | { |
4865 | 66 | 66 | ||
4866 | 67 | } | 67 | } |
4867 | 68 | 68 | ||
4868 | 69 | bool accessesDynCtx() const { return true; } | 69 | bool accessesDynCtx() const { return true; } |
4869 | 70 | 70 | ||
4870 | 71 | CODEGEN_DECL(); | 71 | CODEGEN_DECL(); |
4871 | 72 | }; | 72 | }; |
4872 | 73 | 73 | ||
4873 | 74 | 74 | ||
4874 | 75 | //fn:current-time | 75 | //fn:current-time |
4875 | 76 | class fn_current_time : public function | 76 | class fn_current_time : public function |
4876 | 77 | { | 77 | { |
4877 | 78 | public: | 78 | public: |
4878 | 79 | fn_current_time(const signature& sig, FunctionConsts::FunctionKind kind) | 79 | fn_current_time(const signature& sig, FunctionConsts::FunctionKind kind) |
4879 | 80 | : | 80 | : |
4880 | 81 | function(sig, kind) | 81 | function(sig, kind) |
4881 | 82 | { | 82 | { |
4882 | 83 | 83 | ||
4883 | 84 | } | 84 | } |
4884 | 85 | 85 | ||
4885 | 86 | bool accessesDynCtx() const { return true; } | 86 | bool accessesDynCtx() const { return true; } |
4886 | 87 | 87 | ||
4887 | 88 | CODEGEN_DECL(); | 88 | CODEGEN_DECL(); |
4888 | 89 | }; | 89 | }; |
4889 | 90 | 90 | ||
4890 | 91 | 91 | ||
4891 | 92 | //fn:implicit-timezone | 92 | //fn:implicit-timezone |
4892 | 93 | class fn_implicit_timezone : public function | 93 | class fn_implicit_timezone : public function |
4893 | 94 | { | 94 | { |
4894 | 95 | public: | 95 | public: |
4895 | 96 | fn_implicit_timezone(const signature& sig, FunctionConsts::FunctionKind kind) | 96 | fn_implicit_timezone(const signature& sig, FunctionConsts::FunctionKind kind) |
4896 | 97 | : | 97 | : |
4897 | 98 | function(sig, kind) | 98 | function(sig, kind) |
4898 | 99 | { | 99 | { |
4899 | 100 | 100 | ||
4900 | 101 | } | 101 | } |
4901 | 102 | 102 | ||
4902 | 103 | bool accessesDynCtx() const { return true; } | 103 | bool accessesDynCtx() const { return true; } |
4903 | 104 | 104 | ||
4904 | 105 | CODEGEN_DECL(); | 105 | CODEGEN_DECL(); |
4905 | 106 | }; | 106 | }; |
4906 | 107 | 107 | ||
4907 | 108 | 108 | ||
4908 | 109 | //fn:default-collation | 109 | //fn:default-collation |
4909 | 110 | class fn_default_collation : public function | 110 | class fn_default_collation : public function |
4910 | 111 | { | 111 | { |
4911 | 112 | public: | 112 | public: |
4912 | 113 | fn_default_collation(const signature& sig, FunctionConsts::FunctionKind kind) | 113 | fn_default_collation(const signature& sig, FunctionConsts::FunctionKind kind) |
4913 | 114 | : | 114 | : |
4914 | 115 | function(sig, kind) | 115 | function(sig, kind) |
4915 | 116 | { | 116 | { |
4916 | 117 | 117 | ||
4917 | 118 | } | 118 | } |
4918 | 119 | 119 | ||
4919 | 120 | bool accessesDynCtx() const { return true; } | 120 | bool accessesDynCtx() const { return true; } |
4920 | 121 | 121 | ||
4921 | 122 | CODEGEN_DECL(); | 122 | CODEGEN_DECL(); |
4922 | 123 | }; | 123 | }; |
4923 | 124 | 124 | ||
4924 | 125 | 125 | ||
4925 | 126 | //fn:position | 126 | //fn:position |
4926 | 127 | class fn_position : public function | 127 | class fn_position : public function |
4927 | 128 | { | 128 | { |
4928 | 129 | public: | 129 | public: |
4929 | 130 | fn_position(const signature& sig, FunctionConsts::FunctionKind kind) | 130 | fn_position(const signature& sig, FunctionConsts::FunctionKind kind) |
4930 | 131 | : | 131 | : |
4931 | 132 | function(sig, kind) | 132 | function(sig, kind) |
4932 | 133 | { | 133 | { |
4933 | 134 | 134 | ||
4934 | 135 | } | 135 | } |
4935 | 136 | 136 | ||
4936 | 137 | CODEGEN_DECL(); | 137 | CODEGEN_DECL(); |
4937 | 138 | }; | 138 | }; |
4938 | 139 | 139 | ||
4939 | 140 | 140 | ||
4940 | 141 | //fn:last | 141 | //fn:last |
4941 | 142 | class fn_last : public function | 142 | class fn_last : public function |
4942 | 143 | { | 143 | { |
4943 | 144 | public: | 144 | public: |
4944 | 145 | fn_last(const signature& sig, FunctionConsts::FunctionKind kind) | 145 | fn_last(const signature& sig, FunctionConsts::FunctionKind kind) |
4945 | 146 | : | 146 | : |
4946 | 147 | function(sig, kind) | 147 | function(sig, kind) |
4947 | 148 | { | 148 | { |
4948 | 149 | 149 | ||
4949 | 150 | } | 150 | } |
4950 | 151 | 151 | ||
4951 | 152 | CODEGEN_DECL(); | 152 | CODEGEN_DECL(); |
4952 | 153 | }; | 153 | }; |
4953 | 154 | 154 | ||
4954 | 155 | 155 | ||
4955 | 156 | //fn:static-base-uri | 156 | //fn:static-base-uri |
4956 | 157 | class fn_static_base_uri : public function | 157 | class fn_static_base_uri : public function |
4957 | 158 | { | 158 | { |
4958 | 159 | public: | 159 | public: |
4959 | 160 | fn_static_base_uri(const signature& sig, FunctionConsts::FunctionKind kind) | 160 | fn_static_base_uri(const signature& sig, FunctionConsts::FunctionKind kind) |
4960 | 161 | : | 161 | : |
4961 | 162 | function(sig, kind) | 162 | function(sig, kind) |
4962 | 163 | { | 163 | { |
4963 | 164 | 164 | ||
4964 | 165 | } | 165 | } |
4965 | 166 | 166 | ||
4966 | 167 | CODEGEN_DECL(); | 167 | CODEGEN_DECL(); |
4967 | 168 | }; | 168 | }; |
4968 | 169 | 169 | ||
4969 | 170 | 170 | ||
4970 | 171 | } //namespace zorba | 171 | } //namespace zorba |
4971 | 172 | 172 | ||
4972 | 173 | 173 | ||
4973 | 174 | #endif | 174 | #endif |
4974 | 175 | /* | 175 | /* |
4975 | 176 | * Local variables: | 176 | * Local variables: |
4976 | 177 | * mode: c++ | 177 | * mode: c++ |
4977 | 178 | * End: | 178 | * End: |
4978 | 179 | */ | 179 | */ |
4979 | 180 | 180 | ||
4980 | === modified file 'src/functions/pregenerated/func_debug_iterator.cpp' | |||
4981 | --- src/functions/pregenerated/func_debug_iterator.cpp 2012-03-28 05:19:57 +0000 | |||
4982 | +++ src/functions/pregenerated/func_debug_iterator.cpp 2012-04-13 09:38:53 +0000 | |||
4983 | @@ -1,41 +1,41 @@ | |||
4984 | 1 | /* | ||
4985 | 2 | * Copyright 2006-2008 The FLWOR Foundation. | ||
4986 | 3 | * | ||
4987 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
4988 | 5 | * you may not use this file except in compliance with the License. | ||
4989 | 6 | * You may obtain a copy of the License at | ||
4990 | 7 | * | ||
4991 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
4992 | 9 | * | ||
4993 | 10 | * Unless required by applicable law or agreed to in writing, software | ||
4994 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
4995 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
4996 | 13 | * See the License for the specific language governing permissions and | ||
4997 | 14 | * limitations under the License. | ||
4998 | 15 | */ | ||
4999 | 16 | |||
5000 | 17 | // ****************************************** |
Why did you delete NOTICE.txt?