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
=== modified file 'ChangeLog'
--- ChangeLog 2012-04-12 09:32:55 +0000
+++ ChangeLog 2012-04-13 09:38:53 +0000
@@ -3,6 +3,11 @@
3version 2.53version 2.5
44
5New Features:5New Features:
6 * fn:available-environment-variables
7 * fn:environment-variables
8 * fn:uri-collection
9 * fn:unparsed-text
10 * fn:unparsed-text-available
6 * Extended API for Python, Java, PHP and Ruby.11 * Extended API for Python, Java, PHP and Ruby.
712
8Optimization:13Optimization:
914
=== added file 'NOTICE.txt'
--- NOTICE.txt 1970-01-01 00:00:00 +0000
+++ NOTICE.txt 2012-04-13 09:38:53 +0000
@@ -0,0 +1,740 @@
1-----------
2Zorba 2.2.0
3-----------
4
5(Note: This file is generated automatically from NOTICE.xml.
6Please do not modify this file directly.)
7
8
9
10
11Apache 2
12
13 Copyright 2006-2011 The FLWOR Foundation
14
15 See LICENSE.txt for license information.
16
17 ------------------------
18 This product includes software developed at
19 The FLWOR Foundation (http://www.flworfound.org/).
20
21 ------------------------
22 Portions of this software were developed at the Systems
23 Group of the ETH Zurich, Switzerland.
24
25
26Other files used by this project:
27----------------------------------------------------
28
29src/zorbatypes/m_apm.h
30src/zorbatypes/mapm/
31
32Copyright: 1999-2007 Michael C. Ring
33Website: http://www.tc.umn.edu/~ringx004/mapm-main.html
34
35 This software is Freeware.
36
37 Permission to use, copy, and distribute this software and its
38 documentation for any purpose with or without fee is hereby granted,
39 provided that the above copyright notice appear in all copies and
40 that both that copyright notice and this permission notice appear
41 in supporting documentation.
42
43 Permission to modify the software is granted. Permission to distribute
44 the modified code is granted. Modifications are to be distributed by
45 using the file 'license.txt' as a template to modify the file header.
46 'license.txt' is available in the official MAPM distribution.
47
48 To distribute modified source code, insert the file 'license.txt'
49 at the top of all modified source code files and edit accordingly.
50
51 This software is provided "as is" without express or implied warranty.
52
53----------------------------------------------------
54
55src/zorbamisc/config/stdint.h
56
57Copyright: 2006 Alexander Chemeris
58
59
60 Redistribution and use in source and binary forms, with or without
61 modification, are permitted provided that the following conditions are met:
62
63 1. Redistributions of source code must retain the above copyright notice,
64 this list of conditions and the following disclaimer.
65
66 2. Redistributions in binary form must reproduce the above copyright
67 notice, this list of conditions and the following disclaimer in the
68 documentation and/or other materials provided with the distribution.
69
70 3. The name of the author may be used to endorse or promote products
71 derived from this software without specific prior written permission.
72
73 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
74 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
75 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
76 EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
77 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
78 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
79 OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
80 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
81 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
82 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
83
84----------------------------------------------------
85
86src/zorbautils/stemmer/
87
88Copyright: 2001 Dr. Martin Porter
89
90
91 All the software given out on this Snowball site is covered by the BSD
92 License (see http://www.opensource.org/licenses/bsd-license.html), with
93 Copyright (c) 2001, Dr Martin Porter, and (for the Java developments)
94 Copyright (c) 2002, Richard Boulton.
95
96 Essentially, all this means is that you can do what you like with the code,
97 except claim another Copyright for it, or claim that it is issued under a
98 different license. The software is also issued without warranties, which
99 means that if anyone suffers through its use, they cannot come back and sue
100 you. You also have to alert anyone to whom you give the Snowball software to
101 the fact that it is covered by the BSD license.
102
103 We have not bothered to insert the licensing arrangement into the text of
104 the Snowball software.
105
106----------------------------------------------------
107
108src/util/less.h
109
110Copyright: 1998 Paul J. Lucas
111
112
113 Redistribution and use in source and binary forms, with or without
114 modification, are permitted provided that the following conditions are met:
115
116 o Redistributions of source code must retain the above copyright notice,
117 this list of conditions and the following disclaimer.
118
119 o Redistributions in binary form must reproduce the above copyright
120 notice, this list of conditions and the following disclaimer in the
121 documentation and/or other materials provided with the distribution.
122
123 o The name of the author may not be used to endorse or promote products
124 derived from this software without specific prior written permission.
125
126 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
127 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
128 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
129 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
130 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
131 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
132 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
133 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
134 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
135 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
136 POSSIBILITY OF SUCH DAMAGE.
137
138----------------------------------------------------
139
140src/util/auto_vector.h (has been modified)
141
142Copyright: 2003 Reliable Software
143
144
145 Redistribution and use in source and binary forms, with or without
146 modification, are permitted provided that the following conditions are met:
147
148 o Redistributions of source code must retain the above copyright notice,
149 this list of conditions and the following disclaimer.
150
151 o Redistributions in binary form must reproduce the above copyright
152 notice, this list of conditions and the following disclaimer in the
153 documentation and/or other materials provided with the distribution.
154
155 o The name of the author may not be used to endorse or promote products
156 derived from this software without specific prior written permission.
157
158 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
159 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
160 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
161 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
162 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
163 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
164 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
165 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
166 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
167 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
168 POSSIBILITY OF SUCH DAMAGE.
169
170----------------------------------------------------
171
172cmake_modules/FindBoost.cmake
173
174Copyright:
175 2006-2008 Andreas Schneider <mail@cynapses.org>
176 2007 Wengo
177 2007 Mike Jackson
178 2008 Andreas Pakulat <apaku@gmx.de>
179
180
181
182 Redistribution AND use is allowed according to the terms of the New BSD license.
183 For details see the accompanying COPYING-CMAKE-SCRIPTS file.
184
185----------------------------------------------------
186
187cmake_modules/FindJNI.cmake
188cmake_modules/FindPythonLibs.cmake
189cmake_modules/FindSWIG.cmake
190
191Copyright: 2001-2009 Kitware, Inc.
192
193
194 Distributed under the OSI-approved BSD License (the "License");
195 see accompanying file Copyright.txt for details.
196
197 This software is distributed WITHOUT ANY WARRANTY; without even the
198 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
199 See the License for more information.
200
201 CMake - Cross Platform Makefile Generator
202 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
203 All rights reserved.
204
205 Redistribution and use in source and binary forms, with or without
206 modification, are permitted provided that the following conditions
207 are met:
208
209 * Redistributions of source code must retain the above copyright
210 notice, this list of conditions and the following disclaimer.
211
212 * Redistributions in binary form must reproduce the above copyright
213 notice, this list of conditions and the following disclaimer in the
214 documentation and/or other materials provided with the distribution.
215
216 * Neither the names of Kitware, Inc., the Insight Software Consortium,
217 nor the names of their contributors may be used to endorse or promote
218 products derived from this software without specific prior written
219 permission.
220
221 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
222 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
223 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
224 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
225 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
226 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
227 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
228 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
229 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
230 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
231 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
232
233 ------------------------------------------------------------------------------
234
235 The above copyright and license notice applies to distributions of
236 CMake in source and binary form. Some source files contain additional
237 notices of original copyright by their contributors; see each source
238 for details. Third-party software packages supplied with CMake under
239 compatible licenses provide their own copyright notices documented in
240 corresponding subdirectories.
241
242 ------------------------------------------------------------------------------
243
244 CMake was initially developed by Kitware with the following sponsorship:
245
246 * National Library of Medicine at the National Institutes of Health
247 as part of the Insight Segmentation and Registration Toolkit (ITK).
248
249 * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
250 Visualization Initiative.
251
252 * National Alliance for Medical Image Computing (NAMIC) is funded by the
253 National Institutes of Health through the NIH Roadmap for Medical Research,
254 Grant U54 EB005149.
255
256 * Kitware, Inc.
257
258----------------------------------------------------
259
260/xml.xsd
261
262Copyright: 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
263
264
265 All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
266
267 W3C Software Notice and License
268
269 This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
270
271 License
272
273 By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
274
275 Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
276 •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
277 •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code.
278 •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
279
280 Disclaimers
281
282 THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
283
284 COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
285
286 The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
287
288----------------------------------------------------
289
290schemas/xslt-xquery-serialization.xsd
291
292Copyright: 2010 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
293
294
295 All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
296
297 W3C Software Notice and License
298
299 This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
300
301 License
302
303 By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
304
305 Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
306 •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
307 •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code.
308 •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
309
310 Disclaimers
311
312 THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
313
314 COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
315
316 The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
317
318----------------------------------------------------
319
320modules/w3c/xpath-functions.xsd
321
322Copyright: 2005 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
323
324
325 All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
326
327 W3C Software Notice and License
328
329 This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
330
331 License
332
333 By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
334
335 Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
336 •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
337 •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code.
338 •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
339
340 Disclaimers
341
342 THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
343
344 COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
345
346 The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
347
348----------------------------------------------------
349
350include/xqc.h
351
352Copyright: 2008, Matthias Brantner, John Snelson
353
354
355 * All rights reserved.
356 *
357 * Redistribution and use in source and binary forms, with or without
358 * modification, are permitted provided that the following conditions are met:
359 *
360 * * Redistributions of source code must retain the above copyright notice,
361 * this list of conditions and the following disclaimer.
362 * * Redistributions in binary form must reproduce the above copyright
363 * notice, this list of conditions and the following disclaimer in the
364 * documentation and/or other materials provided with the distribution.
365 * * Neither the name of the developers nor the names of contributors may be
366 * used to endorse or promote products derived from this software without
367 * specific prior written permission.
368 *
369 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
370 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
371 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
372 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
373 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
374 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
375 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
376 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
377 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
378 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
379 * POSSIBILITY OF SUCH DAMAGE.
380
381----------------------------------------------------
382
383modules/functx/functx.xq
384
385Copyright: 2007 Datypic
386
387
388 : This library is free software; you can redistribute it and/or
389 : modify it under the terms of the GNU Lesser General Public
390 : License as published by the Free Software Foundation; either
391 : version 2.1 of the License.
392
393 : This library is distributed in the hope that it will be useful,
394 : but WITHOUT ANY WARRANTY; without even the implied warranty of
395 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
396 : Lesser General Public License for more details.
397
398 : You should have received a copy of the GNU Lesser General Public
399 : License along with this library; if not, write to the Free Software
400 : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
401
402----------------------------------------------------
403
404src/compiler/parser/FlexLexer.h
405
406Copyright: 1993 The Regents of the University of California
407
408
409 // All rights reserved.
410 //
411 // This code is derived from software contributed to Berkeley by
412 // Kent Williams and Tom Epperly.
413 //
414 // Redistribution and use in source and binary forms, with or without
415 // modification, are permitted provided that the following conditions
416 // are met:
417
418 // 1. Redistributions of source code must retain the above copyright
419 // notice, this list of conditions and the following disclaimer.
420 // 2. Redistributions in binary form must reproduce the above copyright
421 // notice, this list of conditions and the following disclaimer in the
422 // documentation and/or other materials provided with the distribution.
423
424 // Neither the name of the University nor the names of its contributors
425 // may be used to endorse or promote products derived from this software
426 // without specific prior written permission.
427
428 // THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
429 // IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
430 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
431 // PURPOSE.
432
433----------------------------------------------------
434
435src/diagnostics/StackWalker.cpp
436src/diagnostics/StackWalker.h
437
438Copyright: 2005 Jochen Kalmbach
439
440
441 Under BSD License: http://www.opensource.org/licenses/bsd-license.php
442
443----------------------------------------------------
444
445src/util/singleton.h
446src/util/threads.h
447
448Copyright: 2001 Andrei Alexandrescu
449
450
451 This code accompanies the book:
452 Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design
453 Patterns Applied". Copyright (c) 2001. Addison-Wesley.
454 Permission to use, copy, modify, distribute and sell this software for any
455 purpose is hereby granted without fee, provided that the above copyright
456 notice appear in all copies and that both that copyright notice and this
457 permission notice appear in supporting documentation.
458 The author or Addison-Wesley Longman make no representations about the
459 suitability of this software for any purpose. It is provided "as is"
460 without express or implied warranty.
461
462
463External libraries used by this project:
464----------------------------------------------------
465
466Name: LIBXML2
467Preferred version: 2.2.16 or higher
468Is mandatory: true
469Website: http://xmlsoft.org/
470License: MIT
471Copyright: 1998-2002 Daniel Veillard. All Rights Reserved.
472External notice:
473
474 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
475
476 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
477
478 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
479
480 Except as contained in this notice, the name of Daniel Veillard shall not
481 be used in advertising or otherwise to promote the sale, use or other deal-
482 ings in this Software without prior written authorization from him.
483
484----------------------------------------------------
485
486Name: LIBXSLT
487Preferred version: 1.1.26
488Is mandatory: false
489Website: http://xmlsoft.org/XSLT/
490License: MIT
491Copyright: 2001-2002 Daniel Veillard. All Rights Reserved.
492External 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 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.
499
500
501 Except as contained in this notice, the name of Daniel Veillard shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from him.
502
503
504----------------------------------------------------
505
506Name: ICU4C
507Preferred version: 3.6 or higher
508Is mandatory: true
509Website: http://www.icu-project.org/
510License: ICU License
511Copyright: 1995-2011 International Business Machines Corporation and others
512External 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, 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.
515
516 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
517
518 Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder.
519
520----------------------------------------------------
521
522Name: CURL
523Preferred version: above 7.12
524Is mandatory: false
525Website: http://curl.haxx.se/
526License: MIT/X derivate license
527Copyright: 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>.
528External notice:
529
530 All rights reserved.
531
532 Permission to use, copy, modify, and distribute this software for any purpose
533 with or without fee is hereby granted, provided that the above copyright
534 notice and this permission notice appear in all copies.
535
536 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
537 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
538 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
539 NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
540 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
541 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
542 OR OTHER DEALINGS IN THE SOFTWARE.
543
544 Except as contained in this notice, the name of a copyright holder shall not
545 be used in advertising or otherwise to promote the sale, use or other dealings
546 in this Software without prior written authorization of the copyright holder.
547
548----------------------------------------------------
549
550Name: ICONV
551Preferred version: above 1.12
552Is mandatory: true
553Website: http://www.gnu.org/software/libiconv/
554License: LGPL
555Copyright: 1998, 2010 Free Software Foundation, Inc.
556External notice:
557
558----------------------------------------------------
559
560Name: ZLIB
561Preferred version: 1.2.5
562Is mandatory: true
563Website: http://www.zlib.net/
564Copyright: 1995-2004 Jean-loup Gailly and Mark Adler
565External notice:
566
567 This software is provided 'as-is', without any express or implied
568 warranty. In no event will the authors be held liable for any damages
569 arising from the use of this software.
570
571 Permission is granted to anyone to use this software for any purpose,
572 including commercial applications, and to alter it and redistribute it
573 freely, subject to the following restrictions:
574
575 1. The origin of this software must not be misrepresented; you must not
576 claim that you wrote the original software. If you use this software
577 in a product, an acknowledgment in the product documentation would be
578 appreciated but is not required.
579 2. Altered source versions must be plainly marked as such, and must not be
580 misrepresented as being the original software.
581 3. This notice may not be removed or altered from any source distribution.
582
583 Jean-loup Gailly jloup@gzip.org
584 Mark Adler madler@alumni.caltech.edu
585
586----------------------------------------------------
587
588Name: XERCES
589Preferred version: 2.8.0 or higher
590Is mandatory: true
591Website: http://xerces.apache.org/xerces-c/
592License: Apache 2
593Copyright: Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.
594External notice:
595
596 http://www.apache.org/licenses/LICENSE-2.0
597
598----------------------------------------------------
599
600Name: BOOST (boost_filesystem)
601Preferred version: 1.32 or higher
602Is mandatory: false
603Website: http://www.boost.org/
604License: Boost Software License v1.0
605Copyright:
606 Beman Dawes, David Abrahams, 1998-2005.
607 Rene Rivera 2004-2007
608
609External notice:
610
611 Permission is hereby granted, free of charge, to any person or organization
612 obtaining a copy of the software and accompanying documentation covered by
613 this license (the "Software") to use, reproduce, display, distribute,
614 execute, and transmit the Software, and to prepare derivative works of the
615 Software, and to permit third-parties to whom the Software is furnished to
616 do so, all subject to the following:
617
618 The copyright notices in the Software and this entire statement, including
619 the above license grant, this restriction and the following disclaimer,
620 must be included in all copies of the Software, in whole or in part, and
621 all derivative works of the Software, unless such copies or derivative
622 works are solely in the form of machine-executable object code generated by
623 a source language processor.
624
625 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
626 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
627 FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
628 SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
629 FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
630 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
631 DEALINGS IN THE SOFTWARE.
632
633
634External applications used by this project:
635----------------------------------------------------
636
637Name: FLEX
638Preferred version: 2.5.33
639Is mandatory: false
640Website: http://flex.sourceforge.net/
641Copyright:
642 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The Flex Project.
643 1990, 1997 The Regents of the University of California. All rights reserved.
644
645External notice:
646
647 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
648
649 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
650 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
651
652 Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
653
654 THIS SOFTWARE IS PROVIDED “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
655
656----------------------------------------------------
657
658Name: BISON
659Preferred version: 2.4 or higher
660Is mandatory: false
661Website: http://www.gnu.org/software/bison/
662License: GPL
663Copyright: 1998, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
664External notice:
665
666----------------------------------------------------
667
668Name: DOXYGEN
669Preferred version: v1.7.4
670Is mandatory: false
671Website: www.doxygen.org
672License: GPL
673Copyright: 1997-2011 by Dimitri van Heesch
674External notice:
675
676 Permission to use, copy, modify, and distribute this software and its documentation under the terms of the GNU General Public License is hereby granted.
677 No representations are made about the suitability of this software for any purpose.
678 It is provided "as is" without express or implied warranty.
679 See the GNU General Public License for more details.
680
681 Documents produced by doxygen are derivative works derived from the input used in their production; they are not affected by this license.
682
683----------------------------------------------------
684
685Name: CMAKE
686Preferred version: 2.8.4
687Is mandatory: true
688Website: http://www.cmake.org/
689License: Creative Commons Attribution-NoDerivs 3.0 Unported License
690Copyright: 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.
691External notice:
692
693 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
694
695 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
696
697 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
698
699 Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.
700
701 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
702
703----------------------------------------------------
704
705Name: SWIG
706Preferred version: 2.0.4 or above
707Is mandatory: false
708Website: http://www.swig.org/
709License: GPL
710Copyright:
711 1995-2011 The SWIG Developers
712 2005-2006 Arizona Board of Regents (University of Arizona).
713 1998-2005 University of Chicago.
714 1995-1998 The University of Utah and the Regents of the University of California
715
716External notice:
717
718 SWIG is free software: you can redistribute it and/or modify it
719 under the terms of the GNU General Public License as published by
720 the Free Software Foundation, either version 3 of the License, or
721 (at your option) any later version. See the LICENSE-GPL file for
722 the full terms of the GNU General Public license version 3.
723
724 Portions of SWIG are also licensed under the terms of the licenses
725 in the file LICENSE-UNIVERSITIES. You must observe the terms of
726 these licenses, as well as the terms of the GNU General Public License,
727 when you distribute SWIG.
728
729 The SWIG library and examples, under the Lib and Examples top level
730 directories, are distributed under the following terms:
731
732 You may copy, modify, distribute, and make derivative works based on
733 this software, in source code or object code form, without
734 restriction. If you distribute the software to others, you may do
735 so according to the terms of your choice. This software is offered as
736 is, without warranty of any kind.
737
738 See the COPYRIGHT file for a list of contributors to SWIG and their
739 copyright notices.
740
0\ No newline at end of file741\ No newline at end of file
1742
=== removed file 'NOTICE.txt'
--- NOTICE.txt 2012-03-28 05:19:57 +0000
+++ NOTICE.txt 1970-01-01 00:00:00 +0000
@@ -1,740 +0,0 @@
1-----------
2Zorba 2.2.0
3-----------
4
5(Note: This file is generated automatically from NOTICE.xml.
6Please do not modify this file directly.)
7
8
9
10
11Apache 2
12
13 Copyright 2006-2011 The FLWOR Foundation
14
15 See LICENSE.txt for license information.
16
17 ------------------------
18 This product includes software developed at
19 The FLWOR Foundation (http://www.flworfound.org/).
20
21 ------------------------
22 Portions of this software were developed at the Systems
23 Group of the ETH Zurich, Switzerland.
24
25
26Other files used by this project:
27----------------------------------------------------
28
29src/zorbatypes/m_apm.h
30src/zorbatypes/mapm/
31
32Copyright: 1999-2007 Michael C. Ring
33Website: http://www.tc.umn.edu/~ringx004/mapm-main.html
34
35 This software is Freeware.
36
37 Permission to use, copy, and distribute this software and its
38 documentation for any purpose with or without fee is hereby granted,
39 provided that the above copyright notice appear in all copies and
40 that both that copyright notice and this permission notice appear
41 in supporting documentation.
42
43 Permission to modify the software is granted. Permission to distribute
44 the modified code is granted. Modifications are to be distributed by
45 using the file 'license.txt' as a template to modify the file header.
46 'license.txt' is available in the official MAPM distribution.
47
48 To distribute modified source code, insert the file 'license.txt'
49 at the top of all modified source code files and edit accordingly.
50
51 This software is provided "as is" without express or implied warranty.
52
53----------------------------------------------------
54
55src/zorbamisc/config/stdint.h
56
57Copyright: 2006 Alexander Chemeris
58
59
60 Redistribution and use in source and binary forms, with or without
61 modification, are permitted provided that the following conditions are met:
62
63 1. Redistributions of source code must retain the above copyright notice,
64 this list of conditions and the following disclaimer.
65
66 2. Redistributions in binary form must reproduce the above copyright
67 notice, this list of conditions and the following disclaimer in the
68 documentation and/or other materials provided with the distribution.
69
70 3. The name of the author may be used to endorse or promote products
71 derived from this software without specific prior written permission.
72
73 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
74 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
75 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
76 EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
77 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
78 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
79 OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
80 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
81 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
82 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
83
84----------------------------------------------------
85
86src/zorbautils/stemmer/
87
88Copyright: 2001 Dr. Martin Porter
89
90
91 All the software given out on this Snowball site is covered by the BSD
92 License (see http://www.opensource.org/licenses/bsd-license.html), with
93 Copyright (c) 2001, Dr Martin Porter, and (for the Java developments)
94 Copyright (c) 2002, Richard Boulton.
95
96 Essentially, all this means is that you can do what you like with the code,
97 except claim another Copyright for it, or claim that it is issued under a
98 different license. The software is also issued without warranties, which
99 means that if anyone suffers through its use, they cannot come back and sue
100 you. You also have to alert anyone to whom you give the Snowball software to
101 the fact that it is covered by the BSD license.
102
103 We have not bothered to insert the licensing arrangement into the text of
104 the Snowball software.
105
106----------------------------------------------------
107
108src/util/less.h
109
110Copyright: 1998 Paul J. Lucas
111
112
113 Redistribution and use in source and binary forms, with or without
114 modification, are permitted provided that the following conditions are met:
115
116 o Redistributions of source code must retain the above copyright notice,
117 this list of conditions and the following disclaimer.
118
119 o Redistributions in binary form must reproduce the above copyright
120 notice, this list of conditions and the following disclaimer in the
121 documentation and/or other materials provided with the distribution.
122
123 o The name of the author may not be used to endorse or promote products
124 derived from this software without specific prior written permission.
125
126 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
127 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
128 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
129 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
130 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
131 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
132 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
133 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
134 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
135 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
136 POSSIBILITY OF SUCH DAMAGE.
137
138----------------------------------------------------
139
140src/util/auto_vector.h (has been modified)
141
142Copyright: 2003 Reliable Software
143
144
145 Redistribution and use in source and binary forms, with or without
146 modification, are permitted provided that the following conditions are met:
147
148 o Redistributions of source code must retain the above copyright notice,
149 this list of conditions and the following disclaimer.
150
151 o Redistributions in binary form must reproduce the above copyright
152 notice, this list of conditions and the following disclaimer in the
153 documentation and/or other materials provided with the distribution.
154
155 o The name of the author may not be used to endorse or promote products
156 derived from this software without specific prior written permission.
157
158 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
159 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
160 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
161 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
162 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
163 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
164 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
165 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
166 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
167 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
168 POSSIBILITY OF SUCH DAMAGE.
169
170----------------------------------------------------
171
172cmake_modules/FindBoost.cmake
173
174Copyright:
175 2006-2008 Andreas Schneider <mail@cynapses.org>
176 2007 Wengo
177 2007 Mike Jackson
178 2008 Andreas Pakulat <apaku@gmx.de>
179
180
181
182 Redistribution AND use is allowed according to the terms of the New BSD license.
183 For details see the accompanying COPYING-CMAKE-SCRIPTS file.
184
185----------------------------------------------------
186
187cmake_modules/FindJNI.cmake
188cmake_modules/FindPythonLibs.cmake
189cmake_modules/FindSWIG.cmake
190
191Copyright: 2001-2009 Kitware, Inc.
192
193
194 Distributed under the OSI-approved BSD License (the "License");
195 see accompanying file Copyright.txt for details.
196
197 This software is distributed WITHOUT ANY WARRANTY; without even the
198 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
199 See the License for more information.
200
201 CMake - Cross Platform Makefile Generator
202 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
203 All rights reserved.
204
205 Redistribution and use in source and binary forms, with or without
206 modification, are permitted provided that the following conditions
207 are met:
208
209 * Redistributions of source code must retain the above copyright
210 notice, this list of conditions and the following disclaimer.
211
212 * Redistributions in binary form must reproduce the above copyright
213 notice, this list of conditions and the following disclaimer in the
214 documentation and/or other materials provided with the distribution.
215
216 * Neither the names of Kitware, Inc., the Insight Software Consortium,
217 nor the names of their contributors may be used to endorse or promote
218 products derived from this software without specific prior written
219 permission.
220
221 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
222 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
223 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
224 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
225 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
226 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
227 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
228 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
229 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
230 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
231 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
232
233 ------------------------------------------------------------------------------
234
235 The above copyright and license notice applies to distributions of
236 CMake in source and binary form. Some source files contain additional
237 notices of original copyright by their contributors; see each source
238 for details. Third-party software packages supplied with CMake under
239 compatible licenses provide their own copyright notices documented in
240 corresponding subdirectories.
241
242 ------------------------------------------------------------------------------
243
244 CMake was initially developed by Kitware with the following sponsorship:
245
246 * National Library of Medicine at the National Institutes of Health
247 as part of the Insight Segmentation and Registration Toolkit (ITK).
248
249 * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
250 Visualization Initiative.
251
252 * National Alliance for Medical Image Computing (NAMIC) is funded by the
253 National Institutes of Health through the NIH Roadmap for Medical Research,
254 Grant U54 EB005149.
255
256 * Kitware, Inc.
257
258----------------------------------------------------
259
260/xml.xsd
261
262Copyright: 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
263
264
265 All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
266
267 W3C Software Notice and License
268
269 This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
270
271 License
272
273 By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
274
275 Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
276 •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
277 •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code.
278 •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
279
280 Disclaimers
281
282 THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
283
284 COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
285
286 The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
287
288----------------------------------------------------
289
290schemas/xslt-xquery-serialization.xsd
291
292Copyright: 2010 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
293
294
295 All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
296
297 W3C Software Notice and License
298
299 This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
300
301 License
302
303 By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
304
305 Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
306 •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
307 •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code.
308 •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
309
310 Disclaimers
311
312 THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
313
314 COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
315
316 The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
317
318----------------------------------------------------
319
320modules/w3c/xpath-functions.xsd
321
322Copyright: 2005 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
323
324
325 All Rights Reserved. This work is distributed under the W3C Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
326
327 W3C Software Notice and License
328
329 This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
330
331 License
332
333 By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
334
335 Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
336 •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
337 •Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code.
338 •Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
339
340 Disclaimers
341
342 THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
343
344 COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
345
346 The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
347
348----------------------------------------------------
349
350include/xqc.h
351
352Copyright: 2008, Matthias Brantner, John Snelson
353
354
355 * All rights reserved.
356 *
357 * Redistribution and use in source and binary forms, with or without
358 * modification, are permitted provided that the following conditions are met:
359 *
360 * * Redistributions of source code must retain the above copyright notice,
361 * this list of conditions and the following disclaimer.
362 * * Redistributions in binary form must reproduce the above copyright
363 * notice, this list of conditions and the following disclaimer in the
364 * documentation and/or other materials provided with the distribution.
365 * * Neither the name of the developers nor the names of contributors may be
366 * used to endorse or promote products derived from this software without
367 * specific prior written permission.
368 *
369 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
370 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
371 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
372 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
373 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
374 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
375 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
376 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
377 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
378 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
379 * POSSIBILITY OF SUCH DAMAGE.
380
381----------------------------------------------------
382
383modules/functx/functx.xq
384
385Copyright: 2007 Datypic
386
387
388 : This library is free software; you can redistribute it and/or
389 : modify it under the terms of the GNU Lesser General Public
390 : License as published by the Free Software Foundation; either
391 : version 2.1 of the License.
392
393 : This library is distributed in the hope that it will be useful,
394 : but WITHOUT ANY WARRANTY; without even the implied warranty of
395 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
396 : Lesser General Public License for more details.
397
398 : You should have received a copy of the GNU Lesser General Public
399 : License along with this library; if not, write to the Free Software
400 : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
401
402----------------------------------------------------
403
404src/compiler/parser/FlexLexer.h
405
406Copyright: 1993 The Regents of the University of California
407
408
409 // All rights reserved.
410 //
411 // This code is derived from software contributed to Berkeley by
412 // Kent Williams and Tom Epperly.
413 //
414 // Redistribution and use in source and binary forms, with or without
415 // modification, are permitted provided that the following conditions
416 // are met:
417
418 // 1. Redistributions of source code must retain the above copyright
419 // notice, this list of conditions and the following disclaimer.
420 // 2. Redistributions in binary form must reproduce the above copyright
421 // notice, this list of conditions and the following disclaimer in the
422 // documentation and/or other materials provided with the distribution.
423
424 // Neither the name of the University nor the names of its contributors
425 // may be used to endorse or promote products derived from this software
426 // without specific prior written permission.
427
428 // THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
429 // IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
430 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
431 // PURPOSE.
432
433----------------------------------------------------
434
435src/diagnostics/StackWalker.cpp
436src/diagnostics/StackWalker.h
437
438Copyright: 2005 Jochen Kalmbach
439
440
441 Under BSD License: http://www.opensource.org/licenses/bsd-license.php
442
443----------------------------------------------------
444
445src/util/singleton.h
446src/util/threads.h
447
448Copyright: 2001 Andrei Alexandrescu
449
450
451 This code accompanies the book:
452 Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design
453 Patterns Applied". Copyright (c) 2001. Addison-Wesley.
454 Permission to use, copy, modify, distribute and sell this software for any
455 purpose is hereby granted without fee, provided that the above copyright
456 notice appear in all copies and that both that copyright notice and this
457 permission notice appear in supporting documentation.
458 The author or Addison-Wesley Longman make no representations about the
459 suitability of this software for any purpose. It is provided "as is"
460 without express or implied warranty.
461
462
463External libraries used by this project:
464----------------------------------------------------
465
466Name: LIBXML2
467Preferred version: 2.2.16 or higher
468Is mandatory: true
469Website: http://xmlsoft.org/
470License: MIT
471Copyright: 1998-2002 Daniel Veillard. All Rights Reserved.
472External notice:
473
474 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
475
476 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
477
478 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
479
480 Except as contained in this notice, the name of Daniel Veillard shall not
481 be used in advertising or otherwise to promote the sale, use or other deal-
482 ings in this Software without prior written authorization from him.
483
484----------------------------------------------------
485
486Name: LIBXSLT
487Preferred version: 1.1.26
488Is mandatory: false
489Website: http://xmlsoft.org/XSLT/
490License: MIT
491Copyright: 2001-2002 Daniel Veillard. All Rights Reserved.
492External 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 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.
499
500
501 Except as contained in this notice, the name of Daniel Veillard shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from him.
502
503
504----------------------------------------------------
505
506Name: ICU4C
507Preferred version: 3.6 or higher
508Is mandatory: true
509Website: http://www.icu-project.org/
510License: ICU License
511Copyright: 1995-2011 International Business Machines Corporation and others
512External 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, 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.
515
516 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
517
518 Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder.
519
520----------------------------------------------------
521
522Name: CURL
523Preferred version: above 7.12
524Is mandatory: false
525Website: http://curl.haxx.se/
526License: MIT/X derivate license
527Copyright: 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>.
528External notice:
529
530 All rights reserved.
531
532 Permission to use, copy, modify, and distribute this software for any purpose
533 with or without fee is hereby granted, provided that the above copyright
534 notice and this permission notice appear in all copies.
535
536 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
537 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
538 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
539 NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
540 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
541 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
542 OR OTHER DEALINGS IN THE SOFTWARE.
543
544 Except as contained in this notice, the name of a copyright holder shall not
545 be used in advertising or otherwise to promote the sale, use or other dealings
546 in this Software without prior written authorization of the copyright holder.
547
548----------------------------------------------------
549
550Name: ICONV
551Preferred version: above 1.12
552Is mandatory: true
553Website: http://www.gnu.org/software/libiconv/
554License: LGPL
555Copyright: 1998, 2010 Free Software Foundation, Inc.
556External notice:
557
558----------------------------------------------------
559
560Name: ZLIB
561Preferred version: 1.2.5
562Is mandatory: true
563Website: http://www.zlib.net/
564Copyright: 1995-2004 Jean-loup Gailly and Mark Adler
565External notice:
566
567 This software is provided 'as-is', without any express or implied
568 warranty. In no event will the authors be held liable for any damages
569 arising from the use of this software.
570
571 Permission is granted to anyone to use this software for any purpose,
572 including commercial applications, and to alter it and redistribute it
573 freely, subject to the following restrictions:
574
575 1. The origin of this software must not be misrepresented; you must not
576 claim that you wrote the original software. If you use this software
577 in a product, an acknowledgment in the product documentation would be
578 appreciated but is not required.
579 2. Altered source versions must be plainly marked as such, and must not be
580 misrepresented as being the original software.
581 3. This notice may not be removed or altered from any source distribution.
582
583 Jean-loup Gailly jloup@gzip.org
584 Mark Adler madler@alumni.caltech.edu
585
586----------------------------------------------------
587
588Name: XERCES
589Preferred version: 2.8.0 or higher
590Is mandatory: true
591Website: http://xerces.apache.org/xerces-c/
592License: Apache 2
593Copyright: Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.
594External notice:
595
596 http://www.apache.org/licenses/LICENSE-2.0
597
598----------------------------------------------------
599
600Name: BOOST (boost_filesystem)
601Preferred version: 1.32 or higher
602Is mandatory: false
603Website: http://www.boost.org/
604License: Boost Software License v1.0
605Copyright:
606 Beman Dawes, David Abrahams, 1998-2005.
607 Rene Rivera 2004-2007
608
609External notice:
610
611 Permission is hereby granted, free of charge, to any person or organization
612 obtaining a copy of the software and accompanying documentation covered by
613 this license (the "Software") to use, reproduce, display, distribute,
614 execute, and transmit the Software, and to prepare derivative works of the
615 Software, and to permit third-parties to whom the Software is furnished to
616 do so, all subject to the following:
617
618 The copyright notices in the Software and this entire statement, including
619 the above license grant, this restriction and the following disclaimer,
620 must be included in all copies of the Software, in whole or in part, and
621 all derivative works of the Software, unless such copies or derivative
622 works are solely in the form of machine-executable object code generated by
623 a source language processor.
624
625 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
626 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
627 FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
628 SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
629 FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
630 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
631 DEALINGS IN THE SOFTWARE.
632
633
634External applications used by this project:
635----------------------------------------------------
636
637Name: FLEX
638Preferred version: 2.5.33
639Is mandatory: false
640Website: http://flex.sourceforge.net/
641Copyright:
642 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The Flex Project.
643 1990, 1997 The Regents of the University of California. All rights reserved.
644
645External notice:
646
647 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
648
649 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
650 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
651
652 Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
653
654 THIS SOFTWARE IS PROVIDED “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
655
656----------------------------------------------------
657
658Name: BISON
659Preferred version: 2.4 or higher
660Is mandatory: false
661Website: http://www.gnu.org/software/bison/
662License: GPL
663Copyright: 1998, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
664External notice:
665
666----------------------------------------------------
667
668Name: DOXYGEN
669Preferred version: v1.7.4
670Is mandatory: false
671Website: www.doxygen.org
672License: GPL
673Copyright: 1997-2011 by Dimitri van Heesch
674External notice:
675
676 Permission to use, copy, modify, and distribute this software and its documentation under the terms of the GNU General Public License is hereby granted.
677 No representations are made about the suitability of this software for any purpose.
678 It is provided "as is" without express or implied warranty.
679 See the GNU General Public License for more details.
680
681 Documents produced by doxygen are derivative works derived from the input used in their production; they are not affected by this license.
682
683----------------------------------------------------
684
685Name: CMAKE
686Preferred version: 2.8.4
687Is mandatory: true
688Website: http://www.cmake.org/
689License: Creative Commons Attribution-NoDerivs 3.0 Unported License
690Copyright: 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.
691External notice:
692
693 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
694
695 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
696
697 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
698
699 Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.
700
701 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
702
703----------------------------------------------------
704
705Name: SWIG
706Preferred version: 2.0.4 or above
707Is mandatory: false
708Website: http://www.swig.org/
709License: GPL
710Copyright:
711 1995-2011 The SWIG Developers
712 2005-2006 Arizona Board of Regents (University of Arizona).
713 1998-2005 University of Chicago.
714 1995-1998 The University of Utah and the Regents of the University of California
715
716External notice:
717
718 SWIG is free software: you can redistribute it and/or modify it
719 under the terms of the GNU General Public License as published by
720 the Free Software Foundation, either version 3 of the License, or
721 (at your option) any later version. See the LICENSE-GPL file for
722 the full terms of the GNU General Public license version 3.
723
724 Portions of SWIG are also licensed under the terms of the licenses
725 in the file LICENSE-UNIVERSITIES. You must observe the terms of
726 these licenses, as well as the terms of the GNU General Public License,
727 when you distribute SWIG.
728
729 The SWIG library and examples, under the Lib and Examples top level
730 directories, are distributed under the following terms:
731
732 You may copy, modify, distribute, and make derivative works based on
733 this software, in source code or object code form, without
734 restriction. If you distribute the software to others, you may do
735 so according to the terms of your choice. This software is offered as
736 is, without warranty of any kind.
737
738 See the COPYRIGHT file for a list of contributors to SWIG and their
739 copyright notices.
740
741\ No newline at end of file0\ No newline at end of file
7421
=== modified file 'include/zorba/pregenerated/diagnostic_list.h'
--- include/zorba/pregenerated/diagnostic_list.h 2012-03-28 05:19:57 +0000
+++ include/zorba/pregenerated/diagnostic_list.h 2012-04-13 09:38:53 +0000
@@ -286,6 +286,10 @@
286286
287extern ZORBA_DLL_PUBLIC XQueryErrorCode FOTY0015;287extern ZORBA_DLL_PUBLIC XQueryErrorCode FOTY0015;
288288
289extern ZORBA_DLL_PUBLIC XQueryErrorCode FOUT1170;
290
291extern ZORBA_DLL_PUBLIC XQueryErrorCode FOUT1190;
292
289extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0001;293extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0001;
290294
291extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0002;295extern ZORBA_DLL_PUBLIC XQueryErrorCode XUST0002;
292296
=== modified file 'modules/w3c/pregenerated/xqt-errors.xq'
--- modules/w3c/pregenerated/xqt-errors.xq 2012-03-28 05:19:57 +0000
+++ modules/w3c/pregenerated/xqt-errors.xq 2012-04-13 09:38:53 +0000
@@ -1240,6 +1240,24 @@
12401240
1241(:~1241(:~
1242 :1242 :
1243 : Identifier cannot be used to retrive a resource containing text
1244 :
1245 : @see http://www.w3.org/2005/xqt-errors
1246:)
1247declare variable $err:FOUT1170 as xs:QName := fn:QName($err:NS, "err:FOUT1170");
1248
1249(:~
1250 :
1251 : Retrieved resource contains octets that cannot be decoded into Unicode
1252 : using the specified encoding, the resulting characters are not
1253 : permitted XML characters or requested encoding not supported
1254 :
1255 : @see http://www.w3.org/2005/xqt-errors
1256:)
1257declare variable $err:FOUT1190 as xs:QName := fn:QName($err:NS, "err:FOUT1190");
1258
1259(:~
1260 :
1243 : It is a static error if an updating expression is used in any position1261 : It is a static error if an updating expression is used in any position
1244 : other than one of the following:1262 : other than one of the following:
1245 : - The topmost expression in the body of a query.1263 : - The topmost expression in the body of a query.
12461264
=== modified file 'modules/w3c/xpath_functions.xq'
--- modules/w3c/xpath_functions.xq 2012-03-28 05:19:57 +0000
+++ modules/w3c/xpath_functions.xq 2012-04-13 09:38:53 +0000
@@ -994,4 +994,49 @@
994(:~994(:~
995 : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string">fn:string</a>995 : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string">fn:string</a>
996 :)996 :)
997declare function fn:string($arg as item()?) as xs:string external;
998\ No newline at end of file997\ No newline at end of file
998declare function fn:string($arg as item()?) as xs:string external;
999
1000(:~
1001 : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-available-environment-variables">fn:available-environment-variables</a>
1002 :)
1003declare function fn:available-environment-variables() as xs:string* external;
1004
1005(:~
1006 : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-environment-variable">fn:environment-variable</a>
1007 :)
1008declare function fn:environment-variable($arg as xs:string) as xs:string? external;
1009
1010(:~
1011 : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text">fn:unparsed-text</a>
1012 :)
1013declare function fn:unparsed-text($href as xs:string?) as xs:string? external;
1014
1015(:~
1016 : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text">fn:unparsed-text</a>
1017 :)
1018declare function fn:unparsed-text($href as xs:string?, $encoding as xs:string) as xs:string? external;
1019
1020(:~
1021 : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-available">fn:unparsed-text-available</a>
1022 :)
1023declare function fn:unparsed-text-available($href as xs:string?) as xs:boolean external;
1024
1025(:~
1026 : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-lines">fn:unparsed-text-lines</a>
1027 :)
1028declare function fn:unparsed-text-lines( $href as xs:string?, $encoding as xs:string) as xs:string* external;
1029
1030(:~
1031 : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-available">fn:unparsed-text-available</a>
1032 :)
1033declare function fn:unparsed-text-available( $href as xs:string?, $encoding as xs:string) as xs:boolean external;
1034
1035(:~
1036 : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-uri-collection">fn:uri-collection</a>
1037 :)
1038declare function fn:uri-collection() as xs:anyURI* external;
1039
1040(:~
1041 : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-uri-collection">fn:uri-collection</a>
1042 :)
1043declare function fn:uri-collection($arg as xs:string?) as xs:anyURI* external;
9991044
=== modified file 'src/context/dynamic_context.cpp'
--- src/context/dynamic_context.cpp 2012-03-28 05:19:57 +0000
+++ src/context/dynamic_context.cpp 2012-04-13 09:38:53 +0000
@@ -21,6 +21,7 @@
21#include <sys/timeb.h>21#include <sys/timeb.h>
22#ifdef UNIX22#ifdef UNIX
23#include <sys/time.h>23#include <sys/time.h>
24#include <unistd.h>
24#endif25#endif
2526
26#include "store/api/iterator.h"27#include "store/api/iterator.h"
@@ -29,6 +30,7 @@
29#include "store/api/store.h"30#include "store/api/store.h"
30#include "store/api/index.h"31#include "store/api/index.h"
31#include "store/api/ic.h"32#include "store/api/ic.h"
33#include "store/api/iterator_factory.h"
3234
33#include "system/globalenv.h"35#include "system/globalenv.h"
3436
@@ -54,10 +56,13 @@
5456
55using namespace std;57using namespace std;
5658
59#ifdef UNIX
60//external variables
61extern char **environ;
62#endif
63
57namespace zorba64namespace zorba
58{65{
59
60
61/*******************************************************************************66/*******************************************************************************
6267
63********************************************************************************/68********************************************************************************/
@@ -122,6 +127,7 @@
122 theParent(NULL),127 theParent(NULL),
123 keymap(NULL),128 keymap(NULL),
124 theAvailableIndices(NULL),129 theAvailableIndices(NULL),
130 theEnvironmentVariables(NULL),
125 theDocLoadingUserTime(0.0),131 theDocLoadingUserTime(0.0),
126 theDocLoadingTime(0)132 theDocLoadingTime(0)
127{133{
@@ -161,6 +167,9 @@
161 delete keymap;167 delete keymap;
162 }168 }
163169
170 if(theEnvironmentVariables)
171 delete theEnvironmentVariables;
172
164 if (theAvailableIndices)173 if (theAvailableIndices)
165 delete theAvailableIndices;174 delete theAvailableIndices;
166}175}
@@ -259,6 +268,145 @@
259/*******************************************************************************268/*******************************************************************************
260269
261********************************************************************************/270********************************************************************************/
271void dynamic_context::set_environment_variables()
272{
273 if (!theEnvironmentVariables)
274 theEnvironmentVariables = new EnvVarMap();
275
276#if defined (WIN32)
277 LPTCH envVarsCH = GetEnvironmentStrings();
278 LPTSTR envVarsSTR = (LPTSTR) envVarsCH;
279
280 while (*envVarsSTR)
281 {
282 int size = lstrlen(envVarsSTR);
283
284 char * envVar = new char[size+1];
285
286
287 WideCharToMultiByte( CP_ACP,
288 WC_NO_BEST_FIT_CHARS|WC_COMPOSITECHECK|WC_DEFAULTCHAR,
289 envVarsSTR,
290 size+1,
291 envVar,
292 size+1,
293 NULL,
294 NULL);
295
296
297 zstring envVarZS(envVar);
298
299 int eqPos = envVarZS.find_first_of("=");
300
301 if (eqPos > 0)
302 {
303 zstring varname(envVarZS.substr(0, eqPos));
304 zstring varvalue(envVarZS.substr(eqPos+1, size));
305
306 if (!varname.empty() || !varvalue.empty())
307 theEnvironmentVariables->insert(std::pair<zstring, zstring>(varname,varvalue));
308 }
309
310 delete envVar;
311 envVarsSTR += lstrlen(envVarsSTR) + 1;
312 }
313
314 FreeEnvironmentStrings(envVarsCH);
315#else
316 const char* invalid_char;
317 for (char **env = environ; *env; ++env)
318 {
319 zstring envVarZS(*env);
320
321 if ((invalid_char = utf8::validate(envVarZS.c_str())) != NULL)
322 throw XQUERY_EXCEPTION(err::FOCH0001,
323 ERROR_PARAMS(zstring("#x") +
324 BUILD_STRING(std::uppercase << std::hex
325 << (static_cast<unsigned int>(*invalid_char)&0xFF))));
326
327 if ((invalid_char = utf8::validate(envVarZS.c_str())) != NULL)
328 {
329 throw XQUERY_EXCEPTION(err::FOCH0001,
330 ERROR_PARAMS(zstring("#x") +
331 BUILD_STRING(std::uppercase << std::hex
332 << (static_cast<unsigned int>(*invalid_char) & 0xFF)) ));
333 }
334
335 int size = envVarZS.size();
336
337 int eqPos = envVarZS.find_first_of("=");
338
339 if (eqPos > 0)
340 {
341 zstring varname(envVarZS.substr(0, eqPos));
342 zstring varvalue(envVarZS.substr(eqPos+1, size));
343
344 if (!varname.empty() || !varvalue.empty())
345 theEnvironmentVariables->insert(std::pair<zstring, zstring>(varname,varvalue));
346 }
347 }
348
349#endif
350
351}
352/*******************************************************************************
353
354********************************************************************************/
355store::Iterator_t dynamic_context::available_environment_variables()
356{
357 if (!theEnvironmentVariables)
358 {
359 set_environment_variables();
360 }
361
362 EnvVarMap::iterator lIte = theEnvironmentVariables->begin();
363 EnvVarMap::iterator lEnd = theEnvironmentVariables->end();
364
365 std::vector<store::Item_t> lVarNames;
366
367 for (;lIte != lEnd; ++lIte)
368 {
369 store::Item_t varname;
370 zstring zsvarname = lIte->first;
371 GENV_ITEMFACTORY->createString(varname, zsvarname);
372 lVarNames.push_back(varname);
373 }
374
375 if (lVarNames.empty())
376 {
377 return NULL;
378 }
379
380 return GENV_STORE.createTempSeq(lVarNames)->getIterator();
381}
382
383/*******************************************************************************
384
385********************************************************************************/
386store::Item_t dynamic_context::get_environment_variable(const zstring& varname)
387{
388
389 if (!theEnvironmentVariables)
390 {
391 set_environment_variables();
392 }
393
394 EnvVarMap::iterator lIter = theEnvironmentVariables->find(varname);
395
396 if (lIter == theEnvironmentVariables->end())
397 {
398 return NULL;
399 }
400
401 store::Item_t value;
402 zstring varvalue = lIter->second;
403 GENV_ITEMFACTORY->createString(value, varvalue);
404 return value;
405}
406
407/*******************************************************************************
408
409********************************************************************************/
262void dynamic_context::add_variable(ulong varid, store::Iterator_t& value) 410void dynamic_context::add_variable(ulong varid, store::Iterator_t& value)
263{411{
264 declare_variable(varid);412 declare_variable(varid);
@@ -607,7 +755,6 @@
607 {755 {
608 keymap = new ValueMap(8, false);756 keymap = new ValueMap(8, false);
609 }757 }
610
611 if (!keymap->insert(aName, val))758 if (!keymap->insert(aName, val))
612 {759 {
613 keymap->update(aName, val);760 keymap->update(aName, val);
614761
=== modified file 'src/context/dynamic_context.h'
--- src/context/dynamic_context.h 2012-03-28 05:19:57 +0000
+++ src/context/dynamic_context.h 2012-04-13 09:38:53 +0000
@@ -105,6 +105,8 @@
105105
106 typedef ItemPointerHashMap<store::Index_t> IndexMap;106 typedef ItemPointerHashMap<store::Index_t> IndexMap;
107107
108 typedef std::map<const zstring,const zstring> EnvVarMap;
109
108protected:110protected:
109 dynamic_context * theParent;111 dynamic_context * theParent;
110112
@@ -119,6 +121,9 @@
119121
120 IndexMap * theAvailableIndices;122 IndexMap * theAvailableIndices;
121123
124 //MODIFY
125 EnvVarMap * theEnvironmentVariables;
126
122public:127public:
123 double theDocLoadingUserTime;128 double theDocLoadingUserTime;
124 double theDocLoadingTime;129 double theDocLoadingTime;
@@ -142,6 +147,12 @@
142147
143 store::Item_t get_current_time_millis() const;148 store::Item_t get_current_time_millis() const;
144149
150 void set_environment_variables();
151
152 store::Item_t get_environment_variable(const zstring& varname);
153
154 store::Iterator_t available_environment_variables();
155
145 void set_implicit_timezone(long tzone_seconds);156 void set_implicit_timezone(long tzone_seconds);
146157
147 long get_implicit_timezone() const;158 long get_implicit_timezone() const;
148159
=== modified file 'src/diagnostics/diagnostic_en.xml'
--- src/diagnostics/diagnostic_en.xml 2012-04-10 13:10:22 +0000
+++ src/diagnostics/diagnostic_en.xml 2012-04-13 09:38:53 +0000
@@ -1142,7 +1142,23 @@
1142 An argument to \c fn:deep-equal() contains a function item.1142 An argument to \c fn:deep-equal() contains a function item.
1143 </comment>1143 </comment>
1144 <value>"$1": argument to fn:deep-equal() contains a function item</value>1144 <value>"$1": argument to fn:deep-equal() contains a function item</value>
1145 </diagnostic>
1146
1147 <diagnostic code="FOUT1170">
1148 <comment>
1149 Identifier cannot be used to retrive a resource containing text
1150 </comment>
1151 <value>"$1": error retrieving resource containing text</value>
1145 </diagnostic>1152 </diagnostic>
1153
1154 <diagnostic code="FOUT1190">
1155 <comment>
1156 Retrieved resource contains octets that cannot be decoded into Unicode
1157 using the specified encoding, the resulting characters are not
1158 permitted XML characters or requested encoding not supported
1159 </comment>
1160 <value>"$1": Cannot decode resource retrieved</value>
1161 </diagnostic>
11461162
1147 <!--////////// XQuery Update Facility //////////////////////////////////-->1163 <!--////////// XQuery Update Facility //////////////////////////////////-->
11481164
11491165
=== modified file 'src/diagnostics/pregenerated/diagnostic_list.cpp'
--- src/diagnostics/pregenerated/diagnostic_list.cpp 2012-03-28 05:19:57 +0000
+++ src/diagnostics/pregenerated/diagnostic_list.cpp 2012-04-13 09:38:53 +0000
@@ -411,6 +411,12 @@
411XQueryErrorCode FOTY0015( "FOTY0015" );411XQueryErrorCode FOTY0015( "FOTY0015" );
412412
413413
414XQueryErrorCode FOUT1170( "FOUT1170" );
415
416
417XQueryErrorCode FOUT1190( "FOUT1190" );
418
419
414XQueryErrorCode XUST0001( "XUST0001" );420XQueryErrorCode XUST0001( "XUST0001" );
415421
416422
417423
=== modified file 'src/diagnostics/pregenerated/dict_en.cpp'
--- src/diagnostics/pregenerated/dict_en.cpp 2012-04-10 13:10:22 +0000
+++ src/diagnostics/pregenerated/dict_en.cpp 2012-04-13 09:38:53 +0000
@@ -74,6 +74,8 @@
74 { "FOTY0015", "\"$1\": argument to fn:deep-equal() contains a function item" },74 { "FOTY0015", "\"$1\": argument to fn:deep-equal() contains a function item" },
75 { "FOUP0001", "first operand of fn:put() is not a node of a supported kind" },75 { "FOUP0001", "first operand of fn:put() is not a node of a supported kind" },
76 { "FOUP0002", "second operand of fn:put() is not a valid lexical representation of the xs:anyURI type" },76 { "FOUP0002", "second operand of fn:put() is not a valid lexical representation of the xs:anyURI type" },
77 { "FOUT1170", "\"$1\": error retrieving resource containing text" },
78 { "FOUT1190", "\"$1\": Cannot decode resource retrieved" },
77#if !defined(ZORBA_NO_FULL_TEXT)79#if !defined(ZORBA_NO_FULL_TEXT)
78 { "FTDY0016", "\"$1\": invalid weight: absolute value must be in [0,1000]" },80 { "FTDY0016", "\"$1\": invalid weight: absolute value must be in [0,1000]" },
79#endif81#endif
8082
=== added file 'src/functions/pregenerated/func_access.cpp'
--- src/functions/pregenerated/func_access.cpp 1970-01-01 00:00:00 +0000
+++ src/functions/pregenerated/func_access.cpp 2012-04-13 09:38:53 +0000
@@ -0,0 +1,111 @@
1/*
2 * Copyright 2006-2008 The FLWOR Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17// ******************************************
18// * *
19// * THIS IS A GENERATED FILE. DO NOT EDIT! *
20// * SEE .xml FILE WITH SAME NAME *
21// * *
22// ******************************************
23
24
25#include "stdafx.h"
26#include "runtime/access/access.h"
27#include "functions/func_access.h"
28
29
30namespace zorba{
31
32
33
34PlanIter_t fn_unparsed_text::codegen(
35 CompilerCB*,
36 static_context* sctx,
37 const QueryLoc& loc,
38 std::vector<PlanIter_t>& argv,
39 expr& ann) const
40{
41 return new FnUnparsedTextIterator(sctx, loc, argv);
42}
43
44PlanIter_t fn_unparsed_text_available::codegen(
45 CompilerCB*,
46 static_context* sctx,
47 const QueryLoc& loc,
48 std::vector<PlanIter_t>& argv,
49 expr& ann) const
50{
51 return new FnUnparsedTextAvailableIterator(sctx, loc, argv);
52}
53
54void populate_context_access(static_context* sctx)
55{
56 {
57
58
59 DECL_WITH_KIND(sctx, fn_unparsed_text,
60 (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text"),
61 GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
62 GENV_TYPESYSTEM.STRING_TYPE_QUESTION),
63 FunctionConsts::FN_UNPARSED_TEXT_1);
64
65 }
66
67
68 {
69
70
71 DECL_WITH_KIND(sctx, fn_unparsed_text,
72 (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text"),
73 GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
74 GENV_TYPESYSTEM.STRING_TYPE_ONE,
75 GENV_TYPESYSTEM.STRING_TYPE_QUESTION),
76 FunctionConsts::FN_UNPARSED_TEXT_2);
77
78 }
79
80
81 {
82
83
84 DECL_WITH_KIND(sctx, fn_unparsed_text_available,
85 (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text-available"),
86 GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
87 GENV_TYPESYSTEM.STRING_TYPE_QUESTION),
88 FunctionConsts::FN_UNPARSED_TEXT_AVAILABLE_1);
89
90 }
91
92
93 {
94
95
96 DECL_WITH_KIND(sctx, fn_unparsed_text_available,
97 (createQName("http://www.w3.org/2005/xpath-functions","","unparsed-text-available"),
98 GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
99 GENV_TYPESYSTEM.STRING_TYPE_ONE,
100 GENV_TYPESYSTEM.STRING_TYPE_QUESTION),
101 FunctionConsts::FN_UNPARSED_TEXT_AVAILABLE_2);
102
103 }
104
105}
106
107
108}
109
110
111
0112
=== added file 'src/functions/pregenerated/func_access.h'
--- src/functions/pregenerated/func_access.h 1970-01-01 00:00:00 +0000
+++ src/functions/pregenerated/func_access.h 2012-04-13 09:38:53 +0000
@@ -0,0 +1,79 @@
1/*
2 * Copyright 2006-2008 The FLWOR Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17// ******************************************
18// * *
19// * THIS IS A GENERATED FILE. DO NOT EDIT! *
20// * SEE .xml FILE WITH SAME NAME *
21// * *
22// ******************************************
23
24
25#ifndef ZORBA_FUNCTIONS_ACCESS_H
26#define ZORBA_FUNCTIONS_ACCESS_H
27
28
29#include "common/shared_types.h"
30#include "functions/function_impl.h"
31
32
33namespace zorba {
34
35
36void populate_context_access(static_context* sctx);
37
38
39
40
41//fn:unparsed-text
42class fn_unparsed_text : public function
43{
44public:
45 fn_unparsed_text(const signature& sig, FunctionConsts::FunctionKind kind)
46 :
47 function(sig, kind)
48 {
49
50 }
51
52 CODEGEN_DECL();
53};
54
55
56//fn:unparsed-text-available
57class fn_unparsed_text_available : public function
58{
59public:
60 fn_unparsed_text_available(const signature& sig, FunctionConsts::FunctionKind kind)
61 :
62 function(sig, kind)
63 {
64
65 }
66
67 CODEGEN_DECL();
68};
69
70
71} //namespace zorba
72
73
74#endif
75/*
76 * Local variables:
77 * mode: c++
78 * End:
79 */
080
=== modified file 'src/functions/pregenerated/func_accessors.cpp'
--- src/functions/pregenerated/func_accessors.cpp 2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_accessors.cpp 2012-04-13 09:38:53 +0000
@@ -1,259 +1,259 @@
1/*1/*
2 * Copyright 2006-2008 The FLWOR Foundation.2 * Copyright 2006-2008 The FLWOR Foundation.
3 *3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at6 * You may obtain a copy of the License at
7 *7 *
8 * http://www.apache.org/licenses/LICENSE-2.08 * http://www.apache.org/licenses/LICENSE-2.0
9 *9 *
10 * Unless required by applicable law or agreed to in writing, software10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and13 * See the License for the specific language governing permissions and
14 * limitations under the License.14 * limitations under the License.
15 */15 */
16 16
17// ******************************************17// ******************************************
18// * *18// * *
19// * THIS IS A GENERATED FILE. DO NOT EDIT! *19// * THIS IS A GENERATED FILE. DO NOT EDIT! *
20// * SEE .xml FILE WITH SAME NAME *20// * SEE .xml FILE WITH SAME NAME *
21// * *21// * *
22// ******************************************22// ******************************************
2323
2424
25#include "stdafx.h"25#include "stdafx.h"
26#include "runtime/accessors/accessors.h"26#include "runtime/accessors/accessors.h"
27#include "functions/func_accessors.h"27#include "functions/func_accessors.h"
2828
2929
30namespace zorba{30namespace zorba{
3131
3232
3333
34PlanIter_t fn_node_name_3_0::codegen(34PlanIter_t fn_node_name_3_0::codegen(
35 CompilerCB*,35 CompilerCB*,
36 static_context* sctx,36 static_context* sctx,
37 const QueryLoc& loc,37 const QueryLoc& loc,
38 std::vector<PlanIter_t>& argv,38 std::vector<PlanIter_t>& argv,
39 expr& ann) const39 expr& ann) const
40{40{
41 return new NodeNameIterator(sctx, loc, argv);41 return new NodeNameIterator(sctx, loc, argv);
42}42}
43PlanIter_t fn_node_name::codegen(43PlanIter_t fn_node_name::codegen(
44 CompilerCB*,44 CompilerCB*,
45 static_context* sctx,45 static_context* sctx,
46 const QueryLoc& loc,46 const QueryLoc& loc,
47 std::vector<PlanIter_t>& argv,47 std::vector<PlanIter_t>& argv,
48 expr& ann) const48 expr& ann) const
49{49{
50 return new NodeNameIterator(sctx, loc, argv);50 return new NodeNameIterator(sctx, loc, argv);
51}51}
5252
53PlanIter_t fn_nilled::codegen(53PlanIter_t fn_nilled::codegen(
54 CompilerCB*,54 CompilerCB*,
55 static_context* sctx,55 static_context* sctx,
56 const QueryLoc& loc,56 const QueryLoc& loc,
57 std::vector<PlanIter_t>& argv,57 std::vector<PlanIter_t>& argv,
58 expr& ann) const58 expr& ann) const
59{59{
60 return new NilledIterator(sctx, loc, argv);60 return new NilledIterator(sctx, loc, argv);
61}61}
6262
6363
64PlanIter_t fn_data::codegen(64PlanIter_t fn_data::codegen(
65 CompilerCB*,65 CompilerCB*,
66 static_context* sctx,66 static_context* sctx,
67 const QueryLoc& loc,67 const QueryLoc& loc,
68 std::vector<PlanIter_t>& argv,68 std::vector<PlanIter_t>& argv,
69 expr& ann) const69 expr& ann) const
70{70{
71 return new FnDataIterator(sctx, loc, argv);71 return new FnDataIterator(sctx, loc, argv);
72}72}
7373
74PlanIter_t fn_base_uri::codegen(74PlanIter_t fn_base_uri::codegen(
75 CompilerCB*,75 CompilerCB*,
76 static_context* sctx,76 static_context* sctx,
77 const QueryLoc& loc,77 const QueryLoc& loc,
78 std::vector<PlanIter_t>& argv,78 std::vector<PlanIter_t>& argv,
79 expr& ann) const79 expr& ann) const
80{80{
81 return new BaseUriIterator(sctx, loc, argv);81 return new BaseUriIterator(sctx, loc, argv);
82}82}
8383
84PlanIter_t fn_document_uri_3_0::codegen(84PlanIter_t fn_document_uri_3_0::codegen(
85 CompilerCB*,85 CompilerCB*,
86 static_context* sctx,86 static_context* sctx,
87 const QueryLoc& loc,87 const QueryLoc& loc,
88 std::vector<PlanIter_t>& argv,88 std::vector<PlanIter_t>& argv,
89 expr& ann) const89 expr& ann) const
90{90{
91 return new DocumentUriIterator(sctx, loc, argv);91 return new DocumentUriIterator(sctx, loc, argv);
92}92}
93PlanIter_t fn_document_uri::codegen(93PlanIter_t fn_document_uri::codegen(
94 CompilerCB*,94 CompilerCB*,
95 static_context* sctx,95 static_context* sctx,
96 const QueryLoc& loc,96 const QueryLoc& loc,
97 std::vector<PlanIter_t>& argv,97 std::vector<PlanIter_t>& argv,
98 expr& ann) const98 expr& ann) const
99{99{
100 return new DocumentUriIterator(sctx, loc, argv);100 return new DocumentUriIterator(sctx, loc, argv);
101}101}
102102
103PlanIter_t fn_root::codegen(103PlanIter_t fn_root::codegen(
104 CompilerCB*,104 CompilerCB*,
105 static_context* sctx,105 static_context* sctx,
106 const QueryLoc& loc,106 const QueryLoc& loc,
107 std::vector<PlanIter_t>& argv,107 std::vector<PlanIter_t>& argv,
108 expr& ann) const108 expr& ann) const
109{109{
110 return new RootIterator(sctx, loc, argv);110 return new RootIterator(sctx, loc, argv);
111}111}
112112
113void populate_context_accessors(static_context* sctx)113void populate_context_accessors(static_context* sctx)
114{114{
115 {115 {
116 116
117117
118 DECL_WITH_KIND(sctx, fn_node_name_3_0,118 DECL_WITH_KIND(sctx, fn_node_name_3_0,
119 (createQName("http://www.w3.org/2005/xpath-functions","","node-name"), 119 (createQName("http://www.w3.org/2005/xpath-functions","","node-name"),
120 GENV_TYPESYSTEM.QNAME_TYPE_QUESTION),120 GENV_TYPESYSTEM.QNAME_TYPE_QUESTION),
121 FunctionConsts::FN_NODE_NAME_0);121 FunctionConsts::FN_NODE_NAME_0);
122122
123 }123 }
124124
125125
126 {126 {
127 127
128128
129 DECL_WITH_KIND(sctx, fn_node_name,129 DECL_WITH_KIND(sctx, fn_node_name,
130 (createQName("http://www.w3.org/2005/xpath-functions","","node-name"), 130 (createQName("http://www.w3.org/2005/xpath-functions","","node-name"),
131 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 131 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
132 GENV_TYPESYSTEM.QNAME_TYPE_QUESTION),132 GENV_TYPESYSTEM.QNAME_TYPE_QUESTION),
133 FunctionConsts::FN_NODE_NAME_1);133 FunctionConsts::FN_NODE_NAME_1);
134134
135 }135 }
136136
137137
138 {138 {
139 139
140140
141 DECL_WITH_KIND(sctx, fn_nilled,141 DECL_WITH_KIND(sctx, fn_nilled,
142 (createQName("http://www.w3.org/2005/xpath-functions","","nilled"), 142 (createQName("http://www.w3.org/2005/xpath-functions","","nilled"),
143 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 143 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
144 GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),144 GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
145 FunctionConsts::FN_NILLED_1);145 FunctionConsts::FN_NILLED_1);
146146
147 }147 }
148148
149149
150 {150 {
151 151
152152
153 DECL_WITH_KIND(sctx, fn_string,153 DECL_WITH_KIND(sctx, fn_string,
154 (createQName("http://www.w3.org/2005/xpath-functions","","string"), 154 (createQName("http://www.w3.org/2005/xpath-functions","","string"),
155 GENV_TYPESYSTEM.STRING_TYPE_ONE),155 GENV_TYPESYSTEM.STRING_TYPE_ONE),
156 FunctionConsts::FN_STRING_0);156 FunctionConsts::FN_STRING_0);
157157
158 }158 }
159159
160160
161 {161 {
162 162
163163
164 DECL_WITH_KIND(sctx, fn_string,164 DECL_WITH_KIND(sctx, fn_string,
165 (createQName("http://www.w3.org/2005/xpath-functions","","string"), 165 (createQName("http://www.w3.org/2005/xpath-functions","","string"),
166 GENV_TYPESYSTEM.ITEM_TYPE_QUESTION, 166 GENV_TYPESYSTEM.ITEM_TYPE_QUESTION,
167 GENV_TYPESYSTEM.STRING_TYPE_ONE),167 GENV_TYPESYSTEM.STRING_TYPE_ONE),
168 FunctionConsts::FN_STRING_1);168 FunctionConsts::FN_STRING_1);
169169
170 }170 }
171171
172172
173 {173 {
174 174
175175
176 DECL_WITH_KIND(sctx, fn_data,176 DECL_WITH_KIND(sctx, fn_data,
177 (createQName("http://www.w3.org/2005/xpath-functions","","data"), 177 (createQName("http://www.w3.org/2005/xpath-functions","","data"),
178 GENV_TYPESYSTEM.ITEM_TYPE_STAR, 178 GENV_TYPESYSTEM.ITEM_TYPE_STAR,
179 GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR),179 GENV_TYPESYSTEM.ANY_ATOMIC_TYPE_STAR),
180 FunctionConsts::FN_DATA_1);180 FunctionConsts::FN_DATA_1);
181181
182 }182 }
183183
184184
185 {185 {
186 186
187187
188 DECL_WITH_KIND(sctx, fn_base_uri,188 DECL_WITH_KIND(sctx, fn_base_uri,
189 (createQName("http://www.w3.org/2005/xpath-functions","","base-uri"), 189 (createQName("http://www.w3.org/2005/xpath-functions","","base-uri"),
190 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),190 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
191 FunctionConsts::FN_BASE_URI_0);191 FunctionConsts::FN_BASE_URI_0);
192192
193 }193 }
194194
195195
196 {196 {
197 197
198198
199 DECL_WITH_KIND(sctx, fn_base_uri,199 DECL_WITH_KIND(sctx, fn_base_uri,
200 (createQName("http://www.w3.org/2005/xpath-functions","","base-uri"), 200 (createQName("http://www.w3.org/2005/xpath-functions","","base-uri"),
201 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 201 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
202 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),202 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
203 FunctionConsts::FN_BASE_URI_1);203 FunctionConsts::FN_BASE_URI_1);
204204
205 }205 }
206206
207207
208 {208 {
209 209
210210
211 DECL_WITH_KIND(sctx, fn_document_uri_3_0,211 DECL_WITH_KIND(sctx, fn_document_uri_3_0,
212 (createQName("http://www.w3.org/2005/xpath-functions","","document-uri"), 212 (createQName("http://www.w3.org/2005/xpath-functions","","document-uri"),
213 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),213 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
214 FunctionConsts::FN_DOCUMENT_URI_0);214 FunctionConsts::FN_DOCUMENT_URI_0);
215215
216 }216 }
217217
218218
219 {219 {
220 220
221221
222 DECL_WITH_KIND(sctx, fn_document_uri,222 DECL_WITH_KIND(sctx, fn_document_uri,
223 (createQName("http://www.w3.org/2005/xpath-functions","","document-uri"), 223 (createQName("http://www.w3.org/2005/xpath-functions","","document-uri"),
224 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 224 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
225 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),225 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
226 FunctionConsts::FN_DOCUMENT_URI_1);226 FunctionConsts::FN_DOCUMENT_URI_1);
227227
228 }228 }
229229
230230
231 {231 {
232 232
233233
234 DECL_WITH_KIND(sctx, fn_root,234 DECL_WITH_KIND(sctx, fn_root,
235 (createQName("http://www.w3.org/2005/xpath-functions","","root"), 235 (createQName("http://www.w3.org/2005/xpath-functions","","root"),
236 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION),236 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION),
237 FunctionConsts::FN_ROOT_0);237 FunctionConsts::FN_ROOT_0);
238238
239 }239 }
240240
241241
242 {242 {
243 243
244244
245 DECL_WITH_KIND(sctx, fn_root,245 DECL_WITH_KIND(sctx, fn_root,
246 (createQName("http://www.w3.org/2005/xpath-functions","","root"), 246 (createQName("http://www.w3.org/2005/xpath-functions","","root"),
247 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 247 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
248 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION),248 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION),
249 FunctionConsts::FN_ROOT_1);249 FunctionConsts::FN_ROOT_1);
250250
251 }251 }
252252
253}253}
254254
255255
256}256}
257257
258258
259259
260260
=== modified file 'src/functions/pregenerated/func_accessors.h'
--- src/functions/pregenerated/func_accessors.h 2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_accessors.h 2012-04-13 09:38:53 +0000
@@ -1,208 +1,208 @@
1/*1/*
2 * Copyright 2006-2008 The FLWOR Foundation.2 * Copyright 2006-2008 The FLWOR Foundation.
3 *3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at6 * You may obtain a copy of the License at
7 *7 *
8 * http://www.apache.org/licenses/LICENSE-2.08 * http://www.apache.org/licenses/LICENSE-2.0
9 *9 *
10 * Unless required by applicable law or agreed to in writing, software10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and13 * See the License for the specific language governing permissions and
14 * limitations under the License.14 * limitations under the License.
15 */15 */
16 16
17// ******************************************17// ******************************************
18// * *18// * *
19// * THIS IS A GENERATED FILE. DO NOT EDIT! *19// * THIS IS A GENERATED FILE. DO NOT EDIT! *
20// * SEE .xml FILE WITH SAME NAME *20// * SEE .xml FILE WITH SAME NAME *
21// * *21// * *
22// ******************************************22// ******************************************
2323
2424
25#ifndef ZORBA_FUNCTIONS_ACCESSORS_H25#ifndef ZORBA_FUNCTIONS_ACCESSORS_H
26#define ZORBA_FUNCTIONS_ACCESSORS_H26#define ZORBA_FUNCTIONS_ACCESSORS_H
2727
2828
29#include "common/shared_types.h"29#include "common/shared_types.h"
30#include "functions/function_impl.h"30#include "functions/function_impl.h"
3131
3232
33namespace zorba {33namespace zorba {
3434
3535
36void populate_context_accessors(static_context* sctx);36void populate_context_accessors(static_context* sctx);
3737
3838
3939
4040
41//fn:node-name41//fn:node-name
42class fn_node_name_3_0 : public function42class fn_node_name_3_0 : public function
43{43{
44public:44public:
45 fn_node_name_3_0(const signature& sig, FunctionConsts::FunctionKind kind)45 fn_node_name_3_0(const signature& sig, FunctionConsts::FunctionKind kind)
46 : 46 :
47 function(sig, kind)47 function(sig, kind)
48 {48 {
49theXQueryVersion = StaticContextConsts::xquery_version_3_0;49theXQueryVersion = StaticContextConsts::xquery_version_3_0;
50 }50 }
5151
52 bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }52 bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
5353
54 CODEGEN_DECL();54 CODEGEN_DECL();
55};55};
5656
57//fn:node-name57//fn:node-name
58class fn_node_name : public function58class fn_node_name : public function
59{59{
60public:60public:
61 fn_node_name(const signature& sig, FunctionConsts::FunctionKind kind)61 fn_node_name(const signature& sig, FunctionConsts::FunctionKind kind)
62 : 62 :
63 function(sig, kind)63 function(sig, kind)
64 {64 {
6565
66 }66 }
6767
68 bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }68 bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
6969
70 CODEGEN_DECL();70 CODEGEN_DECL();
71};71};
7272
7373
74//fn:nilled74//fn:nilled
75class fn_nilled : public function75class fn_nilled : public function
76{76{
77public:77public:
78 fn_nilled(const signature& sig, FunctionConsts::FunctionKind kind)78 fn_nilled(const signature& sig, FunctionConsts::FunctionKind kind)
79 : 79 :
80 function(sig, kind)80 function(sig, kind)
81 {81 {
8282
83 }83 }
8484
85 bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }85 bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
8686
87 CODEGEN_DECL();87 CODEGEN_DECL();
88};88};
8989
9090
91//fn:string91//fn:string
92class fn_string : public function92class fn_string : public function
93{93{
94public:94public:
95 fn_string(const signature& sig, FunctionConsts::FunctionKind kind)95 fn_string(const signature& sig, FunctionConsts::FunctionKind kind)
96 : 96 :
97 function(sig, kind)97 function(sig, kind)
98 {98 {
9999
100 }100 }
101101
102 bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }102 bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
103103
104 CODEGEN_DECL();104 CODEGEN_DECL();
105};105};
106106
107107
108//fn:data108//fn:data
109class fn_data : public function109class fn_data : public function
110{110{
111public:111public:
112 fn_data(const signature& sig, FunctionConsts::FunctionKind kind)112 fn_data(const signature& sig, FunctionConsts::FunctionKind kind)
113 : 113 :
114 function(sig, kind)114 function(sig, kind)
115 {115 {
116116
117 }117 }
118118
119 xqtref_t getReturnType(const fo_expr* caller) const;119 xqtref_t getReturnType(const fo_expr* caller) const;
120120
121 bool isMap(ulong producer) const { return producer == 0; }121 bool isMap(ulong producer) const { return producer == 0; }
122122
123 BoolAnnotationValue ignoresSortedNodes(expr* fo, csize producer) const;123 BoolAnnotationValue ignoresSortedNodes(expr* fo, csize producer) const;
124124
125 BoolAnnotationValue ignoresDuplicateNodes(expr* fo, csize producer) const;125 BoolAnnotationValue ignoresDuplicateNodes(expr* fo, csize producer) const;
126126
127 bool mustCopyInputNodes(expr* fo, csize producer) const;127 bool mustCopyInputNodes(expr* fo, csize producer) const;
128128
129 CODEGEN_DECL();129 CODEGEN_DECL();
130};130};
131131
132132
133//fn:base-uri133//fn:base-uri
134class fn_base_uri : public function134class fn_base_uri : public function
135{135{
136public:136public:
137 fn_base_uri(const signature& sig, FunctionConsts::FunctionKind kind)137 fn_base_uri(const signature& sig, FunctionConsts::FunctionKind kind)
138 : 138 :
139 function(sig, kind)139 function(sig, kind)
140 {140 {
141141
142 }142 }
143143
144 bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }144 bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
145145
146 CODEGEN_DECL();146 CODEGEN_DECL();
147};147};
148148
149149
150//fn:document-uri150//fn:document-uri
151class fn_document_uri_3_0 : public function151class fn_document_uri_3_0 : public function
152{152{
153public:153public:
154 fn_document_uri_3_0(const signature& sig, FunctionConsts::FunctionKind kind)154 fn_document_uri_3_0(const signature& sig, FunctionConsts::FunctionKind kind)
155 : 155 :
156 function(sig, kind)156 function(sig, kind)
157 {157 {
158theXQueryVersion = StaticContextConsts::xquery_version_3_0;158theXQueryVersion = StaticContextConsts::xquery_version_3_0;
159 }159 }
160160
161 bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }161 bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
162162
163 CODEGEN_DECL();163 CODEGEN_DECL();
164};164};
165165
166//fn:document-uri166//fn:document-uri
167class fn_document_uri : public function167class fn_document_uri : public function
168{168{
169public:169public:
170 fn_document_uri(const signature& sig, FunctionConsts::FunctionKind kind)170 fn_document_uri(const signature& sig, FunctionConsts::FunctionKind kind)
171 : 171 :
172 function(sig, kind)172 function(sig, kind)
173 {173 {
174174
175 }175 }
176176
177 bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }177 bool mustCopyInputNodes(expr* fo, csize producer) const { return false; }
178178
179 CODEGEN_DECL();179 CODEGEN_DECL();
180};180};
181181
182182
183//fn:root183//fn:root
184class fn_root : public function184class fn_root : public function
185{185{
186public:186public:
187 fn_root(const signature& sig, FunctionConsts::FunctionKind kind)187 fn_root(const signature& sig, FunctionConsts::FunctionKind kind)
188 : 188 :
189 function(sig, kind)189 function(sig, kind)
190 {190 {
191191
192 }192 }
193193
194 bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }194 bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
195195
196 CODEGEN_DECL();196 CODEGEN_DECL();
197};197};
198198
199199
200} //namespace zorba200} //namespace zorba
201201
202202
203#endif203#endif
204/*204/*
205 * Local variables:205 * Local variables:
206 * mode: c++206 * mode: c++
207 * End:207 * End:
208 */ 208 */
209209
=== modified file 'src/functions/pregenerated/func_any_uri.cpp'
--- src/functions/pregenerated/func_any_uri.cpp 2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_any_uri.cpp 2012-04-13 09:38:53 +0000
@@ -1,76 +1,76 @@
1/*1/*
2 * Copyright 2006-2008 The FLWOR Foundation.2 * Copyright 2006-2008 The FLWOR Foundation.
3 *3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at6 * You may obtain a copy of the License at
7 *7 *
8 * http://www.apache.org/licenses/LICENSE-2.08 * http://www.apache.org/licenses/LICENSE-2.0
9 *9 *
10 * Unless required by applicable law or agreed to in writing, software10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and13 * See the License for the specific language governing permissions and
14 * limitations under the License.14 * limitations under the License.
15 */15 */
16 16
17// ******************************************17// ******************************************
18// * *18// * *
19// * THIS IS A GENERATED FILE. DO NOT EDIT! *19// * THIS IS A GENERATED FILE. DO NOT EDIT! *
20// * SEE .xml FILE WITH SAME NAME *20// * SEE .xml FILE WITH SAME NAME *
21// * *21// * *
22// ******************************************22// ******************************************
2323
2424
25#include "stdafx.h"25#include "stdafx.h"
26#include "runtime/any_uri/any_uri.h"26#include "runtime/any_uri/any_uri.h"
27#include "functions/func_any_uri.h"27#include "functions/func_any_uri.h"
2828
2929
30namespace zorba{30namespace zorba{
3131
3232
3333
34PlanIter_t fn_resolve_uri::codegen(34PlanIter_t fn_resolve_uri::codegen(
35 CompilerCB*,35 CompilerCB*,
36 static_context* sctx,36 static_context* sctx,
37 const QueryLoc& loc,37 const QueryLoc& loc,
38 std::vector<PlanIter_t>& argv,38 std::vector<PlanIter_t>& argv,
39 expr& ann) const39 expr& ann) const
40{40{
41 return new ResolveUriIterator(sctx, loc, argv);41 return new ResolveUriIterator(sctx, loc, argv);
42}42}
4343
44void populate_context_any_uri(static_context* sctx)44void populate_context_any_uri(static_context* sctx)
45{45{
46 {46 {
47 47
4848
49 DECL_WITH_KIND(sctx, fn_resolve_uri,49 DECL_WITH_KIND(sctx, fn_resolve_uri,
50 (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri"), 50 (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri"),
51 GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 51 GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
52 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),52 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
53 FunctionConsts::FN_RESOLVE_URI_1);53 FunctionConsts::FN_RESOLVE_URI_1);
5454
55 }55 }
5656
5757
58 {58 {
59 59
6060
61 DECL_WITH_KIND(sctx, fn_resolve_uri,61 DECL_WITH_KIND(sctx, fn_resolve_uri,
62 (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri"), 62 (createQName("http://www.w3.org/2005/xpath-functions","","resolve-uri"),
63 GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 63 GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
64 GENV_TYPESYSTEM.STRING_TYPE_ONE, 64 GENV_TYPESYSTEM.STRING_TYPE_ONE,
65 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),65 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
66 FunctionConsts::FN_RESOLVE_URI_2);66 FunctionConsts::FN_RESOLVE_URI_2);
6767
68 }68 }
6969
70}70}
7171
7272
73}73}
7474
7575
7676
7777
=== modified file 'src/functions/pregenerated/func_any_uri.h'
--- src/functions/pregenerated/func_any_uri.h 2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_any_uri.h 2012-04-13 09:38:53 +0000
@@ -1,66 +1,66 @@
1/*1/*
2 * Copyright 2006-2008 The FLWOR Foundation.2 * Copyright 2006-2008 The FLWOR Foundation.
3 *3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at6 * You may obtain a copy of the License at
7 *7 *
8 * http://www.apache.org/licenses/LICENSE-2.08 * http://www.apache.org/licenses/LICENSE-2.0
9 *9 *
10 * Unless required by applicable law or agreed to in writing, software10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and13 * See the License for the specific language governing permissions and
14 * limitations under the License.14 * limitations under the License.
15 */15 */
16 16
17// ******************************************17// ******************************************
18// * *18// * *
19// * THIS IS A GENERATED FILE. DO NOT EDIT! *19// * THIS IS A GENERATED FILE. DO NOT EDIT! *
20// * SEE .xml FILE WITH SAME NAME *20// * SEE .xml FILE WITH SAME NAME *
21// * *21// * *
22// ******************************************22// ******************************************
2323
2424
25#ifndef ZORBA_FUNCTIONS_ANY_URI_H25#ifndef ZORBA_FUNCTIONS_ANY_URI_H
26#define ZORBA_FUNCTIONS_ANY_URI_H26#define ZORBA_FUNCTIONS_ANY_URI_H
2727
2828
29#include "common/shared_types.h"29#include "common/shared_types.h"
30#include "functions/function_impl.h"30#include "functions/function_impl.h"
3131
3232
33namespace zorba {33namespace zorba {
3434
3535
36void populate_context_any_uri(static_context* sctx);36void populate_context_any_uri(static_context* sctx);
3737
3838
3939
4040
41//fn:resolve-uri41//fn:resolve-uri
42class fn_resolve_uri : public function42class fn_resolve_uri : public function
43{43{
44public:44public:
45 fn_resolve_uri(const signature& sig, FunctionConsts::FunctionKind kind)45 fn_resolve_uri(const signature& sig, FunctionConsts::FunctionKind kind)
46 : 46 :
47 function(sig, kind)47 function(sig, kind)
48 {48 {
4949
50 }50 }
5151
52 bool accessesDynCtx() const { return true; }52 bool accessesDynCtx() const { return true; }
5353
54 CODEGEN_DECL();54 CODEGEN_DECL();
55};55};
5656
5757
58} //namespace zorba58} //namespace zorba
5959
6060
61#endif61#endif
62/*62/*
63 * Local variables:63 * Local variables:
64 * mode: c++64 * mode: c++
65 * End:65 * End:
66 */ 66 */
6767
=== modified file 'src/functions/pregenerated/func_base64.cpp'
--- src/functions/pregenerated/func_base64.cpp 2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_base64.cpp 2012-04-13 09:38:53 +0000
@@ -1,85 +1,85 @@
1/*1/*
2 * Copyright 2006-2008 The FLWOR Foundation.2 * Copyright 2006-2008 The FLWOR Foundation.
3 *3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at6 * You may obtain a copy of the License at
7 *7 *
8 * http://www.apache.org/licenses/LICENSE-2.08 * http://www.apache.org/licenses/LICENSE-2.0
9 *9 *
10 * Unless required by applicable law or agreed to in writing, software10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and13 * See the License for the specific language governing permissions and
14 * limitations under the License.14 * limitations under the License.
15 */15 */
16 16
17// ******************************************17// ******************************************
18// * *18// * *
19// * THIS IS A GENERATED FILE. DO NOT EDIT! *19// * THIS IS A GENERATED FILE. DO NOT EDIT! *
20// * SEE .xml FILE WITH SAME NAME *20// * SEE .xml FILE WITH SAME NAME *
21// * *21// * *
22// ******************************************22// ******************************************
2323
2424
25#include "stdafx.h"25#include "stdafx.h"
26#include "runtime/base64/base64.h"26#include "runtime/base64/base64.h"
27#include "functions/func_base64.h"27#include "functions/func_base64.h"
2828
2929
30namespace zorba{30namespace zorba{
3131
3232
3333
34PlanIter_t fn_zorba_base64_decode::codegen(34PlanIter_t fn_zorba_base64_decode::codegen(
35 CompilerCB*,35 CompilerCB*,
36 static_context* sctx,36 static_context* sctx,
37 const QueryLoc& loc,37 const QueryLoc& loc,
38 std::vector<PlanIter_t>& argv,38 std::vector<PlanIter_t>& argv,
39 expr& ann) const39 expr& ann) const
40{40{
41 return new Base64DecodeIterator(sctx, loc, argv);41 return new Base64DecodeIterator(sctx, loc, argv);
42}42}
4343
44PlanIter_t fn_zorba_base64_encode::codegen(44PlanIter_t fn_zorba_base64_encode::codegen(
45 CompilerCB*,45 CompilerCB*,
46 static_context* sctx,46 static_context* sctx,
47 const QueryLoc& loc,47 const QueryLoc& loc,
48 std::vector<PlanIter_t>& argv,48 std::vector<PlanIter_t>& argv,
49 expr& ann) const49 expr& ann) const
50{50{
51 return new Base64EncodeIterator(sctx, loc, argv);51 return new Base64EncodeIterator(sctx, loc, argv);
52}52}
5353
54void populate_context_base64(static_context* sctx)54void populate_context_base64(static_context* sctx)
55{55{
56 {56 {
57 57
5858
59 DECL_WITH_KIND(sctx, fn_zorba_base64_decode,59 DECL_WITH_KIND(sctx, fn_zorba_base64_decode,
60 (createQName("http://www.zorba-xquery.com/modules/converters/base64","","decode"), 60 (createQName("http://www.zorba-xquery.com/modules/converters/base64","","decode"),
61 GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE, 61 GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE,
62 GENV_TYPESYSTEM.STRING_TYPE_ONE),62 GENV_TYPESYSTEM.STRING_TYPE_ONE),
63 FunctionConsts::FN_ZORBA_BASE64_DECODE_1);63 FunctionConsts::FN_ZORBA_BASE64_DECODE_1);
6464
65 }65 }
6666
6767
68 {68 {
69 69
7070
71 DECL_WITH_KIND(sctx, fn_zorba_base64_encode,71 DECL_WITH_KIND(sctx, fn_zorba_base64_encode,
72 (createQName("http://www.zorba-xquery.com/modules/converters/base64","","encode"), 72 (createQName("http://www.zorba-xquery.com/modules/converters/base64","","encode"),
73 GENV_TYPESYSTEM.STRING_TYPE_ONE, 73 GENV_TYPESYSTEM.STRING_TYPE_ONE,
74 GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE),74 GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE),
75 FunctionConsts::FN_ZORBA_BASE64_ENCODE_1);75 FunctionConsts::FN_ZORBA_BASE64_ENCODE_1);
7676
77 }77 }
7878
79}79}
8080
8181
82}82}
8383
8484
8585
8686
=== modified file 'src/functions/pregenerated/func_base64.h'
--- src/functions/pregenerated/func_base64.h 2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_base64.h 2012-04-13 09:38:53 +0000
@@ -1,79 +1,79 @@
1/*1/*
2 * Copyright 2006-2008 The FLWOR Foundation.2 * Copyright 2006-2008 The FLWOR Foundation.
3 *3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at6 * You may obtain a copy of the License at
7 *7 *
8 * http://www.apache.org/licenses/LICENSE-2.08 * http://www.apache.org/licenses/LICENSE-2.0
9 *9 *
10 * Unless required by applicable law or agreed to in writing, software10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and13 * See the License for the specific language governing permissions and
14 * limitations under the License.14 * limitations under the License.
15 */15 */
16 16
17// ******************************************17// ******************************************
18// * *18// * *
19// * THIS IS A GENERATED FILE. DO NOT EDIT! *19// * THIS IS A GENERATED FILE. DO NOT EDIT! *
20// * SEE .xml FILE WITH SAME NAME *20// * SEE .xml FILE WITH SAME NAME *
21// * *21// * *
22// ******************************************22// ******************************************
2323
2424
25#ifndef ZORBA_FUNCTIONS_BASE64_H25#ifndef ZORBA_FUNCTIONS_BASE64_H
26#define ZORBA_FUNCTIONS_BASE64_H26#define ZORBA_FUNCTIONS_BASE64_H
2727
2828
29#include "common/shared_types.h"29#include "common/shared_types.h"
30#include "functions/function_impl.h"30#include "functions/function_impl.h"
3131
3232
33namespace zorba {33namespace zorba {
3434
3535
36void populate_context_base64(static_context* sctx);36void populate_context_base64(static_context* sctx);
3737
3838
3939
4040
41//fn-zorba-base64:decode41//fn-zorba-base64:decode
42class fn_zorba_base64_decode : public function42class fn_zorba_base64_decode : public function
43{43{
44public:44public:
45 fn_zorba_base64_decode(const signature& sig, FunctionConsts::FunctionKind kind)45 fn_zorba_base64_decode(const signature& sig, FunctionConsts::FunctionKind kind)
46 : 46 :
47 function(sig, kind)47 function(sig, kind)
48 {48 {
4949
50 }50 }
5151
52 CODEGEN_DECL();52 CODEGEN_DECL();
53};53};
5454
5555
56//fn-zorba-base64:encode56//fn-zorba-base64:encode
57class fn_zorba_base64_encode : public function57class fn_zorba_base64_encode : public function
58{58{
59public:59public:
60 fn_zorba_base64_encode(const signature& sig, FunctionConsts::FunctionKind kind)60 fn_zorba_base64_encode(const signature& sig, FunctionConsts::FunctionKind kind)
61 : 61 :
62 function(sig, kind)62 function(sig, kind)
63 {63 {
6464
65 }65 }
6666
67 CODEGEN_DECL();67 CODEGEN_DECL();
68};68};
6969
7070
71} //namespace zorba71} //namespace zorba
7272
7373
74#endif74#endif
75/*75/*
76 * Local variables:76 * Local variables:
77 * mode: c++77 * mode: c++
78 * End:78 * End:
79 */ 79 */
8080
=== modified file 'src/functions/pregenerated/func_booleans.cpp'
--- src/functions/pregenerated/func_booleans.cpp 2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_booleans.cpp 2012-04-13 09:38:53 +0000
@@ -1,110 +1,110 @@
1/*1/*
2 * Copyright 2006-2008 The FLWOR Foundation.2 * Copyright 2006-2008 The FLWOR Foundation.
3 *3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at6 * You may obtain a copy of the License at
7 *7 *
8 * http://www.apache.org/licenses/LICENSE-2.08 * http://www.apache.org/licenses/LICENSE-2.0
9 *9 *
10 * Unless required by applicable law or agreed to in writing, software10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and13 * See the License for the specific language governing permissions and
14 * limitations under the License.14 * limitations under the License.
15 */15 */
16 16
17// ******************************************17// ******************************************
18// * *18// * *
19// * THIS IS A GENERATED FILE. DO NOT EDIT! *19// * THIS IS A GENERATED FILE. DO NOT EDIT! *
20// * SEE .xml FILE WITH SAME NAME *20// * SEE .xml FILE WITH SAME NAME *
21// * *21// * *
22// ******************************************22// ******************************************
2323
2424
25#include "stdafx.h"25#include "stdafx.h"
26#include "runtime/booleans/booleans.h"26#include "runtime/booleans/booleans.h"
27#include "functions/func_booleans.h"27#include "functions/func_booleans.h"
2828
2929
30namespace zorba{30namespace zorba{
3131
3232
3333
34PlanIter_t op_is_same_node::codegen(34PlanIter_t op_is_same_node::codegen(
35 CompilerCB*,35 CompilerCB*,
36 static_context* sctx,36 static_context* sctx,
37 const QueryLoc& loc,37 const QueryLoc& loc,
38 std::vector<PlanIter_t>& argv,38 std::vector<PlanIter_t>& argv,
39 expr& ann) const39 expr& ann) const
40{40{
41 return new IsSameNodeIterator(sctx, loc, argv);41 return new IsSameNodeIterator(sctx, loc, argv);
42}42}
4343
44PlanIter_t op_node_before::codegen(44PlanIter_t op_node_before::codegen(
45 CompilerCB*,45 CompilerCB*,
46 static_context* sctx,46 static_context* sctx,
47 const QueryLoc& loc,47 const QueryLoc& loc,
48 std::vector<PlanIter_t>& argv,48 std::vector<PlanIter_t>& argv,
49 expr& ann) const49 expr& ann) const
50{50{
51 return new NodeBeforeIterator(sctx, loc, argv);51 return new NodeBeforeIterator(sctx, loc, argv);
52}52}
5353
54PlanIter_t op_node_after::codegen(54PlanIter_t op_node_after::codegen(
55 CompilerCB*,55 CompilerCB*,
56 static_context* sctx,56 static_context* sctx,
57 const QueryLoc& loc,57 const QueryLoc& loc,
58 std::vector<PlanIter_t>& argv,58 std::vector<PlanIter_t>& argv,
59 expr& ann) const59 expr& ann) const
60{60{
61 return new NodeAfterIterator(sctx, loc, argv);61 return new NodeAfterIterator(sctx, loc, argv);
62}62}
6363
64void populate_context_booleans(static_context* sctx)64void populate_context_booleans(static_context* sctx)
65{65{
66 {66 {
67 67
6868
69 DECL_WITH_KIND(sctx, op_is_same_node,69 DECL_WITH_KIND(sctx, op_is_same_node,
70 (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","is-same-node"), 70 (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","is-same-node"),
71 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 71 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
72 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 72 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
73 GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),73 GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
74 FunctionConsts::OP_IS_SAME_NODE_2);74 FunctionConsts::OP_IS_SAME_NODE_2);
7575
76 }76 }
7777
7878
79 {79 {
80 80
8181
82 DECL_WITH_KIND(sctx, op_node_before,82 DECL_WITH_KIND(sctx, op_node_before,
83 (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-before"), 83 (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-before"),
84 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 84 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
85 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 85 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
86 GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),86 GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
87 FunctionConsts::OP_NODE_BEFORE_2);87 FunctionConsts::OP_NODE_BEFORE_2);
8888
89 }89 }
9090
9191
92 {92 {
93 93
9494
95 DECL_WITH_KIND(sctx, op_node_after,95 DECL_WITH_KIND(sctx, op_node_after,
96 (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-after"), 96 (createQName("http://www.zorba-xquery.com/internal/xquery-ops","","node-after"),
97 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 97 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
98 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION, 98 GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
99 GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),99 GENV_TYPESYSTEM.BOOLEAN_TYPE_QUESTION),
100 FunctionConsts::OP_NODE_AFTER_2);100 FunctionConsts::OP_NODE_AFTER_2);
101101
102 }102 }
103103
104}104}
105105
106106
107}107}
108108
109109
110110
111111
=== modified file 'src/functions/pregenerated/func_booleans.h'
--- src/functions/pregenerated/func_booleans.h 2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_booleans.h 2012-04-13 09:38:53 +0000
@@ -1,100 +1,100 @@
1/*1/*
2 * Copyright 2006-2008 The FLWOR Foundation.2 * Copyright 2006-2008 The FLWOR Foundation.
3 *3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at6 * You may obtain a copy of the License at
7 *7 *
8 * http://www.apache.org/licenses/LICENSE-2.08 * http://www.apache.org/licenses/LICENSE-2.0
9 *9 *
10 * Unless required by applicable law or agreed to in writing, software10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and13 * See the License for the specific language governing permissions and
14 * limitations under the License.14 * limitations under the License.
15 */15 */
16 16
17// ******************************************17// ******************************************
18// * *18// * *
19// * THIS IS A GENERATED FILE. DO NOT EDIT! *19// * THIS IS A GENERATED FILE. DO NOT EDIT! *
20// * SEE .xml FILE WITH SAME NAME *20// * SEE .xml FILE WITH SAME NAME *
21// * *21// * *
22// ******************************************22// ******************************************
2323
2424
25#ifndef ZORBA_FUNCTIONS_BOOLEANS_H25#ifndef ZORBA_FUNCTIONS_BOOLEANS_H
26#define ZORBA_FUNCTIONS_BOOLEANS_H26#define ZORBA_FUNCTIONS_BOOLEANS_H
2727
2828
29#include "common/shared_types.h"29#include "common/shared_types.h"
30#include "functions/function_impl.h"30#include "functions/function_impl.h"
3131
3232
33namespace zorba {33namespace zorba {
3434
3535
36void populate_context_booleans(static_context* sctx);36void populate_context_booleans(static_context* sctx);
3737
3838
3939
4040
41//op:is-same-node41//op:is-same-node
42class op_is_same_node : public function42class op_is_same_node : public function
43{43{
44public:44public:
45 op_is_same_node(const signature& sig, FunctionConsts::FunctionKind kind)45 op_is_same_node(const signature& sig, FunctionConsts::FunctionKind kind)
46 : 46 :
47 function(sig, kind)47 function(sig, kind)
48 {48 {
4949
50 }50 }
5151
52 bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }52 bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
5353
54 CODEGEN_DECL();54 CODEGEN_DECL();
55};55};
5656
5757
58//op:node-before58//op:node-before
59class op_node_before : public function59class op_node_before : public function
60{60{
61public:61public:
62 op_node_before(const signature& sig, FunctionConsts::FunctionKind kind)62 op_node_before(const signature& sig, FunctionConsts::FunctionKind kind)
63 : 63 :
64 function(sig, kind)64 function(sig, kind)
65 {65 {
6666
67 }67 }
6868
69 bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }69 bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
7070
71 CODEGEN_DECL();71 CODEGEN_DECL();
72};72};
7373
7474
75//op:node-after75//op:node-after
76class op_node_after : public function76class op_node_after : public function
77{77{
78public:78public:
79 op_node_after(const signature& sig, FunctionConsts::FunctionKind kind)79 op_node_after(const signature& sig, FunctionConsts::FunctionKind kind)
80 : 80 :
81 function(sig, kind)81 function(sig, kind)
82 {82 {
8383
84 }84 }
8585
86 bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }86 bool mustCopyInputNodes(expr* fo, csize producer) const { return true; }
8787
88 CODEGEN_DECL();88 CODEGEN_DECL();
89};89};
9090
9191
92} //namespace zorba92} //namespace zorba
9393
9494
95#endif95#endif
96/*96/*
97 * Local variables:97 * Local variables:
98 * mode: c++98 * mode: c++
99 * End:99 * End:
100 */ 100 */
101101
=== modified file 'src/functions/pregenerated/func_collections.cpp'
--- src/functions/pregenerated/func_collections.cpp 2012-03-28 23:58:23 +0000
+++ src/functions/pregenerated/func_collections.cpp 2012-04-13 09:38:53 +0000
@@ -171,6 +171,16 @@
171 return new DeclaredICsIterator(sctx, loc, argv);171 return new DeclaredICsIterator(sctx, loc, argv);
172}172}
173173
174PlanIter_t fn_uri_collection::codegen(
175 CompilerCB*,
176 static_context* sctx,
177 const QueryLoc& loc,
178 std::vector<PlanIter_t>& argv,
179 expr& ann) const
180{
181 return new FnURICollectionIterator(sctx, loc, argv);
182}
183
174void populate_context_collections(static_context* sctx)184void populate_context_collections(static_context* sctx)
175{185{
176 {186 {
@@ -892,6 +902,29 @@
892902
893 }903 }
894904
905
906 {
907
908
909 DECL_WITH_KIND(sctx, fn_uri_collection,
910 (createQName("http://www.w3.org/2005/xpath-functions","","uri-collection"),
911 GENV_TYPESYSTEM.ANY_URI_TYPE_STAR),
912 FunctionConsts::FN_URI_COLLECTION_0);
913
914 }
915
916
917 {
918
919
920 DECL_WITH_KIND(sctx, fn_uri_collection,
921 (createQName("http://www.w3.org/2005/xpath-functions","","uri-collection"),
922 GENV_TYPESYSTEM.STRING_TYPE_QUESTION,
923 GENV_TYPESYSTEM.ANY_URI_TYPE_STAR),
924 FunctionConsts::FN_URI_COLLECTION_1);
925
926 }
927
895}928}
896929
897930
898931
=== modified file 'src/functions/pregenerated/func_collections.h'
--- src/functions/pregenerated/func_collections.h 2012-03-28 23:58:23 +0000
+++ src/functions/pregenerated/func_collections.h 2012-04-13 09:38:53 +0000
@@ -664,6 +664,21 @@
664};664};
665665
666666
667//fn:uri-collection
668class fn_uri_collection : public function
669{
670public:
671 fn_uri_collection(const signature& sig, FunctionConsts::FunctionKind kind)
672 :
673 function(sig, kind)
674 {
675
676 }
677
678 CODEGEN_DECL();
679};
680
681
667} //namespace zorba682} //namespace zorba
668683
669684
670685
=== modified file 'src/functions/pregenerated/func_context.cpp'
--- src/functions/pregenerated/func_context.cpp 2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_context.cpp 2012-04-13 09:38:53 +0000
@@ -1,209 +1,209 @@
1/*1/*
2 * Copyright 2006-2008 The FLWOR Foundation.2 * Copyright 2006-2008 The FLWOR Foundation.
3 *3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at6 * You may obtain a copy of the License at
7 *7 *
8 * http://www.apache.org/licenses/LICENSE-2.08 * http://www.apache.org/licenses/LICENSE-2.0
9 *9 *
10 * Unless required by applicable law or agreed to in writing, software10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and13 * See the License for the specific language governing permissions and
14 * limitations under the License.14 * limitations under the License.
15 */15 */
16 16
17// ******************************************17// ******************************************
18// * *18// * *
19// * THIS IS A GENERATED FILE. DO NOT EDIT! *19// * THIS IS A GENERATED FILE. DO NOT EDIT! *
20// * SEE .xml FILE WITH SAME NAME *20// * SEE .xml FILE WITH SAME NAME *
21// * *21// * *
22// ******************************************22// ******************************************
2323
2424
25#include "stdafx.h"25#include "stdafx.h"
26#include "runtime/context/context.h"26#include "runtime/context/context.h"
27#include "functions/func_context.h"27#include "functions/func_context.h"
2828
2929
30namespace zorba{30namespace zorba{
3131
3232
3333
34PlanIter_t fn_current_dateTime::codegen(34PlanIter_t fn_current_dateTime::codegen(
35 CompilerCB*,35 CompilerCB*,
36 static_context* sctx,36 static_context* sctx,
37 const QueryLoc& loc,37 const QueryLoc& loc,
38 std::vector<PlanIter_t>& argv,38 std::vector<PlanIter_t>& argv,
39 expr& ann) const39 expr& ann) const
40{40{
41 return new CurrentDateTimeIterator(sctx, loc, argv);41 return new CurrentDateTimeIterator(sctx, loc, argv);
42}42}
4343
44PlanIter_t fn_current_date::codegen(44PlanIter_t fn_current_date::codegen(
45 CompilerCB*,45 CompilerCB*,
46 static_context* sctx,46 static_context* sctx,
47 const QueryLoc& loc,47 const QueryLoc& loc,
48 std::vector<PlanIter_t>& argv,48 std::vector<PlanIter_t>& argv,
49 expr& ann) const49 expr& ann) const
50{50{
51 return new CurrentDateIterator(sctx, loc, argv);51 return new CurrentDateIterator(sctx, loc, argv);
52}52}
5353
54PlanIter_t fn_current_time::codegen(54PlanIter_t fn_current_time::codegen(
55 CompilerCB*,55 CompilerCB*,
56 static_context* sctx,56 static_context* sctx,
57 const QueryLoc& loc,57 const QueryLoc& loc,
58 std::vector<PlanIter_t>& argv,58 std::vector<PlanIter_t>& argv,
59 expr& ann) const59 expr& ann) const
60{60{
61 return new CurrentTimeIterator(sctx, loc, argv);61 return new CurrentTimeIterator(sctx, loc, argv);
62}62}
6363
64PlanIter_t fn_implicit_timezone::codegen(64PlanIter_t fn_implicit_timezone::codegen(
65 CompilerCB*,65 CompilerCB*,
66 static_context* sctx,66 static_context* sctx,
67 const QueryLoc& loc,67 const QueryLoc& loc,
68 std::vector<PlanIter_t>& argv,68 std::vector<PlanIter_t>& argv,
69 expr& ann) const69 expr& ann) const
70{70{
71 return new ImplicitTimezoneIterator(sctx, loc, argv);71 return new ImplicitTimezoneIterator(sctx, loc, argv);
72}72}
7373
74PlanIter_t fn_default_collation::codegen(74PlanIter_t fn_default_collation::codegen(
75 CompilerCB*,75 CompilerCB*,
76 static_context* sctx,76 static_context* sctx,
77 const QueryLoc& loc,77 const QueryLoc& loc,
78 std::vector<PlanIter_t>& argv,78 std::vector<PlanIter_t>& argv,
79 expr& ann) const79 expr& ann) const
80{80{
81 return new DefaultCollationIterator(sctx, loc, argv);81 return new DefaultCollationIterator(sctx, loc, argv);
82}82}
8383
84PlanIter_t fn_position::codegen(84PlanIter_t fn_position::codegen(
85 CompilerCB*,85 CompilerCB*,
86 static_context* sctx,86 static_context* sctx,
87 const QueryLoc& loc,87 const QueryLoc& loc,
88 std::vector<PlanIter_t>& argv,88 std::vector<PlanIter_t>& argv,
89 expr& ann) const89 expr& ann) const
90{90{
91 return NULL;91 return NULL;
92}92}
9393
94PlanIter_t fn_last::codegen(94PlanIter_t fn_last::codegen(
95 CompilerCB*,95 CompilerCB*,
96 static_context* sctx,96 static_context* sctx,
97 const QueryLoc& loc,97 const QueryLoc& loc,
98 std::vector<PlanIter_t>& argv,98 std::vector<PlanIter_t>& argv,
99 expr& ann) const99 expr& ann) const
100{100{
101 return NULL;101 return NULL;
102}102}
103103
104PlanIter_t fn_static_base_uri::codegen(104PlanIter_t fn_static_base_uri::codegen(
105 CompilerCB*,105 CompilerCB*,
106 static_context* sctx,106 static_context* sctx,
107 const QueryLoc& loc,107 const QueryLoc& loc,
108 std::vector<PlanIter_t>& argv,108 std::vector<PlanIter_t>& argv,
109 expr& ann) const109 expr& ann) const
110{110{
111 return NULL;111 return NULL;
112}112}
113113
114void populate_context_context(static_context* sctx)114void populate_context_context(static_context* sctx)
115{115{
116 {116 {
117 117
118118
119 DECL_WITH_KIND(sctx, fn_current_dateTime,119 DECL_WITH_KIND(sctx, fn_current_dateTime,
120 (createQName("http://www.w3.org/2005/xpath-functions","","current-dateTime"), 120 (createQName("http://www.w3.org/2005/xpath-functions","","current-dateTime"),
121 GENV_TYPESYSTEM.DATETIME_TYPE_ONE),121 GENV_TYPESYSTEM.DATETIME_TYPE_ONE),
122 FunctionConsts::FN_CURRENT_DATETIME_0);122 FunctionConsts::FN_CURRENT_DATETIME_0);
123123
124 }124 }
125125
126126
127 {127 {
128 128
129129
130 DECL_WITH_KIND(sctx, fn_current_date,130 DECL_WITH_KIND(sctx, fn_current_date,
131 (createQName("http://www.w3.org/2005/xpath-functions","","current-date"), 131 (createQName("http://www.w3.org/2005/xpath-functions","","current-date"),
132 GENV_TYPESYSTEM.DATE_TYPE_ONE),132 GENV_TYPESYSTEM.DATE_TYPE_ONE),
133 FunctionConsts::FN_CURRENT_DATE_0);133 FunctionConsts::FN_CURRENT_DATE_0);
134134
135 }135 }
136136
137137
138 {138 {
139 139
140140
141 DECL_WITH_KIND(sctx, fn_current_time,141 DECL_WITH_KIND(sctx, fn_current_time,
142 (createQName("http://www.w3.org/2005/xpath-functions","","current-time"), 142 (createQName("http://www.w3.org/2005/xpath-functions","","current-time"),
143 GENV_TYPESYSTEM.TIME_TYPE_ONE),143 GENV_TYPESYSTEM.TIME_TYPE_ONE),
144 FunctionConsts::FN_CURRENT_TIME_0);144 FunctionConsts::FN_CURRENT_TIME_0);
145145
146 }146 }
147147
148148
149 {149 {
150 150
151151
152 DECL_WITH_KIND(sctx, fn_implicit_timezone,152 DECL_WITH_KIND(sctx, fn_implicit_timezone,
153 (createQName("http://www.w3.org/2005/xpath-functions","","implicit-timezone"), 153 (createQName("http://www.w3.org/2005/xpath-functions","","implicit-timezone"),
154 GENV_TYPESYSTEM.DT_DURATION_TYPE_ONE),154 GENV_TYPESYSTEM.DT_DURATION_TYPE_ONE),
155 FunctionConsts::FN_IMPLICIT_TIMEZONE_0);155 FunctionConsts::FN_IMPLICIT_TIMEZONE_0);
156156
157 }157 }
158158
159159
160 {160 {
161 161
162162
163 DECL_WITH_KIND(sctx, fn_default_collation,163 DECL_WITH_KIND(sctx, fn_default_collation,
164 (createQName("http://www.w3.org/2005/xpath-functions","","default-collation"), 164 (createQName("http://www.w3.org/2005/xpath-functions","","default-collation"),
165 GENV_TYPESYSTEM.STRING_TYPE_ONE),165 GENV_TYPESYSTEM.STRING_TYPE_ONE),
166 FunctionConsts::FN_DEFAULT_COLLATION_0);166 FunctionConsts::FN_DEFAULT_COLLATION_0);
167167
168 }168 }
169169
170170
171 {171 {
172 172
173173
174 DECL_WITH_KIND(sctx, fn_position,174 DECL_WITH_KIND(sctx, fn_position,
175 (createQName("http://www.w3.org/2005/xpath-functions","","position"), 175 (createQName("http://www.w3.org/2005/xpath-functions","","position"),
176 GENV_TYPESYSTEM.INTEGER_TYPE_ONE),176 GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
177 FunctionConsts::FN_POSITION_0);177 FunctionConsts::FN_POSITION_0);
178178
179 }179 }
180180
181181
182 {182 {
183 183
184184
185 DECL_WITH_KIND(sctx, fn_last,185 DECL_WITH_KIND(sctx, fn_last,
186 (createQName("http://www.w3.org/2005/xpath-functions","","last"), 186 (createQName("http://www.w3.org/2005/xpath-functions","","last"),
187 GENV_TYPESYSTEM.INTEGER_TYPE_ONE),187 GENV_TYPESYSTEM.INTEGER_TYPE_ONE),
188 FunctionConsts::FN_LAST_0);188 FunctionConsts::FN_LAST_0);
189189
190 }190 }
191191
192192
193 {193 {
194 194
195195
196 DECL_WITH_KIND(sctx, fn_static_base_uri,196 DECL_WITH_KIND(sctx, fn_static_base_uri,
197 (createQName("http://www.w3.org/2005/xpath-functions","","static-base-uri"), 197 (createQName("http://www.w3.org/2005/xpath-functions","","static-base-uri"),
198 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),198 GENV_TYPESYSTEM.ANY_URI_TYPE_QUESTION),
199 FunctionConsts::FN_STATIC_BASE_URI_0);199 FunctionConsts::FN_STATIC_BASE_URI_0);
200200
201 }201 }
202202
203}203}
204204
205205
206}206}
207207
208208
209209
210210
=== modified file 'src/functions/pregenerated/func_context.h'
--- src/functions/pregenerated/func_context.h 2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_context.h 2012-04-13 09:38:53 +0000
@@ -1,179 +1,179 @@
1/*1/*
2 * Copyright 2006-2008 The FLWOR Foundation.2 * Copyright 2006-2008 The FLWOR Foundation.
3 *3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at6 * You may obtain a copy of the License at
7 *7 *
8 * http://www.apache.org/licenses/LICENSE-2.08 * http://www.apache.org/licenses/LICENSE-2.0
9 *9 *
10 * Unless required by applicable law or agreed to in writing, software10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and13 * See the License for the specific language governing permissions and
14 * limitations under the License.14 * limitations under the License.
15 */15 */
16 16
17// ******************************************17// ******************************************
18// * *18// * *
19// * THIS IS A GENERATED FILE. DO NOT EDIT! *19// * THIS IS A GENERATED FILE. DO NOT EDIT! *
20// * SEE .xml FILE WITH SAME NAME *20// * SEE .xml FILE WITH SAME NAME *
21// * *21// * *
22// ******************************************22// ******************************************
2323
2424
25#ifndef ZORBA_FUNCTIONS_CONTEXT_H25#ifndef ZORBA_FUNCTIONS_CONTEXT_H
26#define ZORBA_FUNCTIONS_CONTEXT_H26#define ZORBA_FUNCTIONS_CONTEXT_H
2727
2828
29#include "common/shared_types.h"29#include "common/shared_types.h"
30#include "functions/function_impl.h"30#include "functions/function_impl.h"
3131
3232
33namespace zorba {33namespace zorba {
3434
3535
36void populate_context_context(static_context* sctx);36void populate_context_context(static_context* sctx);
3737
3838
3939
4040
41//fn:current-dateTime41//fn:current-dateTime
42class fn_current_dateTime : public function42class fn_current_dateTime : public function
43{43{
44public:44public:
45 fn_current_dateTime(const signature& sig, FunctionConsts::FunctionKind kind)45 fn_current_dateTime(const signature& sig, FunctionConsts::FunctionKind kind)
46 : 46 :
47 function(sig, kind)47 function(sig, kind)
48 {48 {
4949
50 }50 }
5151
52 bool accessesDynCtx() const { return true; }52 bool accessesDynCtx() const { return true; }
5353
54 CODEGEN_DECL();54 CODEGEN_DECL();
55};55};
5656
5757
58//fn:current-date58//fn:current-date
59class fn_current_date : public function59class fn_current_date : public function
60{60{
61public:61public:
62 fn_current_date(const signature& sig, FunctionConsts::FunctionKind kind)62 fn_current_date(const signature& sig, FunctionConsts::FunctionKind kind)
63 : 63 :
64 function(sig, kind)64 function(sig, kind)
65 {65 {
6666
67 }67 }
6868
69 bool accessesDynCtx() const { return true; }69 bool accessesDynCtx() const { return true; }
7070
71 CODEGEN_DECL();71 CODEGEN_DECL();
72};72};
7373
7474
75//fn:current-time75//fn:current-time
76class fn_current_time : public function76class fn_current_time : public function
77{77{
78public:78public:
79 fn_current_time(const signature& sig, FunctionConsts::FunctionKind kind)79 fn_current_time(const signature& sig, FunctionConsts::FunctionKind kind)
80 : 80 :
81 function(sig, kind)81 function(sig, kind)
82 {82 {
8383
84 }84 }
8585
86 bool accessesDynCtx() const { return true; }86 bool accessesDynCtx() const { return true; }
8787
88 CODEGEN_DECL();88 CODEGEN_DECL();
89};89};
9090
9191
92//fn:implicit-timezone92//fn:implicit-timezone
93class fn_implicit_timezone : public function93class fn_implicit_timezone : public function
94{94{
95public:95public:
96 fn_implicit_timezone(const signature& sig, FunctionConsts::FunctionKind kind)96 fn_implicit_timezone(const signature& sig, FunctionConsts::FunctionKind kind)
97 : 97 :
98 function(sig, kind)98 function(sig, kind)
99 {99 {
100100
101 }101 }
102102
103 bool accessesDynCtx() const { return true; }103 bool accessesDynCtx() const { return true; }
104104
105 CODEGEN_DECL();105 CODEGEN_DECL();
106};106};
107107
108108
109//fn:default-collation109//fn:default-collation
110class fn_default_collation : public function110class fn_default_collation : public function
111{111{
112public:112public:
113 fn_default_collation(const signature& sig, FunctionConsts::FunctionKind kind)113 fn_default_collation(const signature& sig, FunctionConsts::FunctionKind kind)
114 : 114 :
115 function(sig, kind)115 function(sig, kind)
116 {116 {
117117
118 }118 }
119119
120 bool accessesDynCtx() const { return true; }120 bool accessesDynCtx() const { return true; }
121121
122 CODEGEN_DECL();122 CODEGEN_DECL();
123};123};
124124
125125
126//fn:position126//fn:position
127class fn_position : public function127class fn_position : public function
128{128{
129public:129public:
130 fn_position(const signature& sig, FunctionConsts::FunctionKind kind)130 fn_position(const signature& sig, FunctionConsts::FunctionKind kind)
131 : 131 :
132 function(sig, kind)132 function(sig, kind)
133 {133 {
134134
135 }135 }
136136
137 CODEGEN_DECL();137 CODEGEN_DECL();
138};138};
139139
140140
141//fn:last141//fn:last
142class fn_last : public function142class fn_last : public function
143{143{
144public:144public:
145 fn_last(const signature& sig, FunctionConsts::FunctionKind kind)145 fn_last(const signature& sig, FunctionConsts::FunctionKind kind)
146 : 146 :
147 function(sig, kind)147 function(sig, kind)
148 {148 {
149149
150 }150 }
151151
152 CODEGEN_DECL();152 CODEGEN_DECL();
153};153};
154154
155155
156//fn:static-base-uri156//fn:static-base-uri
157class fn_static_base_uri : public function157class fn_static_base_uri : public function
158{158{
159public:159public:
160 fn_static_base_uri(const signature& sig, FunctionConsts::FunctionKind kind)160 fn_static_base_uri(const signature& sig, FunctionConsts::FunctionKind kind)
161 : 161 :
162 function(sig, kind)162 function(sig, kind)
163 {163 {
164164
165 }165 }
166166
167 CODEGEN_DECL();167 CODEGEN_DECL();
168};168};
169169
170170
171} //namespace zorba171} //namespace zorba
172172
173173
174#endif174#endif
175/*175/*
176 * Local variables:176 * Local variables:
177 * mode: c++177 * mode: c++
178 * End:178 * End:
179 */ 179 */
180180
=== modified file 'src/functions/pregenerated/func_debug_iterator.cpp'
--- src/functions/pregenerated/func_debug_iterator.cpp 2012-03-28 05:19:57 +0000
+++ src/functions/pregenerated/func_debug_iterator.cpp 2012-04-13 09:38:53 +0000
@@ -1,41 +1,41 @@
1/*
2 * Copyright 2006-2008 The FLWOR Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17// ******************************************
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches