Merge lp:~zorba-coders/zorba/fn_envvars into lp:zorba

Proposed by Matthias Brantner
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
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-environment-variables Implementation
Bug #930158: fn:environment-variables Implementation
Bug #930160: fn:uri-collection Implementation
Bug #930161: fn:unparsed-text Implementation
Bug #930162: fn:unparsed-text-available Implementation

Description of the change

Bug #930157: fn:available-environment-variables Implementation
Bug #930158: fn:environment-variables Implementation
Bug #930160: fn:uri-collection Implementation
Bug #930161: fn:unparsed-text Implementation
Bug #930162: fn:unparsed-text-available Implementation

To post a comment you must log in.
Revision history for this message
Chris Hillery (ceejatec) wrote : Posted in a previous version of this proposal

Why did you delete NOTICE.txt?

Revision history for this message
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

Revision history for this message
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.

review: Needs Information
Revision history for this message
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-text-available(), environment-variable(), available-environments-variables()
and in collections_impl.cpp there is uri-collection()

Revision history for this message
Matthias Brantner (matthias-brantner) wrote : Posted in a previous version of this proposal

- dynamic_context::get_environment_variable(const zstring varname)

should be

dynamic_context::get_environment_variable(const zstring& varname)

- 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(result!=NULL, state);

- In FnEnvironmentVariableIterator::nextImpl, the check if(consumeNext(item, theChildren[0].getp(),planState)) is not necessary. consumeNext always returns true because the functions is defined to accept xs:string (not xs:string?)

- 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 FnAvailableEnvironmentVariablesIterator::nextImpl, the line a = result->getStringValue().c_str(); and the variable a don't seem to be necessary

- The environment-related functions should be specified using

<zorba:methods>
  <zorba:accessesDynCtx returnValue="true"/>
</zorba:methods>

- All the lines after 14.8.5 fn:unparsed-text have windows line endings

- you can check using transcode::is_necessary if a encoding is supported

- 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:accessesDynCtx returnValue="true"/>
  <zorba:isSource returnValue="true"/>
</zorba:methods>

- What's the default encoding for unparsed-text?

review: Needs Fixing
Revision history for this message
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::is_necessary if a encoding is supported
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-text-available being initialized with UTF-8 as a default, should I change the default definition to be inside readDocument function so that you don't have to defined in each function?

Revision history for this message
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::is_necessary if a encoding is supported
> If I am not wrong I am using it that way.
My bad, I meant transcode::is_supported should be used.

> > > - What's the default encoding for unparsed-text?
> UTF-8
OK, got it. It's fine as it is.

Revision history for this message
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?

Revision history for this message
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.

Revision history for this message
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

Revision history for this message
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-fragment#1 unparsed-text-lines#1 unparsed-text-lines#2 has-children#0 nilled#0 path#0 path#1

- 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.

Revision history for this message
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.

Revision history for this message
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 FnUnparsedTextLinesIterator::nextImpl function (14.8.6 fn:unparsed-text-lines)
- 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.

review: Needs Fixing
Revision history for this message
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?

Revision history for this message
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.

Revision history for this message
Juan Zacarias (juan457) wrote : Posted in a previous version of this proposal

Errors are Fixed

Revision history for this message
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(*state->theStream, streamLine))
  {
    do
    {
      STACK_PUSH(GENV_ITEMFACTORY->createString(result, streamLine), state);
    }
    while (getline(*state->theStream, streamLine));
  }
  else
    STACK_PUSH(false, state);

=>
    while (getline(*state->theStream, streamLine))
    {
      STACK_PUSH(GENV_ITEMFACTORY->createString(result, streamLine), state);
    }

review: Needs Fixing
Revision history for this message
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 FnUnparsedTextLinesIterator::nextImpl(), change lResource.get() to lResource.release(). By doing this, you take ownership of the StreamResource (so that the auto_ptr<> won't delete it).

 - Later in the same function, don't call state->theStreamResource->setStreamReleaser(nullptr);.

 - In FnUnparsedTextLinesIteratorState::reset(), just delete theStreamResource, and then set theStream and theStreamResource to 0. Deleting the StreamResource will correctly clean up the stream by calling the StreamReleaser.

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.)

Revision history for this message
Juan Zacarias (juan457) wrote : Posted in a previous version of this proposal

all changes done

lp:~zorba-coders/zorba/fn_envvars updated
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

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
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 version 2.5
6
7 New Features:
8+ * fn:available-environment-variables
9+ * fn:environment-variables
10+ * fn:uri-collection
11+ * fn:unparsed-text
12+ * fn:unparsed-text-available
13 * Extended API for Python, Java, PHP and Ruby.
14
15 Optimization:
16
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+-----------
22+Zorba 2.2.0
23+-----------
24+
25+(Note: This file is generated automatically from NOTICE.xml.
26+Please do not modify this file directly.)
27+
28+
29+
30+
31+Apache 2
32+
33+ Copyright 2006-2011 The FLWOR Foundation
34+
35+ See LICENSE.txt for license information.
36+
37+ ------------------------
38+ This product includes software developed at
39+ The FLWOR Foundation (http://www.flworfound.org/).
40+
41+ ------------------------
42+ Portions of this software were developed at the Systems
43+ Group of the ETH Zurich, Switzerland.
44+
45+
46+Other files used by this project:
47+----------------------------------------------------
48+
49+src/zorbatypes/m_apm.h
50+src/zorbatypes/mapm/
51+
52+Copyright: 1999-2007 Michael C. Ring
53+Website: http://www.tc.umn.edu/~ringx004/mapm-main.html
54+
55+ This software is Freeware.
56+
57+ Permission to use, copy, and distribute this software and its
58+ documentation for any purpose with or without fee is hereby granted,
59+ provided that the above copyright notice appear in all copies and
60+ that both that copyright notice and this permission notice appear
61+ in supporting documentation.
62+
63+ Permission to modify the software is granted. Permission to distribute
64+ the modified code is granted. Modifications are to be distributed by
65+ using the file 'license.txt' as a template to modify the file header.
66+ 'license.txt' is available in the official MAPM distribution.
67+
68+ To distribute modified source code, insert the file 'license.txt'
69+ at the top of all modified source code files and edit accordingly.
70+
71+ This software is provided "as is" without express or implied warranty.
72+
73+----------------------------------------------------
74+
75+src/zorbamisc/config/stdint.h
76+
77+Copyright: 2006 Alexander Chemeris
78+
79+
80+ Redistribution and use in source and binary forms, with or without
81+ modification, are permitted provided that the following conditions are met:
82+
83+ 1. Redistributions of source code must retain the above copyright notice,
84+ this list of conditions and the following disclaimer.
85+
86+ 2. Redistributions in binary form must reproduce the above copyright
87+ notice, this list of conditions and the following disclaimer in the
88+ documentation and/or other materials provided with the distribution.
89+
90+ 3. The name of the author may be used to endorse or promote products
91+ derived from this software without specific prior written permission.
92+
93+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
94+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
95+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
96+ EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
97+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
98+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
99+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
100+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
101+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
102+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
103+
104+----------------------------------------------------
105+
106+src/zorbautils/stemmer/
107+
108+Copyright: 2001 Dr. Martin Porter
109+
110+
111+ All the software given out on this Snowball site is covered by the BSD
112+ License (see http://www.opensource.org/licenses/bsd-license.html), with
113+ Copyright (c) 2001, Dr Martin Porter, and (for the Java developments)
114+ Copyright (c) 2002, Richard Boulton.
115+
116+ Essentially, all this means is that you can do what you like with the code,
117+ except claim another Copyright for it, or claim that it is issued under a
118+ different license. The software is also issued without warranties, which
119+ means that if anyone suffers through its use, they cannot come back and sue
120+ you. You also have to alert anyone to whom you give the Snowball software to
121+ the fact that it is covered by the BSD license.
122+
123+ We have not bothered to insert the licensing arrangement into the text of
124+ the Snowball software.
125+
126+----------------------------------------------------
127+
128+src/util/less.h
129+
130+Copyright: 1998 Paul J. Lucas
131+
132+
133+ Redistribution and use in source and binary forms, with or without
134+ modification, are permitted provided that the following conditions are met:
135+
136+ o Redistributions of source code must retain the above copyright notice,
137+ this list of conditions and the following disclaimer.
138+
139+ o Redistributions in binary form must reproduce the above copyright
140+ notice, this list of conditions and the following disclaimer in the
141+ documentation and/or other materials provided with the distribution.
142+
143+ o The name of the author may not be used to endorse or promote products
144+ derived from this software without specific prior written permission.
145+
146+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
147+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
148+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
149+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
150+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
151+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
152+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
153+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
154+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
155+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
156+ POSSIBILITY OF SUCH DAMAGE.
157+
158+----------------------------------------------------
159+
160+src/util/auto_vector.h (has been modified)
161+
162+Copyright: 2003 Reliable Software
163+
164+
165+ Redistribution and use in source and binary forms, with or without
166+ modification, are permitted provided that the following conditions are met:
167+
168+ o Redistributions of source code must retain the above copyright notice,
169+ this list of conditions and the following disclaimer.
170+
171+ o Redistributions in binary form must reproduce the above copyright
172+ notice, this list of conditions and the following disclaimer in the
173+ documentation and/or other materials provided with the distribution.
174+
175+ o The name of the author may not be used to endorse or promote products
176+ derived from this software without specific prior written permission.
177+
178+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
179+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
180+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
181+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
182+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
183+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
184+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
185+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
186+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
187+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
188+ POSSIBILITY OF SUCH DAMAGE.
189+
190+----------------------------------------------------
191+
192+cmake_modules/FindBoost.cmake
193+
194+Copyright:
195+ 2006-2008 Andreas Schneider <mail@cynapses.org>
196+ 2007 Wengo
197+ 2007 Mike Jackson
198+ 2008 Andreas Pakulat <apaku@gmx.de>
199+
200+
201+
202+ Redistribution AND use is allowed according to the terms of the New BSD license.
203+ For details see the accompanying COPYING-CMAKE-SCRIPTS file.
204+
205+----------------------------------------------------
206+
207+cmake_modules/FindJNI.cmake
208+cmake_modules/FindPythonLibs.cmake
209+cmake_modules/FindSWIG.cmake
210+
211+Copyright: 2001-2009 Kitware, Inc.
212+
213+
214+ Distributed under the OSI-approved BSD License (the "License");
215+ see accompanying file Copyright.txt for details.
216+
217+ This software is distributed WITHOUT ANY WARRANTY; without even the
218+ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
219+ See the License for more information.
220+
221+ CMake - Cross Platform Makefile Generator
222+ Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
223+ All rights reserved.
224+
225+ Redistribution and use in source and binary forms, with or without
226+ modification, are permitted provided that the following conditions
227+ are met:
228+
229+ * Redistributions of source code must retain the above copyright
230+ notice, this list of conditions and the following disclaimer.
231+
232+ * Redistributions in binary form must reproduce the above copyright
233+ notice, this list of conditions and the following disclaimer in the
234+ documentation and/or other materials provided with the distribution.
235+
236+ * Neither the names of Kitware, Inc., the Insight Software Consortium,
237+ nor the names of their contributors may be used to endorse or promote
238+ products derived from this software without specific prior written
239+ permission.
240+
241+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
242+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
243+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
244+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
245+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
246+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
247+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
248+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
249+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
250+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
251+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
252+
253+ ------------------------------------------------------------------------------
254+
255+ The above copyright and license notice applies to distributions of
256+ CMake in source and binary form. Some source files contain additional
257+ notices of original copyright by their contributors; see each source
258+ for details. Third-party software packages supplied with CMake under
259+ compatible licenses provide their own copyright notices documented in
260+ corresponding subdirectories.
261+
262+ ------------------------------------------------------------------------------
263+
264+ CMake was initially developed by Kitware with the following sponsorship:
265+
266+ * National Library of Medicine at the National Institutes of Health
267+ as part of the Insight Segmentation and Registration Toolkit (ITK).
268+
269+ * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
270+ Visualization Initiative.
271+
272+ * National Alliance for Medical Image Computing (NAMIC) is funded by the
273+ National Institutes of Health through the NIH Roadmap for Medical Research,
274+ Grant U54 EB005149.
275+
276+ * Kitware, Inc.
277+
278+----------------------------------------------------
279+
280+/xml.xsd
281+
282+Copyright: 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
283+
284+
285+ 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+
287+ W3C Software Notice and License
288+
289+ 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+
291+ License
292+
293+ 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+
295+ 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+ •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
297+ •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+ •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+
300+ Disclaimers
301+
302+ 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+
304+ 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+
306+ 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+
308+----------------------------------------------------
309+
310+schemas/xslt-xquery-serialization.xsd
311+
312+Copyright: 2010 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
313+
314+
315+ 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+
317+ W3C Software Notice and License
318+
319+ 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+
321+ License
322+
323+ 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+
325+ 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+ •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
327+ •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+ •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+
330+ Disclaimers
331+
332+ 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+
334+ 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+
336+ 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+
338+----------------------------------------------------
339+
340+modules/w3c/xpath-functions.xsd
341+
342+Copyright: 2005 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
343+
344+
345+ 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+
347+ W3C Software Notice and License
348+
349+ 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+
351+ License
352+
353+ 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+
355+ 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+ •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
357+ •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+ •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+
360+ Disclaimers
361+
362+ 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+
364+ 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+
366+ 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+
368+----------------------------------------------------
369+
370+include/xqc.h
371+
372+Copyright: 2008, Matthias Brantner, John Snelson
373+
374+
375+ * All rights reserved.
376+ *
377+ * Redistribution and use in source and binary forms, with or without
378+ * modification, are permitted provided that the following conditions are met:
379+ *
380+ * * Redistributions of source code must retain the above copyright notice,
381+ * this list of conditions and the following disclaimer.
382+ * * Redistributions in binary form must reproduce the above copyright
383+ * notice, this list of conditions and the following disclaimer in the
384+ * documentation and/or other materials provided with the distribution.
385+ * * Neither the name of the developers nor the names of contributors may be
386+ * used to endorse or promote products derived from this software without
387+ * specific prior written permission.
388+ *
389+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
390+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
391+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
392+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
393+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
394+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
395+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
396+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
397+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
398+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
399+ * POSSIBILITY OF SUCH DAMAGE.
400+
401+----------------------------------------------------
402+
403+modules/functx/functx.xq
404+
405+Copyright: 2007 Datypic
406+
407+
408+ : This library is free software; you can redistribute it and/or
409+ : modify it under the terms of the GNU Lesser General Public
410+ : License as published by the Free Software Foundation; either
411+ : version 2.1 of the License.
412+
413+ : This library is distributed in the hope that it will be useful,
414+ : but WITHOUT ANY WARRANTY; without even the implied warranty of
415+ : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
416+ : Lesser General Public License for more details.
417+
418+ : You should have received a copy of the GNU Lesser General Public
419+ : License along with this library; if not, write to the Free Software
420+ : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
421+
422+----------------------------------------------------
423+
424+src/compiler/parser/FlexLexer.h
425+
426+Copyright: 1993 The Regents of the University of California
427+
428+
429+ // All rights reserved.
430+ //
431+ // This code is derived from software contributed to Berkeley by
432+ // Kent Williams and Tom Epperly.
433+ //
434+ // Redistribution and use in source and binary forms, with or without
435+ // modification, are permitted provided that the following conditions
436+ // are met:
437+
438+ // 1. Redistributions of source code must retain the above copyright
439+ // notice, this list of conditions and the following disclaimer.
440+ // 2. Redistributions in binary form must reproduce the above copyright
441+ // notice, this list of conditions and the following disclaimer in the
442+ // documentation and/or other materials provided with the distribution.
443+
444+ // Neither the name of the University nor the names of its contributors
445+ // may be used to endorse or promote products derived from this software
446+ // without specific prior written permission.
447+
448+ // THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
449+ // IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
450+ // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
451+ // PURPOSE.
452+
453+----------------------------------------------------
454+
455+src/diagnostics/StackWalker.cpp
456+src/diagnostics/StackWalker.h
457+
458+Copyright: 2005 Jochen Kalmbach
459+
460+
461+ Under BSD License: http://www.opensource.org/licenses/bsd-license.php
462+
463+----------------------------------------------------
464+
465+src/util/singleton.h
466+src/util/threads.h
467+
468+Copyright: 2001 Andrei Alexandrescu
469+
470+
471+ This code accompanies the book:
472+ Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design
473+ Patterns Applied". Copyright (c) 2001. Addison-Wesley.
474+ Permission to use, copy, modify, distribute and sell this software for any
475+ purpose is hereby granted without fee, provided that the above copyright
476+ notice appear in all copies and that both that copyright notice and this
477+ permission notice appear in supporting documentation.
478+ The author or Addison-Wesley Longman make no representations about the
479+ suitability of this software for any purpose. It is provided "as is"
480+ without express or implied warranty.
481+
482+
483+External libraries used by this project:
484+----------------------------------------------------
485+
486+Name: LIBXML2
487+Preferred version: 2.2.16 or higher
488+Is mandatory: true
489+Website: http://xmlsoft.org/
490+License: MIT
491+Copyright: 1998-2002 Daniel Veillard. All Rights Reserved.
492+External notice:
493+
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:
495+
496+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
497+
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 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+
500+ Except as contained in this notice, the name of Daniel Veillard shall not
501+ be used in advertising or otherwise to promote the sale, use or other deal-
502+ ings in this Software without prior written authorization from him.
503+
504+----------------------------------------------------
505+
506+Name: LIBXSLT
507+Preferred version: 1.1.26
508+Is mandatory: false
509+Website: http://xmlsoft.org/XSLT/
510+License: MIT
511+Copyright: 2001-2002 Daniel Veillard. All Rights Reserved.
512+External notice:
513+
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, 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+
516+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
517+
518+ 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+
520+
521+ 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+
523+
524+----------------------------------------------------
525+
526+Name: ICU4C
527+Preferred version: 3.6 or higher
528+Is mandatory: true
529+Website: http://www.icu-project.org/
530+License: ICU License
531+Copyright: 1995-2011 International Business Machines Corporation and others
532+External notice:
533+
534+ 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+
536+ 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+
538+ 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+
540+----------------------------------------------------
541+
542+Name: CURL
543+Preferred version: above 7.12
544+Is mandatory: false
545+Website: http://curl.haxx.se/
546+License: MIT/X derivate license
547+Copyright: 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>.
548+External notice:
549+
550+ All rights reserved.
551+
552+ Permission to use, copy, modify, and distribute this software for any purpose
553+ with or without fee is hereby granted, provided that the above copyright
554+ notice and this permission notice appear in all copies.
555+
556+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
557+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
558+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
559+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
560+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
561+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
562+ OR OTHER DEALINGS IN THE SOFTWARE.
563+
564+ Except as contained in this notice, the name of a copyright holder shall not
565+ be used in advertising or otherwise to promote the sale, use or other dealings
566+ in this Software without prior written authorization of the copyright holder.
567+
568+----------------------------------------------------
569+
570+Name: ICONV
571+Preferred version: above 1.12
572+Is mandatory: true
573+Website: http://www.gnu.org/software/libiconv/
574+License: LGPL
575+Copyright: 1998, 2010 Free Software Foundation, Inc.
576+External notice:
577+
578+----------------------------------------------------
579+
580+Name: ZLIB
581+Preferred version: 1.2.5
582+Is mandatory: true
583+Website: http://www.zlib.net/
584+Copyright: 1995-2004 Jean-loup Gailly and Mark Adler
585+External notice:
586+
587+ This software is provided 'as-is', without any express or implied
588+ warranty. In no event will the authors be held liable for any damages
589+ arising from the use of this software.
590+
591+ Permission is granted to anyone to use this software for any purpose,
592+ including commercial applications, and to alter it and redistribute it
593+ freely, subject to the following restrictions:
594+
595+ 1. The origin of this software must not be misrepresented; you must not
596+ claim that you wrote the original software. If you use this software
597+ in a product, an acknowledgment in the product documentation would be
598+ appreciated but is not required.
599+ 2. Altered source versions must be plainly marked as such, and must not be
600+ misrepresented as being the original software.
601+ 3. This notice may not be removed or altered from any source distribution.
602+
603+ Jean-loup Gailly jloup@gzip.org
604+ Mark Adler madler@alumni.caltech.edu
605+
606+----------------------------------------------------
607+
608+Name: XERCES
609+Preferred version: 2.8.0 or higher
610+Is mandatory: true
611+Website: http://xerces.apache.org/xerces-c/
612+License: Apache 2
613+Copyright: Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.
614+External notice:
615+
616+ http://www.apache.org/licenses/LICENSE-2.0
617+
618+----------------------------------------------------
619+
620+Name: BOOST (boost_filesystem)
621+Preferred version: 1.32 or higher
622+Is mandatory: false
623+Website: http://www.boost.org/
624+License: Boost Software License v1.0
625+Copyright:
626+ Beman Dawes, David Abrahams, 1998-2005.
627+ Rene Rivera 2004-2007
628+
629+External notice:
630+
631+ Permission is hereby granted, free of charge, to any person or organization
632+ obtaining a copy of the software and accompanying documentation covered by
633+ this license (the "Software") to use, reproduce, display, distribute,
634+ execute, and transmit the Software, and to prepare derivative works of the
635+ Software, and to permit third-parties to whom the Software is furnished to
636+ do so, all subject to the following:
637+
638+ The copyright notices in the Software and this entire statement, including
639+ the above license grant, this restriction and the following disclaimer,
640+ must be included in all copies of the Software, in whole or in part, and
641+ all derivative works of the Software, unless such copies or derivative
642+ works are solely in the form of machine-executable object code generated by
643+ a source language processor.
644+
645+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
646+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
647+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
648+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
649+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
650+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
651+ DEALINGS IN THE SOFTWARE.
652+
653+
654+External applications used by this project:
655+----------------------------------------------------
656+
657+Name: FLEX
658+Preferred version: 2.5.33
659+Is mandatory: false
660+Website: http://flex.sourceforge.net/
661+Copyright:
662+ 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The Flex Project.
663+ 1990, 1997 The Regents of the University of California. All rights reserved.
664+
665+External notice:
666+
667+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
668+
669+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
670+ 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+
672+ 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+
674+ 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+
676+----------------------------------------------------
677+
678+Name: BISON
679+Preferred version: 2.4 or higher
680+Is mandatory: false
681+Website: http://www.gnu.org/software/bison/
682+License: GPL
683+Copyright: 1998, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
684+External notice:
685+
686+----------------------------------------------------
687+
688+Name: DOXYGEN
689+Preferred version: v1.7.4
690+Is mandatory: false
691+Website: www.doxygen.org
692+License: GPL
693+Copyright: 1997-2011 by Dimitri van Heesch
694+External notice:
695+
696+ 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+ No representations are made about the suitability of this software for any purpose.
698+ It is provided "as is" without express or implied warranty.
699+ See the GNU General Public License for more details.
700+
701+ Documents produced by doxygen are derivative works derived from the input used in their production; they are not affected by this license.
702+
703+----------------------------------------------------
704+
705+Name: CMAKE
706+Preferred version: 2.8.4
707+Is mandatory: true
708+Website: http://www.cmake.org/
709+License: Creative Commons Attribution-NoDerivs 3.0 Unported License
710+Copyright: 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.
711+External notice:
712+
713+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
714+
715+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
716+
717+ 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+
719+ 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+
721+ 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+
723+----------------------------------------------------
724+
725+Name: SWIG
726+Preferred version: 2.0.4 or above
727+Is mandatory: false
728+Website: http://www.swig.org/
729+License: GPL
730+Copyright:
731+ 1995-2011 The SWIG Developers
732+ 2005-2006 Arizona Board of Regents (University of Arizona).
733+ 1998-2005 University of Chicago.
734+ 1995-1998 The University of Utah and the Regents of the University of California
735+
736+External notice:
737+
738+ SWIG is free software: you can redistribute it and/or modify it
739+ under the terms of the GNU General Public License as published by
740+ the Free Software Foundation, either version 3 of the License, or
741+ (at your option) any later version. See the LICENSE-GPL file for
742+ the full terms of the GNU General Public license version 3.
743+
744+ Portions of SWIG are also licensed under the terms of the licenses
745+ in the file LICENSE-UNIVERSITIES. You must observe the terms of
746+ these licenses, as well as the terms of the GNU General Public License,
747+ when you distribute SWIG.
748+
749+ The SWIG library and examples, under the Lib and Examples top level
750+ directories, are distributed under the following terms:
751+
752+ You may copy, modify, distribute, and make derivative works based on
753+ this software, in source code or object code form, without
754+ restriction. If you distribute the software to others, you may do
755+ so according to the terms of your choice. This software is offered as
756+ is, without warranty of any kind.
757+
758+ See the COPYRIGHT file for a list of contributors to SWIG and their
759+ copyright notices.
760+
761\ No newline at end of file
762
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------------
768-Zorba 2.2.0
769------------
770-
771-(Note: This file is generated automatically from NOTICE.xml.
772-Please do not modify this file directly.)
773-
774-
775-
776-
777-Apache 2
778-
779- Copyright 2006-2011 The FLWOR Foundation
780-
781- See LICENSE.txt for license information.
782-
783- ------------------------
784- This product includes software developed at
785- The FLWOR Foundation (http://www.flworfound.org/).
786-
787- ------------------------
788- Portions of this software were developed at the Systems
789- Group of the ETH Zurich, Switzerland.
790-
791-
792-Other files used by this project:
793-----------------------------------------------------
794-
795-src/zorbatypes/m_apm.h
796-src/zorbatypes/mapm/
797-
798-Copyright: 1999-2007 Michael C. Ring
799-Website: http://www.tc.umn.edu/~ringx004/mapm-main.html
800-
801- This software is Freeware.
802-
803- Permission to use, copy, and distribute this software and its
804- documentation for any purpose with or without fee is hereby granted,
805- provided that the above copyright notice appear in all copies and
806- that both that copyright notice and this permission notice appear
807- in supporting documentation.
808-
809- Permission to modify the software is granted. Permission to distribute
810- the modified code is granted. Modifications are to be distributed by
811- using the file 'license.txt' as a template to modify the file header.
812- 'license.txt' is available in the official MAPM distribution.
813-
814- To distribute modified source code, insert the file 'license.txt'
815- at the top of all modified source code files and edit accordingly.
816-
817- This software is provided "as is" without express or implied warranty.
818-
819-----------------------------------------------------
820-
821-src/zorbamisc/config/stdint.h
822-
823-Copyright: 2006 Alexander Chemeris
824-
825-
826- Redistribution and use in source and binary forms, with or without
827- modification, are permitted provided that the following conditions are met:
828-
829- 1. Redistributions of source code must retain the above copyright notice,
830- this list of conditions and the following disclaimer.
831-
832- 2. Redistributions in binary form must reproduce the above copyright
833- notice, this list of conditions and the following disclaimer in the
834- documentation and/or other materials provided with the distribution.
835-
836- 3. The name of the author may be used to endorse or promote products
837- derived from this software without specific prior written permission.
838-
839- THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
840- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
841- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
842- EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
843- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
844- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
845- OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
846- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
847- OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
848- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
849-
850-----------------------------------------------------
851-
852-src/zorbautils/stemmer/
853-
854-Copyright: 2001 Dr. Martin Porter
855-
856-
857- All the software given out on this Snowball site is covered by the BSD
858- License (see http://www.opensource.org/licenses/bsd-license.html), with
859- Copyright (c) 2001, Dr Martin Porter, and (for the Java developments)
860- Copyright (c) 2002, Richard Boulton.
861-
862- Essentially, all this means is that you can do what you like with the code,
863- except claim another Copyright for it, or claim that it is issued under a
864- different license. The software is also issued without warranties, which
865- means that if anyone suffers through its use, they cannot come back and sue
866- you. You also have to alert anyone to whom you give the Snowball software to
867- the fact that it is covered by the BSD license.
868-
869- We have not bothered to insert the licensing arrangement into the text of
870- the Snowball software.
871-
872-----------------------------------------------------
873-
874-src/util/less.h
875-
876-Copyright: 1998 Paul J. Lucas
877-
878-
879- Redistribution and use in source and binary forms, with or without
880- modification, are permitted provided that the following conditions are met:
881-
882- o Redistributions of source code must retain the above copyright notice,
883- this list of conditions and the following disclaimer.
884-
885- o Redistributions in binary form must reproduce the above copyright
886- notice, this list of conditions and the following disclaimer in the
887- documentation and/or other materials provided with the distribution.
888-
889- o The name of the author may not be used to endorse or promote products
890- derived from this software without specific prior written permission.
891-
892- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
893- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
894- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
895- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
896- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
897- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
898- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
899- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
900- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
901- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
902- POSSIBILITY OF SUCH DAMAGE.
903-
904-----------------------------------------------------
905-
906-src/util/auto_vector.h (has been modified)
907-
908-Copyright: 2003 Reliable Software
909-
910-
911- Redistribution and use in source and binary forms, with or without
912- modification, are permitted provided that the following conditions are met:
913-
914- o Redistributions of source code must retain the above copyright notice,
915- this list of conditions and the following disclaimer.
916-
917- o Redistributions in binary form must reproduce the above copyright
918- notice, this list of conditions and the following disclaimer in the
919- documentation and/or other materials provided with the distribution.
920-
921- o The name of the author may not be used to endorse or promote products
922- derived from this software without specific prior written permission.
923-
924- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
925- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
926- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
927- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
928- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
929- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
930- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
931- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
932- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
933- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
934- POSSIBILITY OF SUCH DAMAGE.
935-
936-----------------------------------------------------
937-
938-cmake_modules/FindBoost.cmake
939-
940-Copyright:
941- 2006-2008 Andreas Schneider <mail@cynapses.org>
942- 2007 Wengo
943- 2007 Mike Jackson
944- 2008 Andreas Pakulat <apaku@gmx.de>
945-
946-
947-
948- Redistribution AND use is allowed according to the terms of the New BSD license.
949- For details see the accompanying COPYING-CMAKE-SCRIPTS file.
950-
951-----------------------------------------------------
952-
953-cmake_modules/FindJNI.cmake
954-cmake_modules/FindPythonLibs.cmake
955-cmake_modules/FindSWIG.cmake
956-
957-Copyright: 2001-2009 Kitware, Inc.
958-
959-
960- Distributed under the OSI-approved BSD License (the "License");
961- see accompanying file Copyright.txt for details.
962-
963- This software is distributed WITHOUT ANY WARRANTY; without even the
964- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
965- See the License for more information.
966-
967- CMake - Cross Platform Makefile Generator
968- Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
969- All rights reserved.
970-
971- Redistribution and use in source and binary forms, with or without
972- modification, are permitted provided that the following conditions
973- are met:
974-
975- * Redistributions of source code must retain the above copyright
976- notice, this list of conditions and the following disclaimer.
977-
978- * Redistributions in binary form must reproduce the above copyright
979- notice, this list of conditions and the following disclaimer in the
980- documentation and/or other materials provided with the distribution.
981-
982- * Neither the names of Kitware, Inc., the Insight Software Consortium,
983- nor the names of their contributors may be used to endorse or promote
984- products derived from this software without specific prior written
985- permission.
986-
987- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
988- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
989- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
990- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
991- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
992- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
993- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
994- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
995- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
996- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
997- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
998-
999- ------------------------------------------------------------------------------
1000-
1001- The above copyright and license notice applies to distributions of
1002- CMake in source and binary form. Some source files contain additional
1003- notices of original copyright by their contributors; see each source
1004- for details. Third-party software packages supplied with CMake under
1005- compatible licenses provide their own copyright notices documented in
1006- corresponding subdirectories.
1007-
1008- ------------------------------------------------------------------------------
1009-
1010- CMake was initially developed by Kitware with the following sponsorship:
1011-
1012- * National Library of Medicine at the National Institutes of Health
1013- as part of the Insight Segmentation and Registration Toolkit (ITK).
1014-
1015- * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
1016- Visualization Initiative.
1017-
1018- * National Alliance for Medical Image Computing (NAMIC) is funded by the
1019- National Institutes of Health through the NIH Roadmap for Medical Research,
1020- Grant U54 EB005149.
1021-
1022- * Kitware, Inc.
1023-
1024-----------------------------------------------------
1025-
1026-/xml.xsd
1027-
1028-Copyright: 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
1029-
1030-
1031- 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-
1033- W3C Software Notice and License
1034-
1035- 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-
1037- License
1038-
1039- 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-
1041- 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- •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
1043- •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- •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-
1046- Disclaimers
1047-
1048- 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-
1050- 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-
1052- 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-
1054-----------------------------------------------------
1055-
1056-schemas/xslt-xquery-serialization.xsd
1057-
1058-Copyright: 2010 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
1059-
1060-
1061- 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-
1063- W3C Software Notice and License
1064-
1065- 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-
1067- License
1068-
1069- 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-
1071- 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- •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
1073- •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- •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-
1076- Disclaimers
1077-
1078- 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-
1080- 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-
1082- 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-
1084-----------------------------------------------------
1085-
1086-modules/w3c/xpath-functions.xsd
1087-
1088-Copyright: 2005 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
1089-
1090-
1091- 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-
1093- W3C Software Notice and License
1094-
1095- 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-
1097- License
1098-
1099- 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-
1101- 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- •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
1103- •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- •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-
1106- Disclaimers
1107-
1108- 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-
1110- 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-
1112- 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-
1114-----------------------------------------------------
1115-
1116-include/xqc.h
1117-
1118-Copyright: 2008, Matthias Brantner, John Snelson
1119-
1120-
1121- * All rights reserved.
1122- *
1123- * Redistribution and use in source and binary forms, with or without
1124- * modification, are permitted provided that the following conditions are met:
1125- *
1126- * * Redistributions of source code must retain the above copyright notice,
1127- * this list of conditions and the following disclaimer.
1128- * * Redistributions in binary form must reproduce the above copyright
1129- * notice, this list of conditions and the following disclaimer in the
1130- * documentation and/or other materials provided with the distribution.
1131- * * Neither the name of the developers nor the names of contributors may be
1132- * used to endorse or promote products derived from this software without
1133- * specific prior written permission.
1134- *
1135- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1136- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1137- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1138- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
1139- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1140- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1141- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1142- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1143- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1144- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1145- * POSSIBILITY OF SUCH DAMAGE.
1146-
1147-----------------------------------------------------
1148-
1149-modules/functx/functx.xq
1150-
1151-Copyright: 2007 Datypic
1152-
1153-
1154- : This library is free software; you can redistribute it and/or
1155- : modify it under the terms of the GNU Lesser General Public
1156- : License as published by the Free Software Foundation; either
1157- : version 2.1 of the License.
1158-
1159- : This library is distributed in the hope that it will be useful,
1160- : but WITHOUT ANY WARRANTY; without even the implied warranty of
1161- : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1162- : Lesser General Public License for more details.
1163-
1164- : You should have received a copy of the GNU Lesser General Public
1165- : License along with this library; if not, write to the Free Software
1166- : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1167-
1168-----------------------------------------------------
1169-
1170-src/compiler/parser/FlexLexer.h
1171-
1172-Copyright: 1993 The Regents of the University of California
1173-
1174-
1175- // All rights reserved.
1176- //
1177- // This code is derived from software contributed to Berkeley by
1178- // Kent Williams and Tom Epperly.
1179- //
1180- // Redistribution and use in source and binary forms, with or without
1181- // modification, are permitted provided that the following conditions
1182- // are met:
1183-
1184- // 1. Redistributions of source code must retain the above copyright
1185- // notice, this list of conditions and the following disclaimer.
1186- // 2. Redistributions in binary form must reproduce the above copyright
1187- // notice, this list of conditions and the following disclaimer in the
1188- // documentation and/or other materials provided with the distribution.
1189-
1190- // Neither the name of the University nor the names of its contributors
1191- // may be used to endorse or promote products derived from this software
1192- // without specific prior written permission.
1193-
1194- // THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
1195- // IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
1196- // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1197- // PURPOSE.
1198-
1199-----------------------------------------------------
1200-
1201-src/diagnostics/StackWalker.cpp
1202-src/diagnostics/StackWalker.h
1203-
1204-Copyright: 2005 Jochen Kalmbach
1205-
1206-
1207- Under BSD License: http://www.opensource.org/licenses/bsd-license.php
1208-
1209-----------------------------------------------------
1210-
1211-src/util/singleton.h
1212-src/util/threads.h
1213-
1214-Copyright: 2001 Andrei Alexandrescu
1215-
1216-
1217- This code accompanies the book:
1218- Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design
1219- Patterns Applied". Copyright (c) 2001. Addison-Wesley.
1220- Permission to use, copy, modify, distribute and sell this software for any
1221- purpose is hereby granted without fee, provided that the above copyright
1222- notice appear in all copies and that both that copyright notice and this
1223- permission notice appear in supporting documentation.
1224- The author or Addison-Wesley Longman make no representations about the
1225- suitability of this software for any purpose. It is provided "as is"
1226- without express or implied warranty.
1227-
1228-
1229-External libraries used by this project:
1230-----------------------------------------------------
1231-
1232-Name: LIBXML2
1233-Preferred version: 2.2.16 or higher
1234-Is mandatory: true
1235-Website: http://xmlsoft.org/
1236-License: MIT
1237-Copyright: 1998-2002 Daniel Veillard. All Rights Reserved.
1238-External notice:
1239-
1240- 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-
1242- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1243-
1244- 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-
1246- Except as contained in this notice, the name of Daniel Veillard shall not
1247- be used in advertising or otherwise to promote the sale, use or other deal-
1248- ings in this Software without prior written authorization from him.
1249-
1250-----------------------------------------------------
1251-
1252-Name: LIBXSLT
1253-Preferred version: 1.1.26
1254-Is mandatory: false
1255-Website: http://xmlsoft.org/XSLT/
1256-License: MIT
1257-Copyright: 2001-2002 Daniel Veillard. All Rights Reserved.
1258-External notice:
1259-
1260- 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-
1262- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1263-
1264- 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-
1266-
1267- 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-
1269-
1270-----------------------------------------------------
1271-
1272-Name: ICU4C
1273-Preferred version: 3.6 or higher
1274-Is mandatory: true
1275-Website: http://www.icu-project.org/
1276-License: ICU License
1277-Copyright: 1995-2011 International Business Machines Corporation and others
1278-External notice:
1279-
1280- 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-
1282- 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-
1284- 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-
1286-----------------------------------------------------
1287-
1288-Name: CURL
1289-Preferred version: above 7.12
1290-Is mandatory: false
1291-Website: http://curl.haxx.se/
1292-License: MIT/X derivate license
1293-Copyright: 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>.
1294-External notice:
1295-
1296- All rights reserved.
1297-
1298- Permission to use, copy, modify, and distribute this software for any purpose
1299- with or without fee is hereby granted, provided that the above copyright
1300- notice and this permission notice appear in all copies.
1301-
1302- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1303- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1304- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
1305- NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
1306- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
1307- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
1308- OR OTHER DEALINGS IN THE SOFTWARE.
1309-
1310- Except as contained in this notice, the name of a copyright holder shall not
1311- be used in advertising or otherwise to promote the sale, use or other dealings
1312- in this Software without prior written authorization of the copyright holder.
1313-
1314-----------------------------------------------------
1315-
1316-Name: ICONV
1317-Preferred version: above 1.12
1318-Is mandatory: true
1319-Website: http://www.gnu.org/software/libiconv/
1320-License: LGPL
1321-Copyright: 1998, 2010 Free Software Foundation, Inc.
1322-External notice:
1323-
1324-----------------------------------------------------
1325-
1326-Name: ZLIB
1327-Preferred version: 1.2.5
1328-Is mandatory: true
1329-Website: http://www.zlib.net/
1330-Copyright: 1995-2004 Jean-loup Gailly and Mark Adler
1331-External notice:
1332-
1333- This software is provided 'as-is', without any express or implied
1334- warranty. In no event will the authors be held liable for any damages
1335- arising from the use of this software.
1336-
1337- Permission is granted to anyone to use this software for any purpose,
1338- including commercial applications, and to alter it and redistribute it
1339- freely, subject to the following restrictions:
1340-
1341- 1. The origin of this software must not be misrepresented; you must not
1342- claim that you wrote the original software. If you use this software
1343- in a product, an acknowledgment in the product documentation would be
1344- appreciated but is not required.
1345- 2. Altered source versions must be plainly marked as such, and must not be
1346- misrepresented as being the original software.
1347- 3. This notice may not be removed or altered from any source distribution.
1348-
1349- Jean-loup Gailly jloup@gzip.org
1350- Mark Adler madler@alumni.caltech.edu
1351-
1352-----------------------------------------------------
1353-
1354-Name: XERCES
1355-Preferred version: 2.8.0 or higher
1356-Is mandatory: true
1357-Website: http://xerces.apache.org/xerces-c/
1358-License: Apache 2
1359-Copyright: Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.
1360-External notice:
1361-
1362- http://www.apache.org/licenses/LICENSE-2.0
1363-
1364-----------------------------------------------------
1365-
1366-Name: BOOST (boost_filesystem)
1367-Preferred version: 1.32 or higher
1368-Is mandatory: false
1369-Website: http://www.boost.org/
1370-License: Boost Software License v1.0
1371-Copyright:
1372- Beman Dawes, David Abrahams, 1998-2005.
1373- Rene Rivera 2004-2007
1374-
1375-External notice:
1376-
1377- Permission is hereby granted, free of charge, to any person or organization
1378- obtaining a copy of the software and accompanying documentation covered by
1379- this license (the "Software") to use, reproduce, display, distribute,
1380- execute, and transmit the Software, and to prepare derivative works of the
1381- Software, and to permit third-parties to whom the Software is furnished to
1382- do so, all subject to the following:
1383-
1384- The copyright notices in the Software and this entire statement, including
1385- the above license grant, this restriction and the following disclaimer,
1386- must be included in all copies of the Software, in whole or in part, and
1387- all derivative works of the Software, unless such copies or derivative
1388- works are solely in the form of machine-executable object code generated by
1389- a source language processor.
1390-
1391- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1392- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1393- FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
1394- SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
1395- FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
1396- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1397- DEALINGS IN THE SOFTWARE.
1398-
1399-
1400-External applications used by this project:
1401-----------------------------------------------------
1402-
1403-Name: FLEX
1404-Preferred version: 2.5.33
1405-Is mandatory: false
1406-Website: http://flex.sourceforge.net/
1407-Copyright:
1408- 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The Flex Project.
1409- 1990, 1997 The Regents of the University of California. All rights reserved.
1410-
1411-External notice:
1412-
1413- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1414-
1415- 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1416- 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-
1418- 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-
1420- 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-
1422-----------------------------------------------------
1423-
1424-Name: BISON
1425-Preferred version: 2.4 or higher
1426-Is mandatory: false
1427-Website: http://www.gnu.org/software/bison/
1428-License: GPL
1429-Copyright: 1998, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1430-External notice:
1431-
1432-----------------------------------------------------
1433-
1434-Name: DOXYGEN
1435-Preferred version: v1.7.4
1436-Is mandatory: false
1437-Website: www.doxygen.org
1438-License: GPL
1439-Copyright: 1997-2011 by Dimitri van Heesch
1440-External notice:
1441-
1442- 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- No representations are made about the suitability of this software for any purpose.
1444- It is provided "as is" without express or implied warranty.
1445- See the GNU General Public License for more details.
1446-
1447- Documents produced by doxygen are derivative works derived from the input used in their production; they are not affected by this license.
1448-
1449-----------------------------------------------------
1450-
1451-Name: CMAKE
1452-Preferred version: 2.8.4
1453-Is mandatory: true
1454-Website: http://www.cmake.org/
1455-License: Creative Commons Attribution-NoDerivs 3.0 Unported License
1456-Copyright: 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.
1457-External notice:
1458-
1459- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1460-
1461- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1462-
1463- 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-
1465- 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-
1467- 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-
1469-----------------------------------------------------
1470-
1471-Name: SWIG
1472-Preferred version: 2.0.4 or above
1473-Is mandatory: false
1474-Website: http://www.swig.org/
1475-License: GPL
1476-Copyright:
1477- 1995-2011 The SWIG Developers
1478- 2005-2006 Arizona Board of Regents (University of Arizona).
1479- 1998-2005 University of Chicago.
1480- 1995-1998 The University of Utah and the Regents of the University of California
1481-
1482-External notice:
1483-
1484- SWIG is free software: you can redistribute it and/or modify it
1485- under the terms of the GNU General Public License as published by
1486- the Free Software Foundation, either version 3 of the License, or
1487- (at your option) any later version. See the LICENSE-GPL file for
1488- the full terms of the GNU General Public license version 3.
1489-
1490- Portions of SWIG are also licensed under the terms of the licenses
1491- in the file LICENSE-UNIVERSITIES. You must observe the terms of
1492- these licenses, as well as the terms of the GNU General Public License,
1493- when you distribute SWIG.
1494-
1495- The SWIG library and examples, under the Lib and Examples top level
1496- directories, are distributed under the following terms:
1497-
1498- You may copy, modify, distribute, and make derivative works based on
1499- this software, in source code or object code form, without
1500- restriction. If you distribute the software to others, you may do
1501- so according to the terms of your choice. This software is offered as
1502- is, without warranty of any kind.
1503-
1504- See the COPYRIGHT file for a list of contributors to SWIG and their
1505- copyright notices.
1506-
1507\ No newline at end of file
1508
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
1514 extern ZORBA_DLL_PUBLIC XQueryErrorCode FOTY0015;
1515
1516+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOUT1170;
1517+
1518+extern ZORBA_DLL_PUBLIC XQueryErrorCode FOUT1190;
1519+
1520 extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0001;
1521
1522 extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0002;
1523
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
1529 (:~
1530 :
1531+ : Identifier cannot be used to retrive a resource containing text
1532+ :
1533+ : @see http://www.w3.org/2005/xqt-errors
1534+:)
1535+declare variable $err:FOUT1170 as xs:QName := fn:QName($err:NS, "err:FOUT1170");
1536+
1537+(:~
1538+ :
1539+ : Retrieved resource contains octets that cannot be decoded into Unicode
1540+ : using the specified encoding, the resulting characters are not
1541+ : permitted XML characters or requested encoding not supported
1542+ :
1543+ : @see http://www.w3.org/2005/xqt-errors
1544+:)
1545+declare variable $err:FOUT1190 as xs:QName := fn:QName($err:NS, "err:FOUT1190");
1546+
1547+(:~
1548+ :
1549 : It is a static error if an updating expression is used in any position
1550 : other than one of the following:
1551 : - The topmost expression in the body of a query.
1552
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 (:~
1558 : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string">fn:string</a>
1559 :)
1560-declare function fn:string($arg as item()?) as xs:string external;
1561\ No newline at end of file
1562+declare function fn:string($arg as item()?) as xs:string external;
1563+
1564+(:~
1565+ : @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+ :)
1567+declare function fn:available-environment-variables() as xs:string* external;
1568+
1569+(:~
1570+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-environment-variable">fn:environment-variable</a>
1571+ :)
1572+declare function fn:environment-variable($arg as xs:string) as xs:string? external;
1573+
1574+(:~
1575+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text">fn:unparsed-text</a>
1576+ :)
1577+declare function fn:unparsed-text($href as xs:string?) as xs:string? external;
1578+
1579+(:~
1580+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text">fn:unparsed-text</a>
1581+ :)
1582+declare function fn:unparsed-text($href as xs:string?, $encoding as xs:string) as xs:string? external;
1583+
1584+(:~
1585+ : @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+ :)
1587+declare function fn:unparsed-text-available($href as xs:string?) as xs:boolean external;
1588+
1589+(:~
1590+ : @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+ :)
1592+declare function fn:unparsed-text-lines( $href as xs:string?, $encoding as xs:string) as xs:string* external;
1593+
1594+(:~
1595+ : @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+ :)
1597+declare function fn:unparsed-text-available( $href as xs:string?, $encoding as xs:string) as xs:boolean external;
1598+
1599+(:~
1600+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-uri-collection">fn:uri-collection</a>
1601+ :)
1602+declare function fn:uri-collection() as xs:anyURI* external;
1603+
1604+(:~
1605+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-uri-collection">fn:uri-collection</a>
1606+ :)
1607+declare function fn:uri-collection($arg as xs:string?) as xs:anyURI* external;
1608
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 #include <sys/timeb.h>
1614 #ifdef UNIX
1615 #include <sys/time.h>
1616+#include <unistd.h>
1617 #endif
1618
1619 #include "store/api/iterator.h"
1620@@ -29,6 +30,7 @@
1621 #include "store/api/store.h"
1622 #include "store/api/index.h"
1623 #include "store/api/ic.h"
1624+#include "store/api/iterator_factory.h"
1625
1626 #include "system/globalenv.h"
1627
1628@@ -54,10 +56,13 @@
1629
1630 using namespace std;
1631
1632+#ifdef UNIX
1633+//external variables
1634+extern char **environ;
1635+#endif
1636+
1637 namespace zorba
1638 {
1639-
1640-
1641 /*******************************************************************************
1642
1643 ********************************************************************************/
1644@@ -122,6 +127,7 @@
1645 theParent(NULL),
1646 keymap(NULL),
1647 theAvailableIndices(NULL),
1648+ theEnvironmentVariables(NULL),
1649 theDocLoadingUserTime(0.0),
1650 theDocLoadingTime(0)
1651 {
1652@@ -161,6 +167,9 @@
1653 delete keymap;
1654 }
1655
1656+ if(theEnvironmentVariables)
1657+ delete theEnvironmentVariables;
1658+
1659 if (theAvailableIndices)
1660 delete theAvailableIndices;
1661 }
1662@@ -259,6 +268,145 @@
1663 /*******************************************************************************
1664
1665 ********************************************************************************/
1666+void dynamic_context::set_environment_variables()
1667+{
1668+ if (!theEnvironmentVariables)
1669+ theEnvironmentVariables = new EnvVarMap();
1670+
1671+#if defined (WIN32)
1672+ LPTCH envVarsCH = GetEnvironmentStrings();
1673+ LPTSTR envVarsSTR = (LPTSTR) envVarsCH;
1674+
1675+ while (*envVarsSTR)
1676+ {
1677+ int size = lstrlen(envVarsSTR);
1678+
1679+ char * envVar = new char[size+1];
1680+
1681+
1682+ WideCharToMultiByte( CP_ACP,
1683+ WC_NO_BEST_FIT_CHARS|WC_COMPOSITECHECK|WC_DEFAULTCHAR,
1684+ envVarsSTR,
1685+ size+1,
1686+ envVar,
1687+ size+1,
1688+ NULL,
1689+ NULL);
1690+
1691+
1692+ zstring envVarZS(envVar);
1693+
1694+ int eqPos = envVarZS.find_first_of("=");
1695+
1696+ if (eqPos > 0)
1697+ {
1698+ zstring varname(envVarZS.substr(0, eqPos));
1699+ zstring varvalue(envVarZS.substr(eqPos+1, size));
1700+
1701+ if (!varname.empty() || !varvalue.empty())
1702+ theEnvironmentVariables->insert(std::pair<zstring, zstring>(varname,varvalue));
1703+ }
1704+
1705+ delete envVar;
1706+ envVarsSTR += lstrlen(envVarsSTR) + 1;
1707+ }
1708+
1709+ FreeEnvironmentStrings(envVarsCH);
1710+#else
1711+ const char* invalid_char;
1712+ for (char **env = environ; *env; ++env)
1713+ {
1714+ zstring envVarZS(*env);
1715+
1716+ if ((invalid_char = utf8::validate(envVarZS.c_str())) != NULL)
1717+ throw XQUERY_EXCEPTION(err::FOCH0001,
1718+ ERROR_PARAMS(zstring("#x") +
1719+ BUILD_STRING(std::uppercase << std::hex
1720+ << (static_cast<unsigned int>(*invalid_char)&0xFF))));
1721+
1722+ if ((invalid_char = utf8::validate(envVarZS.c_str())) != NULL)
1723+ {
1724+ throw XQUERY_EXCEPTION(err::FOCH0001,
1725+ ERROR_PARAMS(zstring("#x") +
1726+ BUILD_STRING(std::uppercase << std::hex
1727+ << (static_cast<unsigned int>(*invalid_char) & 0xFF)) ));
1728+ }
1729+
1730+ int size = envVarZS.size();
1731+
1732+ int eqPos = envVarZS.find_first_of("=");
1733+
1734+ if (eqPos > 0)
1735+ {
1736+ zstring varname(envVarZS.substr(0, eqPos));
1737+ zstring varvalue(envVarZS.substr(eqPos+1, size));
1738+
1739+ if (!varname.empty() || !varvalue.empty())
1740+ theEnvironmentVariables->insert(std::pair<zstring, zstring>(varname,varvalue));
1741+ }
1742+ }
1743+
1744+#endif
1745+
1746+}
1747+/*******************************************************************************
1748+
1749+********************************************************************************/
1750+store::Iterator_t dynamic_context::available_environment_variables()
1751+{
1752+ if (!theEnvironmentVariables)
1753+ {
1754+ set_environment_variables();
1755+ }
1756+
1757+ EnvVarMap::iterator lIte = theEnvironmentVariables->begin();
1758+ EnvVarMap::iterator lEnd = theEnvironmentVariables->end();
1759+
1760+ std::vector<store::Item_t> lVarNames;
1761+
1762+ for (;lIte != lEnd; ++lIte)
1763+ {
1764+ store::Item_t varname;
1765+ zstring zsvarname = lIte->first;
1766+ GENV_ITEMFACTORY->createString(varname, zsvarname);
1767+ lVarNames.push_back(varname);
1768+ }
1769+
1770+ if (lVarNames.empty())
1771+ {
1772+ return NULL;
1773+ }
1774+
1775+ return GENV_STORE.createTempSeq(lVarNames)->getIterator();
1776+}
1777+
1778+/*******************************************************************************
1779+
1780+********************************************************************************/
1781+store::Item_t dynamic_context::get_environment_variable(const zstring& varname)
1782+{
1783+
1784+ if (!theEnvironmentVariables)
1785+ {
1786+ set_environment_variables();
1787+ }
1788+
1789+ EnvVarMap::iterator lIter = theEnvironmentVariables->find(varname);
1790+
1791+ if (lIter == theEnvironmentVariables->end())
1792+ {
1793+ return NULL;
1794+ }
1795+
1796+ store::Item_t value;
1797+ zstring varvalue = lIter->second;
1798+ GENV_ITEMFACTORY->createString(value, varvalue);
1799+ return value;
1800+}
1801+
1802+/*******************************************************************************
1803+
1804+********************************************************************************/
1805 void dynamic_context::add_variable(ulong varid, store::Iterator_t& value)
1806 {
1807 declare_variable(varid);
1808@@ -607,7 +755,6 @@
1809 {
1810 keymap = new ValueMap(8, false);
1811 }
1812-
1813 if (!keymap->insert(aName, val))
1814 {
1815 keymap->update(aName, val);
1816
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
1822 typedef ItemPointerHashMap<store::Index_t> IndexMap;
1823
1824+ typedef std::map<const zstring,const zstring> EnvVarMap;
1825+
1826 protected:
1827 dynamic_context * theParent;
1828
1829@@ -119,6 +121,9 @@
1830
1831 IndexMap * theAvailableIndices;
1832
1833+ //MODIFY
1834+ EnvVarMap * theEnvironmentVariables;
1835+
1836 public:
1837 double theDocLoadingUserTime;
1838 double theDocLoadingTime;
1839@@ -142,6 +147,12 @@
1840
1841 store::Item_t get_current_time_millis() const;
1842
1843+ void set_environment_variables();
1844+
1845+ store::Item_t get_environment_variable(const zstring& varname);
1846+
1847+ store::Iterator_t available_environment_variables();
1848+
1849 void set_implicit_timezone(long tzone_seconds);
1850
1851 long get_implicit_timezone() const;
1852
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 An argument to \c fn:deep-equal() contains a function item.
1858 </comment>
1859 <value>"$1": argument to fn:deep-equal() contains a function item</value>
1860+ </diagnostic>
1861+
1862+ <diagnostic code="FOUT1170">
1863+ <comment>
1864+ Identifier cannot be used to retrive a resource containing text
1865+ </comment>
1866+ <value>"$1": error retrieving resource containing text</value>
1867 </diagnostic>
1868+
1869+ <diagnostic code="FOUT1190">
1870+ <comment>
1871+ Retrieved resource contains octets that cannot be decoded into Unicode
1872+ using the specified encoding, the resulting characters are not
1873+ permitted XML characters or requested encoding not supported
1874+ </comment>
1875+ <value>"$1": Cannot decode resource retrieved</value>
1876+ </diagnostic>
1877
1878 <!--////////// XQuery Update Facility //////////////////////////////////-->
1879
1880
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 XQueryErrorCode FOTY0015( "FOTY0015" );
1886
1887
1888+XQueryErrorCode FOUT1170( "FOUT1170" );
1889+
1890+
1891+XQueryErrorCode FOUT1190( "FOUT1190" );
1892+
1893+
1894 XQueryErrorCode XUST0001( "XUST0001" );
1895
1896
1897
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 { "FOTY0015", "\"$1\": argument to fn:deep-equal() contains a function item" },
1903 { "FOUP0001", "first operand of fn:put() is not a node of a supported kind" },
1904 { "FOUP0002", "second operand of fn:put() is not a valid lexical representation of the xs:anyURI type" },
1905+ { "FOUT1170", "\"$1\": error retrieving resource containing text" },
1906+ { "FOUT1190", "\"$1\": Cannot decode resource retrieved" },
1907 #if !defined(ZORBA_NO_FULL_TEXT)
1908 { "FTDY0016", "\"$1\": invalid weight: absolute value must be in [0,1000]" },
1909 #endif
1910
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+/*
1916+ * Copyright 2006-2008 The FLWOR Foundation.
1917+ *
1918+ * Licensed under the Apache License, Version 2.0 (the "License");
1919+ * you may not use this file except in compliance with the License.
1920+ * You may obtain a copy of the License at
1921+ *
1922+ * http://www.apache.org/licenses/LICENSE-2.0
1923+ *
1924+ * Unless required by applicable law or agreed to in writing, software
1925+ * distributed under the License is distributed on an "AS IS" BASIS,
1926+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1927+ * See the License for the specific language governing permissions and
1928+ * limitations under the License.
1929+ */
1930+
1931+// ******************************************
1932+// * *
1933+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
1934+// * SEE .xml FILE WITH SAME NAME *
1935+// * *
1936+// ******************************************
1937+
1938+
1939+#include "stdafx.h"
1940+#include "runtime/access/access.h"
1941+#include "functions/func_access.h"
1942+
1943+
1944+namespace zorba{
1945+
1946+
1947+
1948+PlanIter_t fn_unparsed_text::codegen(
1949+ CompilerCB*,
1950+ static_context* sctx,
1951+ const QueryLoc& loc,
1952+ std::vector<PlanIter_t>& argv,
1953+ expr& ann) const
1954+{
1955+ return new FnUnparsedTextIterator(sctx, loc, argv);
1956+}
1957+
1958+PlanIter_t fn_unparsed_text_available::codegen(
1959+ CompilerCB*,
1960+ static_context* sctx,
1961+ const QueryLoc& loc,
1962+ std::vector<PlanIter_t>& argv,
1963+ expr& ann) const
1964+{
1965+ return new FnUnparsedTextAvailableIterator(sctx, loc, argv);
1966+}
1967+
1968+void populate_context_access(static_context* sctx)
1969+{
1970+ {
1971+
1972+
1973+ DECL_WITH_KIND(sctx, fn_unparsed_text,
1974+ (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text"),
1975+ GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
1976+ GENV_TYPESYSTEM.STRING_TYPE_QUESTION),
1977+ FunctionConsts::FN_UNPARSED_TEXT_1);
1978+
1979+ }
1980+
1981+
1982+ {
1983+
1984+
1985+ DECL_WITH_KIND(sctx, fn_unparsed_text,
1986+ (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text"),
1987+ GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
1988+ GENV_TYPESYSTEM.STRING_TYPE_ONE,
1989+ GENV_TYPESYSTEM.STRING_TYPE_QUESTION),
1990+ FunctionConsts::FN_UNPARSED_TEXT_2);
1991+
1992+ }
1993+
1994+
1995+ {
1996+
1997+
1998+ DECL_WITH_KIND(sctx, fn_unparsed_text_available,
1999+ (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text-available"),
2000+ GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
2001+ GENV_TYPESYSTEM.STRING_TYPE_QUESTION),
2002+ FunctionConsts::FN_UNPARSED_TEXT_AVAILABLE_1);
2003+
2004+ }
2005+
2006+
2007+ {
2008+
2009+
2010+ DECL_WITH_KIND(sctx, fn_unparsed_text_available,
2011+ (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text-available"),
2012+ GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
2013+ GENV_TYPESYSTEM.STRING_TYPE_ONE,
2014+ GENV_TYPESYSTEM.STRING_TYPE_QUESTION),
2015+ FunctionConsts::FN_UNPARSED_TEXT_AVAILABLE_2);
2016+
2017+ }
2018+
2019+}
2020+
2021+
2022+}
2023+
2024+
2025+
2026
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+/*
2032+ * Copyright 2006-2008 The FLWOR Foundation.
2033+ *
2034+ * Licensed under the Apache License, Version 2.0 (the "License");
2035+ * you may not use this file except in compliance with the License.
2036+ * You may obtain a copy of the License at
2037+ *
2038+ * http://www.apache.org/licenses/LICENSE-2.0
2039+ *
2040+ * Unless required by applicable law or agreed to in writing, software
2041+ * distributed under the License is distributed on an "AS IS" BASIS,
2042+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2043+ * See the License for the specific language governing permissions and
2044+ * limitations under the License.
2045+ */
2046+
2047+// ******************************************
2048+// * *
2049+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
2050+// * SEE .xml FILE WITH SAME NAME *
2051+// * *
2052+// ******************************************
2053+
2054+
2055+#ifndef ZORBA_FUNCTIONS_ACCESS_H
2056+#define ZORBA_FUNCTIONS_ACCESS_H
2057+
2058+
2059+#include "common/shared_types.h"
2060+#include "functions/function_impl.h"
2061+
2062+
2063+namespace zorba {
2064+
2065+
2066+void populate_context_access(static_context* sctx);
2067+
2068+
2069+
2070+
2071+//fn:unparsed-text
2072+class fn_unparsed_text : public function
2073+{
2074+public:
2075+ fn_unparsed_text(const signature& sig, FunctionConsts::FunctionKind kind)
2076+ :
2077+ function(sig, kind)
2078+ {
2079+
2080+ }
2081+
2082+ CODEGEN_DECL();
2083+};
2084+
2085+
2086+//fn:unparsed-text-available
2087+class fn_unparsed_text_available : public function
2088+{
2089+public:
2090+ fn_unparsed_text_available(const signature& sig, FunctionConsts::FunctionKind kind)
2091+ :
2092+ function(sig, kind)
2093+ {
2094+
2095+ }
2096+
2097+ CODEGEN_DECL();
2098+};
2099+
2100+
2101+} //namespace zorba
2102+
2103+
2104+#endif
2105+/*
2106+ * Local variables:
2107+ * mode: c++
2108+ * End:
2109+ */
2110
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 @@
2115-/*
2116- * Copyright 2006-2008 The FLWOR Foundation.
2117- *
2118- * Licensed under the Apache License, Version 2.0 (the "License");
2119- * you may not use this file except in compliance with the License.
2120- * You may obtain a copy of the License at
2121- *
2122- * http://www.apache.org/licenses/LICENSE-2.0
2123- *
2124- * Unless required by applicable law or agreed to in writing, software
2125- * distributed under the License is distributed on an "AS IS" BASIS,
2126- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2127- * See the License for the specific language governing permissions and
2128- * limitations under the License.
2129- */
2130-
2131-// ******************************************
2132-// * *
2133-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
2134-// * SEE .xml FILE WITH SAME NAME *
2135-// * *
2136-// ******************************************
2137-
2138-
2139-#include "stdafx.h"
2140-#include "runtime/accessors/accessors.h"
2141-#include "functions/func_accessors.h"
2142-
2143-
2144-namespace zorba{
2145-
2146-
2147-
2148-PlanIter_t fn_node_name_3_0::codegen(
2149- CompilerCB*,
2150- static_context* sctx,
2151- const QueryLoc& loc,
2152- std::vector<PlanIter_t>& argv,
2153- expr& ann) const
2154-{
2155- return new NodeNameIterator(sctx, loc, argv);
2156-}
2157-PlanIter_t fn_node_name::codegen(
2158- CompilerCB*,
2159- static_context* sctx,
2160- const QueryLoc& loc,
2161- std::vector<PlanIter_t>& argv,
2162- expr& ann) const
2163-{
2164- return new NodeNameIterator(sctx, loc, argv);
2165-}
2166-
2167-PlanIter_t fn_nilled::codegen(
2168- CompilerCB*,
2169- static_context* sctx,
2170- const QueryLoc& loc,
2171- std::vector<PlanIter_t>& argv,
2172- expr& ann) const
2173-{
2174- return new NilledIterator(sctx, loc, argv);
2175-}
2176-
2177-
2178-PlanIter_t fn_data::codegen(
2179- CompilerCB*,
2180- static_context* sctx,
2181- const QueryLoc& loc,
2182- std::vector<PlanIter_t>& argv,
2183- expr& ann) const
2184-{
2185- return new FnDataIterator(sctx, loc, argv);
2186-}
2187-
2188-PlanIter_t fn_base_uri::codegen(
2189- CompilerCB*,
2190- static_context* sctx,
2191- const QueryLoc& loc,
2192- std::vector<PlanIter_t>& argv,
2193- expr& ann) const
2194-{
2195- return new BaseUriIterator(sctx, loc, argv);
2196-}
2197-
2198-PlanIter_t fn_document_uri_3_0::codegen(
2199- CompilerCB*,
2200- static_context* sctx,
2201- const QueryLoc& loc,
2202- std::vector<PlanIter_t>& argv,
2203- expr& ann) const
2204-{
2205- return new DocumentUriIterator(sctx, loc, argv);
2206-}
2207-PlanIter_t fn_document_uri::codegen(
2208- CompilerCB*,
2209- static_context* sctx,
2210- const QueryLoc& loc,
2211- std::vector<PlanIter_t>& argv,
2212- expr& ann) const
2213-{
2214- return new DocumentUriIterator(sctx, loc, argv);
2215-}
2216-
2217-PlanIter_t fn_root::codegen(
2218- CompilerCB*,
2219- static_context* sctx,
2220- const QueryLoc& loc,
2221- std::vector<PlanIter_t>& argv,
2222- expr& ann) const
2223-{
2224- return new RootIterator(sctx, loc, argv);
2225-}
2226-
2227-void populate_context_accessors(static_context* sctx)
2228-{
2229- {
2230-
2231-
2232- DECL_WITH_KIND(sctx, fn_node_name_3_0,
2233- (createQName("http://www.w3.org/2005/xpath-functions","","node-name"),
2234- GENV_TYPESYSTEM.QNAME_TYPE_QUESTION),
2235- FunctionConsts::FN_NODE_NAME_0);
2236-
2237- }
2238-
2239-
2240- {
2241-
2242-
2243- DECL_WITH_KIND(sctx, fn_node_name,
2244- (createQName("http://www.w3.org/2005/xpath-functions","","node-name"),
2245- GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
2246- GENV_TYPESYSTEM.QNAME_TYPE_QUESTION),
2247- FunctionConsts::FN_NODE_NAME_1);
2248-
2249- }
2250-
2251-
2252- {
2253-
2254-
2255- DECL_WITH_KIND(sctx, fn_nilled,
2256- (createQName("http://www.w3.org/2005/xpath-functions","","nilled"),
2257- GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
2258- GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
2259- FunctionConsts::FN_NILLED_1);
2260-
2261- }
2262-
2263-
2264- {
2265-
2266-
2267- DECL_WITH_KIND(sctx, fn_string,
2268- (createQName("http://www.w3.org/2005/xpath-functions","","string"),
2269- GENV_TYPESYSTEM.STRING_TYPE_ONE),
2270- FunctionConsts::FN_STRING_0);
2271-
2272- }
2273-
2274-
2275- {
2276-
2277-
2278- DECL_WITH_KIND(sctx, fn_string,
2279- (createQName("http://www.w3.org/2005/xpath-functions","","string"),
2280- GENV_TYPESYSTEM.ITEM_TYPE_QUESTION,
2281- GENV_TYPESYSTEM.STRING_TYPE_ONE),
2282- FunctionConsts::FN_STRING_1);
2283-
2284- }
2285-
2286-
2287- {
2288-
2289-
2290- DECL_WITH_KIND(sctx, fn_data,
2291- (createQName("http://www.w3.org/2005/xpath-functions","","data"),
2292- GENV_TYPESYSTEM.ITEM_TYPE_STAR,
2293- GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR),
2294- FunctionConsts::FN_DATA_1);
2295-
2296- }
2297-
2298-
2299- {
2300-
2301-
2302- DECL_WITH_KIND(sctx, fn_base_uri,
2303- (createQName("http://www.w3.org/2005/xpath-functions","","base-uri"),
2304- GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
2305- FunctionConsts::FN_BASE_URI_0);
2306-
2307- }
2308-
2309-
2310- {
2311-
2312-
2313- DECL_WITH_KIND(sctx, fn_base_uri,
2314- (createQName("http://www.w3.org/2005/xpath-functions","","base-uri"),
2315- GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
2316- GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
2317- FunctionConsts::FN_BASE_URI_1);
2318-
2319- }
2320-
2321-
2322- {
2323-
2324-
2325- DECL_WITH_KIND(sctx, fn_document_uri_3_0,
2326- (createQName("http://www.w3.org/2005/xpath-functions","","document-uri"),
2327- GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
2328- FunctionConsts::FN_DOCUMENT_URI_0);
2329-
2330- }
2331-
2332-
2333- {
2334-
2335-
2336- DECL_WITH_KIND(sctx, fn_document_uri,
2337- (createQName("http://www.w3.org/2005/xpath-functions","","document-uri"),
2338- GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
2339- GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
2340- FunctionConsts::FN_DOCUMENT_URI_1);
2341-
2342- }
2343-
2344-
2345- {
2346-
2347-
2348- DECL_WITH_KIND(sctx, fn_root,
2349- (createQName("http://www.w3.org/2005/xpath-functions","","root"),
2350- GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION),
2351- FunctionConsts::FN_ROOT_0);
2352-
2353- }
2354-
2355-
2356- {
2357-
2358-
2359- DECL_WITH_KIND(sctx, fn_root,
2360- (createQName("http://www.w3.org/2005/xpath-functions","","root"),
2361- GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
2362- GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION),
2363- FunctionConsts::FN_ROOT_1);
2364-
2365- }
2366-
2367-}
2368-
2369-
2370-}
2371-
2372-
2373-
2374+/*
2375+ * Copyright 2006-2008 The FLWOR Foundation.
2376+ *
2377+ * Licensed under the Apache License, Version 2.0 (the "License");
2378+ * you may not use this file except in compliance with the License.
2379+ * You may obtain a copy of the License at
2380+ *
2381+ * http://www.apache.org/licenses/LICENSE-2.0
2382+ *
2383+ * Unless required by applicable law or agreed to in writing, software
2384+ * distributed under the License is distributed on an "AS IS" BASIS,
2385+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2386+ * See the License for the specific language governing permissions and
2387+ * limitations under the License.
2388+ */
2389+
2390+// ******************************************
2391+// * *
2392+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
2393+// * SEE .xml FILE WITH SAME NAME *
2394+// * *
2395+// ******************************************
2396+
2397+
2398+#include "stdafx.h"
2399+#include "runtime/accessors/accessors.h"
2400+#include "functions/func_accessors.h"
2401+
2402+
2403+namespace zorba{
2404+
2405+
2406+
2407+PlanIter_t fn_node_name_3_0::codegen(
2408+ CompilerCB*,
2409+ static_context* sctx,
2410+ const QueryLoc& loc,
2411+ std::vector<PlanIter_t>& argv,
2412+ expr& ann) const
2413+{
2414+ return new NodeNameIterator(sctx, loc, argv);
2415+}
2416+PlanIter_t fn_node_name::codegen(
2417+ CompilerCB*,
2418+ static_context* sctx,
2419+ const QueryLoc& loc,
2420+ std::vector<PlanIter_t>& argv,
2421+ expr& ann) const
2422+{
2423+ return new NodeNameIterator(sctx, loc, argv);
2424+}
2425+
2426+PlanIter_t fn_nilled::codegen(
2427+ CompilerCB*,
2428+ static_context* sctx,
2429+ const QueryLoc& loc,
2430+ std::vector<PlanIter_t>& argv,
2431+ expr& ann) const
2432+{
2433+ return new NilledIterator(sctx, loc, argv);
2434+}
2435+
2436+
2437+PlanIter_t fn_data::codegen(
2438+ CompilerCB*,
2439+ static_context* sctx,
2440+ const QueryLoc& loc,
2441+ std::vector<PlanIter_t>& argv,
2442+ expr& ann) const
2443+{
2444+ return new FnDataIterator(sctx, loc, argv);
2445+}
2446+
2447+PlanIter_t fn_base_uri::codegen(
2448+ CompilerCB*,
2449+ static_context* sctx,
2450+ const QueryLoc& loc,
2451+ std::vector<PlanIter_t>& argv,
2452+ expr& ann) const
2453+{
2454+ return new BaseUriIterator(sctx, loc, argv);
2455+}
2456+
2457+PlanIter_t fn_document_uri_3_0::codegen(
2458+ CompilerCB*,
2459+ static_context* sctx,
2460+ const QueryLoc& loc,
2461+ std::vector<PlanIter_t>& argv,
2462+ expr& ann) const
2463+{
2464+ return new DocumentUriIterator(sctx, loc, argv);
2465+}
2466+PlanIter_t fn_document_uri::codegen(
2467+ CompilerCB*,
2468+ static_context* sctx,
2469+ const QueryLoc& loc,
2470+ std::vector<PlanIter_t>& argv,
2471+ expr& ann) const
2472+{
2473+ return new DocumentUriIterator(sctx, loc, argv);
2474+}
2475+
2476+PlanIter_t fn_root::codegen(
2477+ CompilerCB*,
2478+ static_context* sctx,
2479+ const QueryLoc& loc,
2480+ std::vector<PlanIter_t>& argv,
2481+ expr& ann) const
2482+{
2483+ return new RootIterator(sctx, loc, argv);
2484+}
2485+
2486+void populate_context_accessors(static_context* sctx)
2487+{
2488+ {
2489+
2490+
2491+ DECL_WITH_KIND(sctx, fn_node_name_3_0,
2492+ (createQName("http://www.w3.org/2005/xpath-functions","","node-name"),
2493+ GENV_TYPESYSTEM.QNAME_TYPE_QUESTION),
2494+ FunctionConsts::FN_NODE_NAME_0);
2495+
2496+ }
2497+
2498+
2499+ {
2500+
2501+
2502+ DECL_WITH_KIND(sctx, fn_node_name,
2503+ (createQName("http://www.w3.org/2005/xpath-functions","","node-name"),
2504+ GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
2505+ GENV_TYPESYSTEM.QNAME_TYPE_QUESTION),
2506+ FunctionConsts::FN_NODE_NAME_1);
2507+
2508+ }
2509+
2510+
2511+ {
2512+
2513+
2514+ DECL_WITH_KIND(sctx, fn_nilled,
2515+ (createQName("http://www.w3.org/2005/xpath-functions","","nilled"),
2516+ GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
2517+ GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
2518+ FunctionConsts::FN_NILLED_1);
2519+
2520+ }
2521+
2522+
2523+ {
2524+
2525+
2526+ DECL_WITH_KIND(sctx, fn_string,
2527+ (createQName("http://www.w3.org/2005/xpath-functions","","string"),
2528+ GENV_TYPESYSTEM.STRING_TYPE_ONE),
2529+ FunctionConsts::FN_STRING_0);
2530+
2531+ }
2532+
2533+
2534+ {
2535+
2536+
2537+ DECL_WITH_KIND(sctx, fn_string,
2538+ (createQName("http://www.w3.org/2005/xpath-functions","","string"),
2539+ GENV_TYPESYSTEM.ITEM_TYPE_QUESTION,
2540+ GENV_TYPESYSTEM.STRING_TYPE_ONE),
2541+ FunctionConsts::FN_STRING_1);
2542+
2543+ }
2544+
2545+
2546+ {
2547+
2548+
2549+ DECL_WITH_KIND(sctx, fn_data,
2550+ (createQName("http://www.w3.org/2005/xpath-functions","","data"),
2551+ GENV_TYPESYSTEM.ITEM_TYPE_STAR,
2552+ GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR),
2553+ FunctionConsts::FN_DATA_1);
2554+
2555+ }
2556+
2557+
2558+ {
2559+
2560+
2561+ DECL_WITH_KIND(sctx, fn_base_uri,
2562+ (createQName("http://www.w3.org/2005/xpath-functions","","base-uri"),
2563+ GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
2564+ FunctionConsts::FN_BASE_URI_0);
2565+
2566+ }
2567+
2568+
2569+ {
2570+
2571+
2572+ DECL_WITH_KIND(sctx, fn_base_uri,
2573+ (createQName("http://www.w3.org/2005/xpath-functions","","base-uri"),
2574+ GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
2575+ GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
2576+ FunctionConsts::FN_BASE_URI_1);
2577+
2578+ }
2579+
2580+
2581+ {
2582+
2583+
2584+ DECL_WITH_KIND(sctx, fn_document_uri_3_0,
2585+ (createQName("http://www.w3.org/2005/xpath-functions","","document-uri"),
2586+ GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
2587+ FunctionConsts::FN_DOCUMENT_URI_0);
2588+
2589+ }
2590+
2591+
2592+ {
2593+
2594+
2595+ DECL_WITH_KIND(sctx, fn_document_uri,
2596+ (createQName("http://www.w3.org/2005/xpath-functions","","document-uri"),
2597+ GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
2598+ GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
2599+ FunctionConsts::FN_DOCUMENT_URI_1);
2600+
2601+ }
2602+
2603+
2604+ {
2605+
2606+
2607+ DECL_WITH_KIND(sctx, fn_root,
2608+ (createQName("http://www.w3.org/2005/xpath-functions","","root"),
2609+ GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION),
2610+ FunctionConsts::FN_ROOT_0);
2611+
2612+ }
2613+
2614+
2615+ {
2616+
2617+
2618+ DECL_WITH_KIND(sctx, fn_root,
2619+ (createQName("http://www.w3.org/2005/xpath-functions","","root"),
2620+ GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
2621+ GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION),
2622+ FunctionConsts::FN_ROOT_1);
2623+
2624+ }
2625+
2626+}
2627+
2628+
2629+}
2630+
2631+
2632+
2633
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 @@
2638-/*
2639- * Copyright 2006-2008 The FLWOR Foundation.
2640- *
2641- * Licensed under the Apache License, Version 2.0 (the "License");
2642- * you may not use this file except in compliance with the License.
2643- * You may obtain a copy of the License at
2644- *
2645- * http://www.apache.org/licenses/LICENSE-2.0
2646- *
2647- * Unless required by applicable law or agreed to in writing, software
2648- * distributed under the License is distributed on an "AS IS" BASIS,
2649- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2650- * See the License for the specific language governing permissions and
2651- * limitations under the License.
2652- */
2653-
2654-// ******************************************
2655-// * *
2656-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
2657-// * SEE .xml FILE WITH SAME NAME *
2658-// * *
2659-// ******************************************
2660-
2661-
2662-#ifndef ZORBA_FUNCTIONS_ACCESSORS_H
2663-#define ZORBA_FUNCTIONS_ACCESSORS_H
2664-
2665-
2666-#include "common/shared_types.h"
2667-#include "functions/function_impl.h"
2668-
2669-
2670-namespace zorba {
2671-
2672-
2673-void populate_context_accessors(static_context* sctx);
2674-
2675-
2676-
2677-
2678-//fn:node-name
2679-class fn_node_name_3_0 : public function
2680-{
2681-public:
2682- fn_node_name_3_0(const signature& sig, FunctionConsts::FunctionKind kind)
2683- :
2684- function(sig, kind)
2685- {
2686-theXQueryVersion = StaticContextConsts::xquery_version_3_0;
2687- }
2688-
2689- bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
2690-
2691- CODEGEN_DECL();
2692-};
2693-
2694-//fn:node-name
2695-class fn_node_name : public function
2696-{
2697-public:
2698- fn_node_name(const signature& sig, FunctionConsts::FunctionKind kind)
2699- :
2700- function(sig, kind)
2701- {
2702-
2703- }
2704-
2705- bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
2706-
2707- CODEGEN_DECL();
2708-};
2709-
2710-
2711-//fn:nilled
2712-class fn_nilled : public function
2713-{
2714-public:
2715- fn_nilled(const signature& sig, FunctionConsts::FunctionKind kind)
2716- :
2717- function(sig, kind)
2718- {
2719-
2720- }
2721-
2722- bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
2723-
2724- CODEGEN_DECL();
2725-};
2726-
2727-
2728-//fn:string
2729-class fn_string : public function
2730-{
2731-public:
2732- fn_string(const signature& sig, FunctionConsts::FunctionKind kind)
2733- :
2734- function(sig, kind)
2735- {
2736-
2737- }
2738-
2739- bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
2740-
2741- CODEGEN_DECL();
2742-};
2743-
2744-
2745-//fn:data
2746-class fn_data : public function
2747-{
2748-public:
2749- fn_data(const signature& sig, FunctionConsts::FunctionKind kind)
2750- :
2751- function(sig, kind)
2752- {
2753-
2754- }
2755-
2756- xqtref_t getReturnType(const fo_expr* caller) const;
2757-
2758- bool isMap(ulong producer) const { return producer == 0; }
2759-
2760- BoolAnnotationValue ignoresSortedNodes(expr* fo, csize producer) const;
2761-
2762- BoolAnnotationValue ignoresDuplicateNodes(expr* fo, csize producer) const;
2763-
2764- bool mustCopyInputNodes(expr* fo, csize producer) const;
2765-
2766- CODEGEN_DECL();
2767-};
2768-
2769-
2770-//fn:base-uri
2771-class fn_base_uri : public function
2772-{
2773-public:
2774- fn_base_uri(const signature& sig, FunctionConsts::FunctionKind kind)
2775- :
2776- function(sig, kind)
2777- {
2778-
2779- }
2780-
2781- bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
2782-
2783- CODEGEN_DECL();
2784-};
2785-
2786-
2787-//fn:document-uri
2788-class fn_document_uri_3_0 : public function
2789-{
2790-public:
2791- fn_document_uri_3_0(const signature& sig, FunctionConsts::FunctionKind kind)
2792- :
2793- function(sig, kind)
2794- {
2795-theXQueryVersion = StaticContextConsts::xquery_version_3_0;
2796- }
2797-
2798- bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
2799-
2800- CODEGEN_DECL();
2801-};
2802-
2803-//fn:document-uri
2804-class fn_document_uri : public function
2805-{
2806-public:
2807- fn_document_uri(const signature& sig, FunctionConsts::FunctionKind kind)
2808- :
2809- function(sig, kind)
2810- {
2811-
2812- }
2813-
2814- bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
2815-
2816- CODEGEN_DECL();
2817-};
2818-
2819-
2820-//fn:root
2821-class fn_root : public function
2822-{
2823-public:
2824- fn_root(const signature& sig, FunctionConsts::FunctionKind kind)
2825- :
2826- function(sig, kind)
2827- {
2828-
2829- }
2830-
2831- bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
2832-
2833- CODEGEN_DECL();
2834-};
2835-
2836-
2837-} //namespace zorba
2838-
2839-
2840-#endif
2841-/*
2842- * Local variables:
2843- * mode: c++
2844- * End:
2845- */
2846+/*
2847+ * Copyright 2006-2008 The FLWOR Foundation.
2848+ *
2849+ * Licensed under the Apache License, Version 2.0 (the "License");
2850+ * you may not use this file except in compliance with the License.
2851+ * You may obtain a copy of the License at
2852+ *
2853+ * http://www.apache.org/licenses/LICENSE-2.0
2854+ *
2855+ * Unless required by applicable law or agreed to in writing, software
2856+ * distributed under the License is distributed on an "AS IS" BASIS,
2857+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2858+ * See the License for the specific language governing permissions and
2859+ * limitations under the License.
2860+ */
2861+
2862+// ******************************************
2863+// * *
2864+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
2865+// * SEE .xml FILE WITH SAME NAME *
2866+// * *
2867+// ******************************************
2868+
2869+
2870+#ifndef ZORBA_FUNCTIONS_ACCESSORS_H
2871+#define ZORBA_FUNCTIONS_ACCESSORS_H
2872+
2873+
2874+#include "common/shared_types.h"
2875+#include "functions/function_impl.h"
2876+
2877+
2878+namespace zorba {
2879+
2880+
2881+void populate_context_accessors(static_context* sctx);
2882+
2883+
2884+
2885+
2886+//fn:node-name
2887+class fn_node_name_3_0 : public function
2888+{
2889+public:
2890+ fn_node_name_3_0(const signature& sig, FunctionConsts::FunctionKind kind)
2891+ :
2892+ function(sig, kind)
2893+ {
2894+theXQueryVersion = StaticContextConsts::xquery_version_3_0;
2895+ }
2896+
2897+ bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
2898+
2899+ CODEGEN_DECL();
2900+};
2901+
2902+//fn:node-name
2903+class fn_node_name : public function
2904+{
2905+public:
2906+ fn_node_name(const signature& sig, FunctionConsts::FunctionKind kind)
2907+ :
2908+ function(sig, kind)
2909+ {
2910+
2911+ }
2912+
2913+ bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
2914+
2915+ CODEGEN_DECL();
2916+};
2917+
2918+
2919+//fn:nilled
2920+class fn_nilled : public function
2921+{
2922+public:
2923+ fn_nilled(const signature& sig, FunctionConsts::FunctionKind kind)
2924+ :
2925+ function(sig, kind)
2926+ {
2927+
2928+ }
2929+
2930+ bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
2931+
2932+ CODEGEN_DECL();
2933+};
2934+
2935+
2936+//fn:string
2937+class fn_string : public function
2938+{
2939+public:
2940+ fn_string(const signature& sig, FunctionConsts::FunctionKind kind)
2941+ :
2942+ function(sig, kind)
2943+ {
2944+
2945+ }
2946+
2947+ bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
2948+
2949+ CODEGEN_DECL();
2950+};
2951+
2952+
2953+//fn:data
2954+class fn_data : public function
2955+{
2956+public:
2957+ fn_data(const signature& sig, FunctionConsts::FunctionKind kind)
2958+ :
2959+ function(sig, kind)
2960+ {
2961+
2962+ }
2963+
2964+ xqtref_t getReturnType(const fo_expr* caller) const;
2965+
2966+ bool isMap(ulong producer) const { return producer == 0; }
2967+
2968+ BoolAnnotationValue ignoresSortedNodes(expr* fo, csize producer) const;
2969+
2970+ BoolAnnotationValue ignoresDuplicateNodes(expr* fo, csize producer) const;
2971+
2972+ bool mustCopyInputNodes(expr* fo, csize producer) const;
2973+
2974+ CODEGEN_DECL();
2975+};
2976+
2977+
2978+//fn:base-uri
2979+class fn_base_uri : public function
2980+{
2981+public:
2982+ fn_base_uri(const signature& sig, FunctionConsts::FunctionKind kind)
2983+ :
2984+ function(sig, kind)
2985+ {
2986+
2987+ }
2988+
2989+ bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
2990+
2991+ CODEGEN_DECL();
2992+};
2993+
2994+
2995+//fn:document-uri
2996+class fn_document_uri_3_0 : public function
2997+{
2998+public:
2999+ fn_document_uri_3_0(const signature& sig, FunctionConsts::FunctionKind kind)
3000+ :
3001+ function(sig, kind)
3002+ {
3003+theXQueryVersion = StaticContextConsts::xquery_version_3_0;
3004+ }
3005+
3006+ bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
3007+
3008+ CODEGEN_DECL();
3009+};
3010+
3011+//fn:document-uri
3012+class fn_document_uri : public function
3013+{
3014+public:
3015+ fn_document_uri(const signature& sig, FunctionConsts::FunctionKind kind)
3016+ :
3017+ function(sig, kind)
3018+ {
3019+
3020+ }
3021+
3022+ bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
3023+
3024+ CODEGEN_DECL();
3025+};
3026+
3027+
3028+//fn:root
3029+class fn_root : public function
3030+{
3031+public:
3032+ fn_root(const signature& sig, FunctionConsts::FunctionKind kind)
3033+ :
3034+ function(sig, kind)
3035+ {
3036+
3037+ }
3038+
3039+ bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
3040+
3041+ CODEGEN_DECL();
3042+};
3043+
3044+
3045+} //namespace zorba
3046+
3047+
3048+#endif
3049+/*
3050+ * Local variables:
3051+ * mode: c++
3052+ * End:
3053+ */
3054
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 @@
3059-/*
3060- * Copyright 2006-2008 The FLWOR Foundation.
3061- *
3062- * Licensed under the Apache License, Version 2.0 (the "License");
3063- * you may not use this file except in compliance with the License.
3064- * You may obtain a copy of the License at
3065- *
3066- * http://www.apache.org/licenses/LICENSE-2.0
3067- *
3068- * Unless required by applicable law or agreed to in writing, software
3069- * distributed under the License is distributed on an "AS IS" BASIS,
3070- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3071- * See the License for the specific language governing permissions and
3072- * limitations under the License.
3073- */
3074-
3075-// ******************************************
3076-// * *
3077-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
3078-// * SEE .xml FILE WITH SAME NAME *
3079-// * *
3080-// ******************************************
3081-
3082-
3083-#include "stdafx.h"
3084-#include "runtime/any_uri/any_uri.h"
3085-#include "functions/func_any_uri.h"
3086-
3087-
3088-namespace zorba{
3089-
3090-
3091-
3092-PlanIter_t fn_resolve_uri::codegen(
3093- CompilerCB*,
3094- static_context* sctx,
3095- const QueryLoc& loc,
3096- std::vector<PlanIter_t>& argv,
3097- expr& ann) const
3098-{
3099- return new ResolveUriIterator(sctx, loc, argv);
3100-}
3101-
3102-void populate_context_any_uri(static_context* sctx)
3103-{
3104- {
3105-
3106-
3107- DECL_WITH_KIND(sctx, fn_resolve_uri,
3108- (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri"),
3109- GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
3110- GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
3111- FunctionConsts::FN_RESOLVE_URI_1);
3112-
3113- }
3114-
3115-
3116- {
3117-
3118-
3119- DECL_WITH_KIND(sctx, fn_resolve_uri,
3120- (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri"),
3121- GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
3122- GENV_TYPESYSTEM.STRING_TYPE_ONE,
3123- GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
3124- FunctionConsts::FN_RESOLVE_URI_2);
3125-
3126- }
3127-
3128-}
3129-
3130-
3131-}
3132-
3133-
3134-
3135+/*
3136+ * Copyright 2006-2008 The FLWOR Foundation.
3137+ *
3138+ * Licensed under the Apache License, Version 2.0 (the "License");
3139+ * you may not use this file except in compliance with the License.
3140+ * You may obtain a copy of the License at
3141+ *
3142+ * http://www.apache.org/licenses/LICENSE-2.0
3143+ *
3144+ * Unless required by applicable law or agreed to in writing, software
3145+ * distributed under the License is distributed on an "AS IS" BASIS,
3146+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3147+ * See the License for the specific language governing permissions and
3148+ * limitations under the License.
3149+ */
3150+
3151+// ******************************************
3152+// * *
3153+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
3154+// * SEE .xml FILE WITH SAME NAME *
3155+// * *
3156+// ******************************************
3157+
3158+
3159+#include "stdafx.h"
3160+#include "runtime/any_uri/any_uri.h"
3161+#include "functions/func_any_uri.h"
3162+
3163+
3164+namespace zorba{
3165+
3166+
3167+
3168+PlanIter_t fn_resolve_uri::codegen(
3169+ CompilerCB*,
3170+ static_context* sctx,
3171+ const QueryLoc& loc,
3172+ std::vector<PlanIter_t>& argv,
3173+ expr& ann) const
3174+{
3175+ return new ResolveUriIterator(sctx, loc, argv);
3176+}
3177+
3178+void populate_context_any_uri(static_context* sctx)
3179+{
3180+ {
3181+
3182+
3183+ DECL_WITH_KIND(sctx, fn_resolve_uri,
3184+ (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri"),
3185+ GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
3186+ GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
3187+ FunctionConsts::FN_RESOLVE_URI_1);
3188+
3189+ }
3190+
3191+
3192+ {
3193+
3194+
3195+ DECL_WITH_KIND(sctx, fn_resolve_uri,
3196+ (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri"),
3197+ GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
3198+ GENV_TYPESYSTEM.STRING_TYPE_ONE,
3199+ GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
3200+ FunctionConsts::FN_RESOLVE_URI_2);
3201+
3202+ }
3203+
3204+}
3205+
3206+
3207+}
3208+
3209+
3210+
3211
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 @@
3216-/*
3217- * Copyright 2006-2008 The FLWOR Foundation.
3218- *
3219- * Licensed under the Apache License, Version 2.0 (the "License");
3220- * you may not use this file except in compliance with the License.
3221- * You may obtain a copy of the License at
3222- *
3223- * http://www.apache.org/licenses/LICENSE-2.0
3224- *
3225- * Unless required by applicable law or agreed to in writing, software
3226- * distributed under the License is distributed on an "AS IS" BASIS,
3227- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3228- * See the License for the specific language governing permissions and
3229- * limitations under the License.
3230- */
3231-
3232-// ******************************************
3233-// * *
3234-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
3235-// * SEE .xml FILE WITH SAME NAME *
3236-// * *
3237-// ******************************************
3238-
3239-
3240-#ifndef ZORBA_FUNCTIONS_ANY_URI_H
3241-#define ZORBA_FUNCTIONS_ANY_URI_H
3242-
3243-
3244-#include "common/shared_types.h"
3245-#include "functions/function_impl.h"
3246-
3247-
3248-namespace zorba {
3249-
3250-
3251-void populate_context_any_uri(static_context* sctx);
3252-
3253-
3254-
3255-
3256-//fn:resolve-uri
3257-class fn_resolve_uri : public function
3258-{
3259-public:
3260- fn_resolve_uri(const signature& sig, FunctionConsts::FunctionKind kind)
3261- :
3262- function(sig, kind)
3263- {
3264-
3265- }
3266-
3267- bool accessesDynCtx() const { return true; }
3268-
3269- CODEGEN_DECL();
3270-};
3271-
3272-
3273-} //namespace zorba
3274-
3275-
3276-#endif
3277-/*
3278- * Local variables:
3279- * mode: c++
3280- * End:
3281- */
3282+/*
3283+ * Copyright 2006-2008 The FLWOR Foundation.
3284+ *
3285+ * Licensed under the Apache License, Version 2.0 (the "License");
3286+ * you may not use this file except in compliance with the License.
3287+ * You may obtain a copy of the License at
3288+ *
3289+ * http://www.apache.org/licenses/LICENSE-2.0
3290+ *
3291+ * Unless required by applicable law or agreed to in writing, software
3292+ * distributed under the License is distributed on an "AS IS" BASIS,
3293+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3294+ * See the License for the specific language governing permissions and
3295+ * limitations under the License.
3296+ */
3297+
3298+// ******************************************
3299+// * *
3300+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
3301+// * SEE .xml FILE WITH SAME NAME *
3302+// * *
3303+// ******************************************
3304+
3305+
3306+#ifndef ZORBA_FUNCTIONS_ANY_URI_H
3307+#define ZORBA_FUNCTIONS_ANY_URI_H
3308+
3309+
3310+#include "common/shared_types.h"
3311+#include "functions/function_impl.h"
3312+
3313+
3314+namespace zorba {
3315+
3316+
3317+void populate_context_any_uri(static_context* sctx);
3318+
3319+
3320+
3321+
3322+//fn:resolve-uri
3323+class fn_resolve_uri : public function
3324+{
3325+public:
3326+ fn_resolve_uri(const signature& sig, FunctionConsts::FunctionKind kind)
3327+ :
3328+ function(sig, kind)
3329+ {
3330+
3331+ }
3332+
3333+ bool accessesDynCtx() const { return true; }
3334+
3335+ CODEGEN_DECL();
3336+};
3337+
3338+
3339+} //namespace zorba
3340+
3341+
3342+#endif
3343+/*
3344+ * Local variables:
3345+ * mode: c++
3346+ * End:
3347+ */
3348
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 @@
3353-/*
3354- * Copyright 2006-2008 The FLWOR Foundation.
3355- *
3356- * Licensed under the Apache License, Version 2.0 (the "License");
3357- * you may not use this file except in compliance with the License.
3358- * You may obtain a copy of the License at
3359- *
3360- * http://www.apache.org/licenses/LICENSE-2.0
3361- *
3362- * Unless required by applicable law or agreed to in writing, software
3363- * distributed under the License is distributed on an "AS IS" BASIS,
3364- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3365- * See the License for the specific language governing permissions and
3366- * limitations under the License.
3367- */
3368-
3369-// ******************************************
3370-// * *
3371-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
3372-// * SEE .xml FILE WITH SAME NAME *
3373-// * *
3374-// ******************************************
3375-
3376-
3377-#include "stdafx.h"
3378-#include "runtime/base64/base64.h"
3379-#include "functions/func_base64.h"
3380-
3381-
3382-namespace zorba{
3383-
3384-
3385-
3386-PlanIter_t fn_zorba_base64_decode::codegen(
3387- CompilerCB*,
3388- static_context* sctx,
3389- const QueryLoc& loc,
3390- std::vector<PlanIter_t>& argv,
3391- expr& ann) const
3392-{
3393- return new Base64DecodeIterator(sctx, loc, argv);
3394-}
3395-
3396-PlanIter_t fn_zorba_base64_encode::codegen(
3397- CompilerCB*,
3398- static_context* sctx,
3399- const QueryLoc& loc,
3400- std::vector<PlanIter_t>& argv,
3401- expr& ann) const
3402-{
3403- return new Base64EncodeIterator(sctx, loc, argv);
3404-}
3405-
3406-void populate_context_base64(static_context* sctx)
3407-{
3408- {
3409-
3410-
3411- DECL_WITH_KIND(sctx, fn_zorba_base64_decode,
3412- (createQName("http://www.zorba-xquery.com/modules/converters/base64","","decode"),
3413- GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE,
3414- GENV_TYPESYSTEM.STRING_TYPE_ONE),
3415- FunctionConsts::FN_ZORBA_BASE64_DECODE_1);
3416-
3417- }
3418-
3419-
3420- {
3421-
3422-
3423- DECL_WITH_KIND(sctx, fn_zorba_base64_encode,
3424- (createQName("http://www.zorba-xquery.com/modules/converters/base64","","encode"),
3425- GENV_TYPESYSTEM.STRING_TYPE_ONE,
3426- GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE),
3427- FunctionConsts::FN_ZORBA_BASE64_ENCODE_1);
3428-
3429- }
3430-
3431-}
3432-
3433-
3434-}
3435-
3436-
3437-
3438+/*
3439+ * Copyright 2006-2008 The FLWOR Foundation.
3440+ *
3441+ * Licensed under the Apache License, Version 2.0 (the "License");
3442+ * you may not use this file except in compliance with the License.
3443+ * You may obtain a copy of the License at
3444+ *
3445+ * http://www.apache.org/licenses/LICENSE-2.0
3446+ *
3447+ * Unless required by applicable law or agreed to in writing, software
3448+ * distributed under the License is distributed on an "AS IS" BASIS,
3449+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3450+ * See the License for the specific language governing permissions and
3451+ * limitations under the License.
3452+ */
3453+
3454+// ******************************************
3455+// * *
3456+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
3457+// * SEE .xml FILE WITH SAME NAME *
3458+// * *
3459+// ******************************************
3460+
3461+
3462+#include "stdafx.h"
3463+#include "runtime/base64/base64.h"
3464+#include "functions/func_base64.h"
3465+
3466+
3467+namespace zorba{
3468+
3469+
3470+
3471+PlanIter_t fn_zorba_base64_decode::codegen(
3472+ CompilerCB*,
3473+ static_context* sctx,
3474+ const QueryLoc& loc,
3475+ std::vector<PlanIter_t>& argv,
3476+ expr& ann) const
3477+{
3478+ return new Base64DecodeIterator(sctx, loc, argv);
3479+}
3480+
3481+PlanIter_t fn_zorba_base64_encode::codegen(
3482+ CompilerCB*,
3483+ static_context* sctx,
3484+ const QueryLoc& loc,
3485+ std::vector<PlanIter_t>& argv,
3486+ expr& ann) const
3487+{
3488+ return new Base64EncodeIterator(sctx, loc, argv);
3489+}
3490+
3491+void populate_context_base64(static_context* sctx)
3492+{
3493+ {
3494+
3495+
3496+ DECL_WITH_KIND(sctx, fn_zorba_base64_decode,
3497+ (createQName("http://www.zorba-xquery.com/modules/converters/base64","","decode"),
3498+ GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE,
3499+ GENV_TYPESYSTEM.STRING_TYPE_ONE),
3500+ FunctionConsts::FN_ZORBA_BASE64_DECODE_1);
3501+
3502+ }
3503+
3504+
3505+ {
3506+
3507+
3508+ DECL_WITH_KIND(sctx, fn_zorba_base64_encode,
3509+ (createQName("http://www.zorba-xquery.com/modules/converters/base64","","encode"),
3510+ GENV_TYPESYSTEM.STRING_TYPE_ONE,
3511+ GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE),
3512+ FunctionConsts::FN_ZORBA_BASE64_ENCODE_1);
3513+
3514+ }
3515+
3516+}
3517+
3518+
3519+}
3520+
3521+
3522+
3523
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 @@
3528-/*
3529- * Copyright 2006-2008 The FLWOR Foundation.
3530- *
3531- * Licensed under the Apache License, Version 2.0 (the "License");
3532- * you may not use this file except in compliance with the License.
3533- * You may obtain a copy of the License at
3534- *
3535- * http://www.apache.org/licenses/LICENSE-2.0
3536- *
3537- * Unless required by applicable law or agreed to in writing, software
3538- * distributed under the License is distributed on an "AS IS" BASIS,
3539- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3540- * See the License for the specific language governing permissions and
3541- * limitations under the License.
3542- */
3543-
3544-// ******************************************
3545-// * *
3546-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
3547-// * SEE .xml FILE WITH SAME NAME *
3548-// * *
3549-// ******************************************
3550-
3551-
3552-#ifndef ZORBA_FUNCTIONS_BASE64_H
3553-#define ZORBA_FUNCTIONS_BASE64_H
3554-
3555-
3556-#include "common/shared_types.h"
3557-#include "functions/function_impl.h"
3558-
3559-
3560-namespace zorba {
3561-
3562-
3563-void populate_context_base64(static_context* sctx);
3564-
3565-
3566-
3567-
3568-//fn-zorba-base64:decode
3569-class fn_zorba_base64_decode : public function
3570-{
3571-public:
3572- fn_zorba_base64_decode(const signature& sig, FunctionConsts::FunctionKind kind)
3573- :
3574- function(sig, kind)
3575- {
3576-
3577- }
3578-
3579- CODEGEN_DECL();
3580-};
3581-
3582-
3583-//fn-zorba-base64:encode
3584-class fn_zorba_base64_encode : public function
3585-{
3586-public:
3587- fn_zorba_base64_encode(const signature& sig, FunctionConsts::FunctionKind kind)
3588- :
3589- function(sig, kind)
3590- {
3591-
3592- }
3593-
3594- CODEGEN_DECL();
3595-};
3596-
3597-
3598-} //namespace zorba
3599-
3600-
3601-#endif
3602-/*
3603- * Local variables:
3604- * mode: c++
3605- * End:
3606- */
3607+/*
3608+ * Copyright 2006-2008 The FLWOR Foundation.
3609+ *
3610+ * Licensed under the Apache License, Version 2.0 (the "License");
3611+ * you may not use this file except in compliance with the License.
3612+ * You may obtain a copy of the License at
3613+ *
3614+ * http://www.apache.org/licenses/LICENSE-2.0
3615+ *
3616+ * Unless required by applicable law or agreed to in writing, software
3617+ * distributed under the License is distributed on an "AS IS" BASIS,
3618+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3619+ * See the License for the specific language governing permissions and
3620+ * limitations under the License.
3621+ */
3622+
3623+// ******************************************
3624+// * *
3625+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
3626+// * SEE .xml FILE WITH SAME NAME *
3627+// * *
3628+// ******************************************
3629+
3630+
3631+#ifndef ZORBA_FUNCTIONS_BASE64_H
3632+#define ZORBA_FUNCTIONS_BASE64_H
3633+
3634+
3635+#include "common/shared_types.h"
3636+#include "functions/function_impl.h"
3637+
3638+
3639+namespace zorba {
3640+
3641+
3642+void populate_context_base64(static_context* sctx);
3643+
3644+
3645+
3646+
3647+//fn-zorba-base64:decode
3648+class fn_zorba_base64_decode : public function
3649+{
3650+public:
3651+ fn_zorba_base64_decode(const signature& sig, FunctionConsts::FunctionKind kind)
3652+ :
3653+ function(sig, kind)
3654+ {
3655+
3656+ }
3657+
3658+ CODEGEN_DECL();
3659+};
3660+
3661+
3662+//fn-zorba-base64:encode
3663+class fn_zorba_base64_encode : public function
3664+{
3665+public:
3666+ fn_zorba_base64_encode(const signature& sig, FunctionConsts::FunctionKind kind)
3667+ :
3668+ function(sig, kind)
3669+ {
3670+
3671+ }
3672+
3673+ CODEGEN_DECL();
3674+};
3675+
3676+
3677+} //namespace zorba
3678+
3679+
3680+#endif
3681+/*
3682+ * Local variables:
3683+ * mode: c++
3684+ * End:
3685+ */
3686
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 @@
3691-/*
3692- * Copyright 2006-2008 The FLWOR Foundation.
3693- *
3694- * Licensed under the Apache License, Version 2.0 (the "License");
3695- * you may not use this file except in compliance with the License.
3696- * You may obtain a copy of the License at
3697- *
3698- * http://www.apache.org/licenses/LICENSE-2.0
3699- *
3700- * Unless required by applicable law or agreed to in writing, software
3701- * distributed under the License is distributed on an "AS IS" BASIS,
3702- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3703- * See the License for the specific language governing permissions and
3704- * limitations under the License.
3705- */
3706-
3707-// ******************************************
3708-// * *
3709-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
3710-// * SEE .xml FILE WITH SAME NAME *
3711-// * *
3712-// ******************************************
3713-
3714-
3715-#include "stdafx.h"
3716-#include "runtime/booleans/booleans.h"
3717-#include "functions/func_booleans.h"
3718-
3719-
3720-namespace zorba{
3721-
3722-
3723-
3724-PlanIter_t op_is_same_node::codegen(
3725- CompilerCB*,
3726- static_context* sctx,
3727- const QueryLoc& loc,
3728- std::vector<PlanIter_t>& argv,
3729- expr& ann) const
3730-{
3731- return new IsSameNodeIterator(sctx, loc, argv);
3732-}
3733-
3734-PlanIter_t op_node_before::codegen(
3735- CompilerCB*,
3736- static_context* sctx,
3737- const QueryLoc& loc,
3738- std::vector<PlanIter_t>& argv,
3739- expr& ann) const
3740-{
3741- return new NodeBeforeIterator(sctx, loc, argv);
3742-}
3743-
3744-PlanIter_t op_node_after::codegen(
3745- CompilerCB*,
3746- static_context* sctx,
3747- const QueryLoc& loc,
3748- std::vector<PlanIter_t>& argv,
3749- expr& ann) const
3750-{
3751- return new NodeAfterIterator(sctx, loc, argv);
3752-}
3753-
3754-void populate_context_booleans(static_context* sctx)
3755-{
3756- {
3757-
3758-
3759- DECL_WITH_KIND(sctx, op_is_same_node,
3760- (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","is-same-node"),
3761- GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
3762- GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
3763- GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
3764- FunctionConsts::OP_IS_SAME_NODE_2);
3765-
3766- }
3767-
3768-
3769- {
3770-
3771-
3772- DECL_WITH_KIND(sctx, op_node_before,
3773- (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-before"),
3774- GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
3775- GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
3776- GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
3777- FunctionConsts::OP_NODE_BEFORE_2);
3778-
3779- }
3780-
3781-
3782- {
3783-
3784-
3785- DECL_WITH_KIND(sctx, op_node_after,
3786- (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-after"),
3787- GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
3788- GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
3789- GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
3790- FunctionConsts::OP_NODE_AFTER_2);
3791-
3792- }
3793-
3794-}
3795-
3796-
3797-}
3798-
3799-
3800-
3801+/*
3802+ * Copyright 2006-2008 The FLWOR Foundation.
3803+ *
3804+ * Licensed under the Apache License, Version 2.0 (the "License");
3805+ * you may not use this file except in compliance with the License.
3806+ * You may obtain a copy of the License at
3807+ *
3808+ * http://www.apache.org/licenses/LICENSE-2.0
3809+ *
3810+ * Unless required by applicable law or agreed to in writing, software
3811+ * distributed under the License is distributed on an "AS IS" BASIS,
3812+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3813+ * See the License for the specific language governing permissions and
3814+ * limitations under the License.
3815+ */
3816+
3817+// ******************************************
3818+// * *
3819+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
3820+// * SEE .xml FILE WITH SAME NAME *
3821+// * *
3822+// ******************************************
3823+
3824+
3825+#include "stdafx.h"
3826+#include "runtime/booleans/booleans.h"
3827+#include "functions/func_booleans.h"
3828+
3829+
3830+namespace zorba{
3831+
3832+
3833+
3834+PlanIter_t op_is_same_node::codegen(
3835+ CompilerCB*,
3836+ static_context* sctx,
3837+ const QueryLoc& loc,
3838+ std::vector<PlanIter_t>& argv,
3839+ expr& ann) const
3840+{
3841+ return new IsSameNodeIterator(sctx, loc, argv);
3842+}
3843+
3844+PlanIter_t op_node_before::codegen(
3845+ CompilerCB*,
3846+ static_context* sctx,
3847+ const QueryLoc& loc,
3848+ std::vector<PlanIter_t>& argv,
3849+ expr& ann) const
3850+{
3851+ return new NodeBeforeIterator(sctx, loc, argv);
3852+}
3853+
3854+PlanIter_t op_node_after::codegen(
3855+ CompilerCB*,
3856+ static_context* sctx,
3857+ const QueryLoc& loc,
3858+ std::vector<PlanIter_t>& argv,
3859+ expr& ann) const
3860+{
3861+ return new NodeAfterIterator(sctx, loc, argv);
3862+}
3863+
3864+void populate_context_booleans(static_context* sctx)
3865+{
3866+ {
3867+
3868+
3869+ DECL_WITH_KIND(sctx, op_is_same_node,
3870+ (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","is-same-node"),
3871+ GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
3872+ GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
3873+ GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
3874+ FunctionConsts::OP_IS_SAME_NODE_2);
3875+
3876+ }
3877+
3878+
3879+ {
3880+
3881+
3882+ DECL_WITH_KIND(sctx, op_node_before,
3883+ (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-before"),
3884+ GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
3885+ GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
3886+ GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
3887+ FunctionConsts::OP_NODE_BEFORE_2);
3888+
3889+ }
3890+
3891+
3892+ {
3893+
3894+
3895+ DECL_WITH_KIND(sctx, op_node_after,
3896+ (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-after"),
3897+ GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
3898+ GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
3899+ GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
3900+ FunctionConsts::OP_NODE_AFTER_2);
3901+
3902+ }
3903+
3904+}
3905+
3906+
3907+}
3908+
3909+
3910+
3911
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 @@
3916-/*
3917- * Copyright 2006-2008 The FLWOR Foundation.
3918- *
3919- * Licensed under the Apache License, Version 2.0 (the "License");
3920- * you may not use this file except in compliance with the License.
3921- * You may obtain a copy of the License at
3922- *
3923- * http://www.apache.org/licenses/LICENSE-2.0
3924- *
3925- * Unless required by applicable law or agreed to in writing, software
3926- * distributed under the License is distributed on an "AS IS" BASIS,
3927- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3928- * See the License for the specific language governing permissions and
3929- * limitations under the License.
3930- */
3931-
3932-// ******************************************
3933-// * *
3934-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
3935-// * SEE .xml FILE WITH SAME NAME *
3936-// * *
3937-// ******************************************
3938-
3939-
3940-#ifndef ZORBA_FUNCTIONS_BOOLEANS_H
3941-#define ZORBA_FUNCTIONS_BOOLEANS_H
3942-
3943-
3944-#include "common/shared_types.h"
3945-#include "functions/function_impl.h"
3946-
3947-
3948-namespace zorba {
3949-
3950-
3951-void populate_context_booleans(static_context* sctx);
3952-
3953-
3954-
3955-
3956-//op:is-same-node
3957-class op_is_same_node : public function
3958-{
3959-public:
3960- op_is_same_node(const signature& sig, FunctionConsts::FunctionKind kind)
3961- :
3962- function(sig, kind)
3963- {
3964-
3965- }
3966-
3967- bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
3968-
3969- CODEGEN_DECL();
3970-};
3971-
3972-
3973-//op:node-before
3974-class op_node_before : public function
3975-{
3976-public:
3977- op_node_before(const signature& sig, FunctionConsts::FunctionKind kind)
3978- :
3979- function(sig, kind)
3980- {
3981-
3982- }
3983-
3984- bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
3985-
3986- CODEGEN_DECL();
3987-};
3988-
3989-
3990-//op:node-after
3991-class op_node_after : public function
3992-{
3993-public:
3994- op_node_after(const signature& sig, FunctionConsts::FunctionKind kind)
3995- :
3996- function(sig, kind)
3997- {
3998-
3999- }
4000-
4001- bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
4002-
4003- CODEGEN_DECL();
4004-};
4005-
4006-
4007-} //namespace zorba
4008-
4009-
4010-#endif
4011-/*
4012- * Local variables:
4013- * mode: c++
4014- * End:
4015- */
4016+/*
4017+ * Copyright 2006-2008 The FLWOR Foundation.
4018+ *
4019+ * Licensed under the Apache License, Version 2.0 (the "License");
4020+ * you may not use this file except in compliance with the License.
4021+ * You may obtain a copy of the License at
4022+ *
4023+ * http://www.apache.org/licenses/LICENSE-2.0
4024+ *
4025+ * Unless required by applicable law or agreed to in writing, software
4026+ * distributed under the License is distributed on an "AS IS" BASIS,
4027+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4028+ * See the License for the specific language governing permissions and
4029+ * limitations under the License.
4030+ */
4031+
4032+// ******************************************
4033+// * *
4034+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
4035+// * SEE .xml FILE WITH SAME NAME *
4036+// * *
4037+// ******************************************
4038+
4039+
4040+#ifndef ZORBA_FUNCTIONS_BOOLEANS_H
4041+#define ZORBA_FUNCTIONS_BOOLEANS_H
4042+
4043+
4044+#include "common/shared_types.h"
4045+#include "functions/function_impl.h"
4046+
4047+
4048+namespace zorba {
4049+
4050+
4051+void populate_context_booleans(static_context* sctx);
4052+
4053+
4054+
4055+
4056+//op:is-same-node
4057+class op_is_same_node : public function
4058+{
4059+public:
4060+ op_is_same_node(const signature& sig, FunctionConsts::FunctionKind kind)
4061+ :
4062+ function(sig, kind)
4063+ {
4064+
4065+ }
4066+
4067+ bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
4068+
4069+ CODEGEN_DECL();
4070+};
4071+
4072+
4073+//op:node-before
4074+class op_node_before : public function
4075+{
4076+public:
4077+ op_node_before(const signature& sig, FunctionConsts::FunctionKind kind)
4078+ :
4079+ function(sig, kind)
4080+ {
4081+
4082+ }
4083+
4084+ bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
4085+
4086+ CODEGEN_DECL();
4087+};
4088+
4089+
4090+//op:node-after
4091+class op_node_after : public function
4092+{
4093+public:
4094+ op_node_after(const signature& sig, FunctionConsts::FunctionKind kind)
4095+ :
4096+ function(sig, kind)
4097+ {
4098+
4099+ }
4100+
4101+ bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
4102+
4103+ CODEGEN_DECL();
4104+};
4105+
4106+
4107+} //namespace zorba
4108+
4109+
4110+#endif
4111+/*
4112+ * Local variables:
4113+ * mode: c++
4114+ * End:
4115+ */
4116
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 return new DeclaredICsIterator(sctx, loc, argv);
4122 }
4123
4124+PlanIter_t fn_uri_collection::codegen(
4125+ CompilerCB*,
4126+ static_context* sctx,
4127+ const QueryLoc& loc,
4128+ std::vector<PlanIter_t>& argv,
4129+ expr& ann) const
4130+{
4131+ return new FnURICollectionIterator(sctx, loc, argv);
4132+}
4133+
4134 void populate_context_collections(static_context* sctx)
4135 {
4136 {
4137@@ -892,6 +902,29 @@
4138
4139 }
4140
4141+
4142+ {
4143+
4144+
4145+ DECL_WITH_KIND(sctx, fn_uri_collection,
4146+ (createQName("http://www.w3.org/2005/xpath-functions","","uri-collection"),
4147+ GENV_TYPESYSTEM.ANY_URI_TYPE_STAR),
4148+ FunctionConsts::FN_URI_COLLECTION_0);
4149+
4150+ }
4151+
4152+
4153+ {
4154+
4155+
4156+ DECL_WITH_KIND(sctx, fn_uri_collection,
4157+ (createQName("http://www.w3.org/2005/xpath-functions","","uri-collection"),
4158+ GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
4159+ GENV_TYPESYSTEM.ANY_URI_TYPE_STAR),
4160+ FunctionConsts::FN_URI_COLLECTION_1);
4161+
4162+ }
4163+
4164 }
4165
4166
4167
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 };
4173
4174
4175+//fn:uri-collection
4176+class fn_uri_collection : public function
4177+{
4178+public:
4179+ fn_uri_collection(const signature& sig, FunctionConsts::FunctionKind kind)
4180+ :
4181+ function(sig, kind)
4182+ {
4183+
4184+ }
4185+
4186+ CODEGEN_DECL();
4187+};
4188+
4189+
4190 } //namespace zorba
4191
4192
4193
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 @@
4198-/*
4199- * Copyright 2006-2008 The FLWOR Foundation.
4200- *
4201- * Licensed under the Apache License, Version 2.0 (the "License");
4202- * you may not use this file except in compliance with the License.
4203- * You may obtain a copy of the License at
4204- *
4205- * http://www.apache.org/licenses/LICENSE-2.0
4206- *
4207- * Unless required by applicable law or agreed to in writing, software
4208- * distributed under the License is distributed on an "AS IS" BASIS,
4209- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4210- * See the License for the specific language governing permissions and
4211- * limitations under the License.
4212- */
4213-
4214-// ******************************************
4215-// * *
4216-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
4217-// * SEE .xml FILE WITH SAME NAME *
4218-// * *
4219-// ******************************************
4220-
4221-
4222-#include "stdafx.h"
4223-#include "runtime/context/context.h"
4224-#include "functions/func_context.h"
4225-
4226-
4227-namespace zorba{
4228-
4229-
4230-
4231-PlanIter_t fn_current_dateTime::codegen(
4232- CompilerCB*,
4233- static_context* sctx,
4234- const QueryLoc& loc,
4235- std::vector<PlanIter_t>& argv,
4236- expr& ann) const
4237-{
4238- return new CurrentDateTimeIterator(sctx, loc, argv);
4239-}
4240-
4241-PlanIter_t fn_current_date::codegen(
4242- CompilerCB*,
4243- static_context* sctx,
4244- const QueryLoc& loc,
4245- std::vector<PlanIter_t>& argv,
4246- expr& ann) const
4247-{
4248- return new CurrentDateIterator(sctx, loc, argv);
4249-}
4250-
4251-PlanIter_t fn_current_time::codegen(
4252- CompilerCB*,
4253- static_context* sctx,
4254- const QueryLoc& loc,
4255- std::vector<PlanIter_t>& argv,
4256- expr& ann) const
4257-{
4258- return new CurrentTimeIterator(sctx, loc, argv);
4259-}
4260-
4261-PlanIter_t fn_implicit_timezone::codegen(
4262- CompilerCB*,
4263- static_context* sctx,
4264- const QueryLoc& loc,
4265- std::vector<PlanIter_t>& argv,
4266- expr& ann) const
4267-{
4268- return new ImplicitTimezoneIterator(sctx, loc, argv);
4269-}
4270-
4271-PlanIter_t fn_default_collation::codegen(
4272- CompilerCB*,
4273- static_context* sctx,
4274- const QueryLoc& loc,
4275- std::vector<PlanIter_t>& argv,
4276- expr& ann) const
4277-{
4278- return new DefaultCollationIterator(sctx, loc, argv);
4279-}
4280-
4281-PlanIter_t fn_position::codegen(
4282- CompilerCB*,
4283- static_context* sctx,
4284- const QueryLoc& loc,
4285- std::vector<PlanIter_t>& argv,
4286- expr& ann) const
4287-{
4288- return NULL;
4289-}
4290-
4291-PlanIter_t fn_last::codegen(
4292- CompilerCB*,
4293- static_context* sctx,
4294- const QueryLoc& loc,
4295- std::vector<PlanIter_t>& argv,
4296- expr& ann) const
4297-{
4298- return NULL;
4299-}
4300-
4301-PlanIter_t fn_static_base_uri::codegen(
4302- CompilerCB*,
4303- static_context* sctx,
4304- const QueryLoc& loc,
4305- std::vector<PlanIter_t>& argv,
4306- expr& ann) const
4307-{
4308- return NULL;
4309-}
4310-
4311-void populate_context_context(static_context* sctx)
4312-{
4313- {
4314-
4315-
4316- DECL_WITH_KIND(sctx, fn_current_dateTime,
4317- (createQName("http://www.w3.org/2005/xpath-functions","","current-dateTime"),
4318- GENV_TYPESYSTEM.DATETIME_TYPE_ONE),
4319- FunctionConsts::FN_CURRENT_DATETIME_0);
4320-
4321- }
4322-
4323-
4324- {
4325-
4326-
4327- DECL_WITH_KIND(sctx, fn_current_date,
4328- (createQName("http://www.w3.org/2005/xpath-functions","","current-date"),
4329- GENV_TYPESYSTEM.DATE_TYPE_ONE),
4330- FunctionConsts::FN_CURRENT_DATE_0);
4331-
4332- }
4333-
4334-
4335- {
4336-
4337-
4338- DECL_WITH_KIND(sctx, fn_current_time,
4339- (createQName("http://www.w3.org/2005/xpath-functions","","current-time"),
4340- GENV_TYPESYSTEM.TIME_TYPE_ONE),
4341- FunctionConsts::FN_CURRENT_TIME_0);
4342-
4343- }
4344-
4345-
4346- {
4347-
4348-
4349- DECL_WITH_KIND(sctx, fn_implicit_timezone,
4350- (createQName("http://www.w3.org/2005/xpath-functions","","implicit-timezone"),
4351- GENV_TYPESYSTEM.DT_DURATION_TYPE_ONE),
4352- FunctionConsts::FN_IMPLICIT_TIMEZONE_0);
4353-
4354- }
4355-
4356-
4357- {
4358-
4359-
4360- DECL_WITH_KIND(sctx, fn_default_collation,
4361- (createQName("http://www.w3.org/2005/xpath-functions","","default-collation"),
4362- GENV_TYPESYSTEM.STRING_TYPE_ONE),
4363- FunctionConsts::FN_DEFAULT_COLLATION_0);
4364-
4365- }
4366-
4367-
4368- {
4369-
4370-
4371- DECL_WITH_KIND(sctx, fn_position,
4372- (createQName("http://www.w3.org/2005/xpath-functions","","position"),
4373- GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
4374- FunctionConsts::FN_POSITION_0);
4375-
4376- }
4377-
4378-
4379- {
4380-
4381-
4382- DECL_WITH_KIND(sctx, fn_last,
4383- (createQName("http://www.w3.org/2005/xpath-functions","","last"),
4384- GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
4385- FunctionConsts::FN_LAST_0);
4386-
4387- }
4388-
4389-
4390- {
4391-
4392-
4393- DECL_WITH_KIND(sctx, fn_static_base_uri,
4394- (createQName("http://www.w3.org/2005/xpath-functions","","static-base-uri"),
4395- GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
4396- FunctionConsts::FN_STATIC_BASE_URI_0);
4397-
4398- }
4399-
4400-}
4401-
4402-
4403-}
4404-
4405-
4406-
4407+/*
4408+ * Copyright 2006-2008 The FLWOR Foundation.
4409+ *
4410+ * Licensed under the Apache License, Version 2.0 (the "License");
4411+ * you may not use this file except in compliance with the License.
4412+ * You may obtain a copy of the License at
4413+ *
4414+ * http://www.apache.org/licenses/LICENSE-2.0
4415+ *
4416+ * Unless required by applicable law or agreed to in writing, software
4417+ * distributed under the License is distributed on an "AS IS" BASIS,
4418+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4419+ * See the License for the specific language governing permissions and
4420+ * limitations under the License.
4421+ */
4422+
4423+// ******************************************
4424+// * *
4425+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
4426+// * SEE .xml FILE WITH SAME NAME *
4427+// * *
4428+// ******************************************
4429+
4430+
4431+#include "stdafx.h"
4432+#include "runtime/context/context.h"
4433+#include "functions/func_context.h"
4434+
4435+
4436+namespace zorba{
4437+
4438+
4439+
4440+PlanIter_t fn_current_dateTime::codegen(
4441+ CompilerCB*,
4442+ static_context* sctx,
4443+ const QueryLoc& loc,
4444+ std::vector<PlanIter_t>& argv,
4445+ expr& ann) const
4446+{
4447+ return new CurrentDateTimeIterator(sctx, loc, argv);
4448+}
4449+
4450+PlanIter_t fn_current_date::codegen(
4451+ CompilerCB*,
4452+ static_context* sctx,
4453+ const QueryLoc& loc,
4454+ std::vector<PlanIter_t>& argv,
4455+ expr& ann) const
4456+{
4457+ return new CurrentDateIterator(sctx, loc, argv);
4458+}
4459+
4460+PlanIter_t fn_current_time::codegen(
4461+ CompilerCB*,
4462+ static_context* sctx,
4463+ const QueryLoc& loc,
4464+ std::vector<PlanIter_t>& argv,
4465+ expr& ann) const
4466+{
4467+ return new CurrentTimeIterator(sctx, loc, argv);
4468+}
4469+
4470+PlanIter_t fn_implicit_timezone::codegen(
4471+ CompilerCB*,
4472+ static_context* sctx,
4473+ const QueryLoc& loc,
4474+ std::vector<PlanIter_t>& argv,
4475+ expr& ann) const
4476+{
4477+ return new ImplicitTimezoneIterator(sctx, loc, argv);
4478+}
4479+
4480+PlanIter_t fn_default_collation::codegen(
4481+ CompilerCB*,
4482+ static_context* sctx,
4483+ const QueryLoc& loc,
4484+ std::vector<PlanIter_t>& argv,
4485+ expr& ann) const
4486+{
4487+ return new DefaultCollationIterator(sctx, loc, argv);
4488+}
4489+
4490+PlanIter_t fn_position::codegen(
4491+ CompilerCB*,
4492+ static_context* sctx,
4493+ const QueryLoc& loc,
4494+ std::vector<PlanIter_t>& argv,
4495+ expr& ann) const
4496+{
4497+ return NULL;
4498+}
4499+
4500+PlanIter_t fn_last::codegen(
4501+ CompilerCB*,
4502+ static_context* sctx,
4503+ const QueryLoc& loc,
4504+ std::vector<PlanIter_t>& argv,
4505+ expr& ann) const
4506+{
4507+ return NULL;
4508+}
4509+
4510+PlanIter_t fn_static_base_uri::codegen(
4511+ CompilerCB*,
4512+ static_context* sctx,
4513+ const QueryLoc& loc,
4514+ std::vector<PlanIter_t>& argv,
4515+ expr& ann) const
4516+{
4517+ return NULL;
4518+}
4519+
4520+void populate_context_context(static_context* sctx)
4521+{
4522+ {
4523+
4524+
4525+ DECL_WITH_KIND(sctx, fn_current_dateTime,
4526+ (createQName("http://www.w3.org/2005/xpath-functions","","current-dateTime"),
4527+ GENV_TYPESYSTEM.DATETIME_TYPE_ONE),
4528+ FunctionConsts::FN_CURRENT_DATETIME_0);
4529+
4530+ }
4531+
4532+
4533+ {
4534+
4535+
4536+ DECL_WITH_KIND(sctx, fn_current_date,
4537+ (createQName("http://www.w3.org/2005/xpath-functions","","current-date"),
4538+ GENV_TYPESYSTEM.DATE_TYPE_ONE),
4539+ FunctionConsts::FN_CURRENT_DATE_0);
4540+
4541+ }
4542+
4543+
4544+ {
4545+
4546+
4547+ DECL_WITH_KIND(sctx, fn_current_time,
4548+ (createQName("http://www.w3.org/2005/xpath-functions","","current-time"),
4549+ GENV_TYPESYSTEM.TIME_TYPE_ONE),
4550+ FunctionConsts::FN_CURRENT_TIME_0);
4551+
4552+ }
4553+
4554+
4555+ {
4556+
4557+
4558+ DECL_WITH_KIND(sctx, fn_implicit_timezone,
4559+ (createQName("http://www.w3.org/2005/xpath-functions","","implicit-timezone"),
4560+ GENV_TYPESYSTEM.DT_DURATION_TYPE_ONE),
4561+ FunctionConsts::FN_IMPLICIT_TIMEZONE_0);
4562+
4563+ }
4564+
4565+
4566+ {
4567+
4568+
4569+ DECL_WITH_KIND(sctx, fn_default_collation,
4570+ (createQName("http://www.w3.org/2005/xpath-functions","","default-collation"),
4571+ GENV_TYPESYSTEM.STRING_TYPE_ONE),
4572+ FunctionConsts::FN_DEFAULT_COLLATION_0);
4573+
4574+ }
4575+
4576+
4577+ {
4578+
4579+
4580+ DECL_WITH_KIND(sctx, fn_position,
4581+ (createQName("http://www.w3.org/2005/xpath-functions","","position"),
4582+ GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
4583+ FunctionConsts::FN_POSITION_0);
4584+
4585+ }
4586+
4587+
4588+ {
4589+
4590+
4591+ DECL_WITH_KIND(sctx, fn_last,
4592+ (createQName("http://www.w3.org/2005/xpath-functions","","last"),
4593+ GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
4594+ FunctionConsts::FN_LAST_0);
4595+
4596+ }
4597+
4598+
4599+ {
4600+
4601+
4602+ DECL_WITH_KIND(sctx, fn_static_base_uri,
4603+ (createQName("http://www.w3.org/2005/xpath-functions","","static-base-uri"),
4604+ GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
4605+ FunctionConsts::FN_STATIC_BASE_URI_0);
4606+
4607+ }
4608+
4609+}
4610+
4611+
4612+}
4613+
4614+
4615+
4616
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 @@
4621-/*
4622- * Copyright 2006-2008 The FLWOR Foundation.
4623- *
4624- * Licensed under the Apache License, Version 2.0 (the "License");
4625- * you may not use this file except in compliance with the License.
4626- * You may obtain a copy of the License at
4627- *
4628- * http://www.apache.org/licenses/LICENSE-2.0
4629- *
4630- * Unless required by applicable law or agreed to in writing, software
4631- * distributed under the License is distributed on an "AS IS" BASIS,
4632- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4633- * See the License for the specific language governing permissions and
4634- * limitations under the License.
4635- */
4636-
4637-// ******************************************
4638-// * *
4639-// * THIS IS A GENERATED FILE. DO NOT EDIT! *
4640-// * SEE .xml FILE WITH SAME NAME *
4641-// * *
4642-// ******************************************
4643-
4644-
4645-#ifndef ZORBA_FUNCTIONS_CONTEXT_H
4646-#define ZORBA_FUNCTIONS_CONTEXT_H
4647-
4648-
4649-#include "common/shared_types.h"
4650-#include "functions/function_impl.h"
4651-
4652-
4653-namespace zorba {
4654-
4655-
4656-void populate_context_context(static_context* sctx);
4657-
4658-
4659-
4660-
4661-//fn:current-dateTime
4662-class fn_current_dateTime : public function
4663-{
4664-public:
4665- fn_current_dateTime(const signature& sig, FunctionConsts::FunctionKind kind)
4666- :
4667- function(sig, kind)
4668- {
4669-
4670- }
4671-
4672- bool accessesDynCtx() const { return true; }
4673-
4674- CODEGEN_DECL();
4675-};
4676-
4677-
4678-//fn:current-date
4679-class fn_current_date : public function
4680-{
4681-public:
4682- fn_current_date(const signature& sig, FunctionConsts::FunctionKind kind)
4683- :
4684- function(sig, kind)
4685- {
4686-
4687- }
4688-
4689- bool accessesDynCtx() const { return true; }
4690-
4691- CODEGEN_DECL();
4692-};
4693-
4694-
4695-//fn:current-time
4696-class fn_current_time : public function
4697-{
4698-public:
4699- fn_current_time(const signature& sig, FunctionConsts::FunctionKind kind)
4700- :
4701- function(sig, kind)
4702- {
4703-
4704- }
4705-
4706- bool accessesDynCtx() const { return true; }
4707-
4708- CODEGEN_DECL();
4709-};
4710-
4711-
4712-//fn:implicit-timezone
4713-class fn_implicit_timezone : public function
4714-{
4715-public:
4716- fn_implicit_timezone(const signature& sig, FunctionConsts::FunctionKind kind)
4717- :
4718- function(sig, kind)
4719- {
4720-
4721- }
4722-
4723- bool accessesDynCtx() const { return true; }
4724-
4725- CODEGEN_DECL();
4726-};
4727-
4728-
4729-//fn:default-collation
4730-class fn_default_collation : public function
4731-{
4732-public:
4733- fn_default_collation(const signature& sig, FunctionConsts::FunctionKind kind)
4734- :
4735- function(sig, kind)
4736- {
4737-
4738- }
4739-
4740- bool accessesDynCtx() const { return true; }
4741-
4742- CODEGEN_DECL();
4743-};
4744-
4745-
4746-//fn:position
4747-class fn_position : public function
4748-{
4749-public:
4750- fn_position(const signature& sig, FunctionConsts::FunctionKind kind)
4751- :
4752- function(sig, kind)
4753- {
4754-
4755- }
4756-
4757- CODEGEN_DECL();
4758-};
4759-
4760-
4761-//fn:last
4762-class fn_last : public function
4763-{
4764-public:
4765- fn_last(const signature& sig, FunctionConsts::FunctionKind kind)
4766- :
4767- function(sig, kind)
4768- {
4769-
4770- }
4771-
4772- CODEGEN_DECL();
4773-};
4774-
4775-
4776-//fn:static-base-uri
4777-class fn_static_base_uri : public function
4778-{
4779-public:
4780- fn_static_base_uri(const signature& sig, FunctionConsts::FunctionKind kind)
4781- :
4782- function(sig, kind)
4783- {
4784-
4785- }
4786-
4787- CODEGEN_DECL();
4788-};
4789-
4790-
4791-} //namespace zorba
4792-
4793-
4794-#endif
4795-/*
4796- * Local variables:
4797- * mode: c++
4798- * End:
4799- */
4800+/*
4801+ * Copyright 2006-2008 The FLWOR Foundation.
4802+ *
4803+ * Licensed under the Apache License, Version 2.0 (the "License");
4804+ * you may not use this file except in compliance with the License.
4805+ * You may obtain a copy of the License at
4806+ *
4807+ * http://www.apache.org/licenses/LICENSE-2.0
4808+ *
4809+ * Unless required by applicable law or agreed to in writing, software
4810+ * distributed under the License is distributed on an "AS IS" BASIS,
4811+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4812+ * See the License for the specific language governing permissions and
4813+ * limitations under the License.
4814+ */
4815+
4816+// ******************************************
4817+// * *
4818+// * THIS IS A GENERATED FILE. DO NOT EDIT! *
4819+// * SEE .xml FILE WITH SAME NAME *
4820+// * *
4821+// ******************************************
4822+
4823+
4824+#ifndef ZORBA_FUNCTIONS_CONTEXT_H
4825+#define ZORBA_FUNCTIONS_CONTEXT_H
4826+
4827+
4828+#include "common/shared_types.h"
4829+#include "functions/function_impl.h"
4830+
4831+
4832+namespace zorba {
4833+
4834+
4835+void populate_context_context(static_context* sctx);
4836+
4837+
4838+
4839+
4840+//fn:current-dateTime
4841+class fn_current_dateTime : public function
4842+{
4843+public:
4844+ fn_current_dateTime(const signature& sig, FunctionConsts::FunctionKind kind)
4845+ :
4846+ function(sig, kind)
4847+ {
4848+
4849+ }
4850+
4851+ bool accessesDynCtx() const { return true; }
4852+
4853+ CODEGEN_DECL();
4854+};
4855+
4856+
4857+//fn:current-date
4858+class fn_current_date : public function
4859+{
4860+public:
4861+ fn_current_date(const signature& sig, FunctionConsts::FunctionKind kind)
4862+ :
4863+ function(sig, kind)
4864+ {
4865+
4866+ }
4867+
4868+ bool accessesDynCtx() const { return true; }
4869+
4870+ CODEGEN_DECL();
4871+};
4872+
4873+
4874+//fn:current-time
4875+class fn_current_time : public function
4876+{
4877+public:
4878+ fn_current_time(const signature& sig, FunctionConsts::FunctionKind kind)
4879+ :
4880+ function(sig, kind)
4881+ {
4882+
4883+ }
4884+
4885+ bool accessesDynCtx() const { return true; }
4886+
4887+ CODEGEN_DECL();
4888+};
4889+
4890+
4891+//fn:implicit-timezone
4892+class fn_implicit_timezone : public function
4893+{
4894+public:
4895+ fn_implicit_timezone(const signature& sig, FunctionConsts::FunctionKind kind)
4896+ :
4897+ function(sig, kind)
4898+ {
4899+
4900+ }
4901+
4902+ bool accessesDynCtx() const { return true; }
4903+
4904+ CODEGEN_DECL();
4905+};
4906+
4907+
4908+//fn:default-collation
4909+class fn_default_collation : public function
4910+{
4911+public:
4912+ fn_default_collation(const signature& sig, FunctionConsts::FunctionKind kind)
4913+ :
4914+ function(sig, kind)
4915+ {
4916+
4917+ }
4918+
4919+ bool accessesDynCtx() const { return true; }
4920+
4921+ CODEGEN_DECL();
4922+};
4923+
4924+
4925+//fn:position
4926+class fn_position : public function
4927+{
4928+public:
4929+ fn_position(const signature& sig, FunctionConsts::FunctionKind kind)
4930+ :
4931+ function(sig, kind)
4932+ {
4933+
4934+ }
4935+
4936+ CODEGEN_DECL();
4937+};
4938+
4939+
4940+//fn:last
4941+class fn_last : public function
4942+{
4943+public:
4944+ fn_last(const signature& sig, FunctionConsts::FunctionKind kind)
4945+ :
4946+ function(sig, kind)
4947+ {
4948+
4949+ }
4950+
4951+ CODEGEN_DECL();
4952+};
4953+
4954+
4955+//fn:static-base-uri
4956+class fn_static_base_uri : public function
4957+{
4958+public:
4959+ fn_static_base_uri(const signature& sig, FunctionConsts::FunctionKind kind)
4960+ :
4961+ function(sig, kind)
4962+ {
4963+
4964+ }
4965+
4966+ CODEGEN_DECL();
4967+};
4968+
4969+
4970+} //namespace zorba
4971+
4972+
4973+#endif
4974+/*
4975+ * Local variables:
4976+ * mode: c++
4977+ * End:
4978+ */
4979
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-/*
4985- * Copyright 2006-2008 The FLWOR Foundation.
4986- *
4987- * Licensed under the Apache License, Version 2.0 (the "License");
4988- * you may not use this file except in compliance with the License.
4989- * You may obtain a copy of the License at
4990- *
4991- * http://www.apache.org/licenses/LICENSE-2.0
4992- *
4993- * Unless required by applicable law or agreed to in writing, software
4994- * distributed under the License is distributed on an "AS IS" BASIS,
4995- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4996- * See the License for the specific language governing permissions and
4997- * limitations under the License.
4998- */
4999-
5000-// ******************************************
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches