Merge lp:~zorba-coders/zorba/bug-857263-build-doc into lp:~zorba-coders/zorba/zorba-experimental

Proposed by Chris Hillery on 2012-05-02
Status: Merged
Merged at revision: 10813
Proposed branch: lp:~zorba-coders/zorba/bug-857263-build-doc
Merge into: lp:~zorba-coders/zorba/zorba-experimental
Diff against target: 336364 lines (+168866/-85381)
2500 files modified
CMakeCompiler.txt (+3/-0)
CMakeConfiguration.txt (+5/-9)
CMakeLists.txt (+65/-22)
CPackSourceConfig.cmake.in (+1/-1)
ChangeLog (+203/-13)
KNOWN_ISSUES.txt (+1/-1)
NOTICE.txt (+0/-740)
README.txt (+2/-2)
bin/CMakeLists.txt (+58/-19)
bin/debug_client/debug_command.cpp (+0/-99)
bin/debug_client/event_handler_init.cpp.in (+0/-41)
bin/debug_client/lock_free_queue.cpp (+0/-16)
bin/debug_client/message-handler.xq (+0/-165)
bin/debugger/command.h (+165/-211)
bin/debugger/command_arg.h (+237/-0)
bin/debugger/command_line_handler.cpp (+364/-204)
bin/debugger/command_line_handler.h (+116/-58)
bin/debugger/command_prompt.cpp (+286/-0)
bin/debugger/command_prompt.h (+72/-0)
bin/debugger/config.h.cmake (+24/-0)
bin/debugger/event_handler.cpp (+81/-76)
bin/debugger/event_handler.h (+25/-12)
bin/debugger/lock_free_queue.h (+10/-2)
bin/debugger/main.cpp (+342/-18)
bin/debugger/process_listener.cpp (+109/-0)
bin/debugger/process_listener.h (+75/-0)
bin/debugger/tuple.h (+6/-0)
bin/debugger/xqdb_client.cpp (+63/-0)
bin/debugger/xqdb_client.h (+51/-0)
bin/path_util.cpp (+77/-45)
bin/path_util.h (+15/-24)
bin/test/mymod.xq (+1/-1)
bin/zorbacmd.cpp (+336/-188)
bin/zorbacmdproperties.cpp (+19/-5)
bin/zorbacmdproperties.h (+10/-1)
bin/zorbacmdproperties.txt (+6/-1)
bin/zorbacmdproperties_base.h (+316/-162)
cmake_modules/FindICU.cmake (+46/-0)
cmake_modules/FindLibedit.cmake (+46/-0)
cmake_modules/FindPHP5.cmake (+7/-0)
cmake_modules/Windows/ProxyFindModule.cmake (+37/-0)
cmake_modules/ZorbaModule.cmake (+395/-148)
config/CMakeLists.txt (+5/-5)
config/ExternalModuleConfig.cmake.in (+26/-9)
config/ZorbaConfig.cmake.in (+7/-4)
config/ZorbaUse.cmake (+0/-4)
doc/CMakeLists.txt (+1/-0)
doc/c/doxy.config.in (+1112/-555)
doc/c/manual/indexpage.dox (+1/-1)
doc/code/CMakeLists.txt (+14/-14)
doc/cxx/doxy.config.in (+1118/-554)
doc/cxx/examples/context.cpp (+4/-0)
doc/cxx/examples/errors.cpp (+4/-4)
doc/cxx/examples/simple.cpp (+17/-10)
doc/java/doxy.config.in (+1113/-555)
doc/java/examples/CMakeLists.txt (+1/-0)
doc/php/CMakeLists.txt (+1/-1)
doc/php/doxy.config.in (+1113/-555)
doc/php/examples/CMakeLists.txt (+17/-5)
doc/php/examples/php.ini.in (+1/-0)
doc/php/examples/simple.php.in (+2/-2)
doc/php/examples/test.php.in (+120/-0)
doc/php/examples/zorba_api.php (+2/-2)
doc/php/manual/indexpage.dox (+5/-9)
doc/python/doxy.config.in (+1113/-555)
doc/ruby/doxy.config.in (+1113/-555)
doc/ruby/examples/CMakeLists.txt (+6/-1)
doc/xqj/CMakeLists.txt (+35/-0)
doc/xqj/doxy.config.in (+1207/-0)
doc/xqj/manual/indexpage.dox (+18/-0)
doc/zorba/CMakeLists.txt (+2/-0)
doc/zorba/build.dox (+14/-246)
doc/zorba/build_and_install.dox (+59/-0)
doc/zorba/build_configure.dox (+137/-0)
doc/zorba/build_macos.dox (+33/-0)
doc/zorba/build_noncore.dox (+0/-218)
doc/zorba/build_parameters.dox (+99/-0)
doc/zorba/build_prepare.dox (+104/-0)
doc/zorba/build_prerequisites.dox (+138/-0)
doc/zorba/build_ubuntu.dox (+93/-121)
doc/zorba/build_windows.dox (+109/-0)
doc/zorba/commandline.dox (+13/-14)
doc/zorba/conformance.dox (+4/-4)
doc/zorba/conformanceXQFTTS.dox (+74/-74)
doc/zorba/data_lifecycle.dox (+2/-2)
doc/zorba/doxy.config.in (+1113/-551)
doc/zorba/external_functions.dox (+4/-4)
doc/zorba/ft_intro.dox (+10/-10)
doc/zorba/ft_stemmer.dox (+25/-7)
doc/zorba/ft_thesaurus.dox (+144/-94)
doc/zorba/ft_tokenizer.dox (+160/-61)
doc/zorba/impl_dep_features.dox (+2/-2)
doc/zorba/indexpage.dox.in (+60/-140)
doc/zorba/installation.dox (+0/-97)
doc/zorba/link_crawler2.dox (+238/-0)
doc/zorba/memory_leaks.dox (+141/-0)
doc/zorba/modules_authoring.dox (+2/-3)
doc/zorba/modules_authoring_2.dox (+9/-3)
doc/zorba/modules_building_in.dox (+2/-2)
doc/zorba/options.dox (+233/-54)
doc/zorba/php_ubuntu.dox (+2/-4)
doc/zorba/php_windows.dox (+0/-2)
doc/zorba/schema_lifecycle.dox (+1/-1)
doc/zorba/uriresolvers.dox (+120/-38)
doc/zorba/web_crawler.dox (+141/-46)
doc/zorba/xqddf.dox (+224/-214)
doc/zorba/xqdoc/CMakeLists.txt (+14/-14)
doc/zorba/xqdoc/templates/main.html (+36/-24)
include/xqc.h (+9/-9)
include/zorba/audit.h (+4/-0)
include/zorba/config.h.cmake (+18/-11)
include/zorba/debugger_client.h (+14/-2)
include/zorba/diagnostic.h (+4/-1)
include/zorba/dynamic_context.h (+14/-1)
include/zorba/identtypes.h (+16/-2)
include/zorba/internal/diagnostic.h (+3/-0)
include/zorba/internal/proxy.h (+48/-0)
include/zorba/internal/type_traits.h (+3/-1)
include/zorba/internal/unique_ptr.h (+2/-2)
include/zorba/internal/ztd.h (+2/-1)
include/zorba/item.h (+57/-3)
include/zorba/item_factory.h (+113/-4)
include/zorba/item_sequence.h (+10/-3)
include/zorba/iterator.h (+2/-0)
include/zorba/locale.h (+189/-15)
include/zorba/options.h (+19/-4)
include/zorba/pregenerated/diagnostic_list.h (+70/-6)
include/zorba/properties_base.h (+37/-1)
include/zorba/static_collection_manager.h (+66/-3)
include/zorba/static_context.h (+675/-529)
include/zorba/static_context_consts.h (+2/-1)
include/zorba/stemmer.h (+23/-4)
include/zorba/store_consts.h (+65/-0)
include/zorba/thesaurus.h (+27/-17)
include/zorba/tokenizer.h (+136/-56)
include/zorba/transcode_stream.h (+335/-0)
include/zorba/typeident.h (+34/-1)
include/zorba/uri_resolvers.h (+20/-5)
include/zorba/util/file.h (+2/-0)
include/zorba/util/time.h (+1/-1)
include/zorba/xmldatamanager.h (+2/-0)
include/zorba/xquery.h (+24/-7)
include/zorba/zorba.h (+16/-5)
include/zorba/zorbac.h (+16/-16)
modules/CMakeLists.txt (+113/-30)
modules/DownloadModules.cmake (+59/-28)
modules/ExternalModules.conf (+25/-17)
modules/com/zorba-xquery/www/modules/CMakeLists.txt (+28/-1)
modules/com/zorba-xquery/www/modules/converters/base64.xq (+6/-3)
modules/com/zorba-xquery/www/modules/converters/json-options.xsd (+60/-0)
modules/com/zorba-xquery/www/modules/converters/json.xq (+260/-0)
modules/com/zorba-xquery/www/modules/datetime.xq (+5/-5)
modules/com/zorba-xquery/www/modules/datetime.xq.src/datetime.cpp (+7/-5)
modules/com/zorba-xquery/www/modules/debugger/dbgp-message-handler.xq (+291/-0)
modules/com/zorba-xquery/www/modules/fetch.xq (+5/-5)
modules/com/zorba-xquery/www/modules/full-text.xq (+839/-0)
modules/com/zorba-xquery/www/modules/full-text.xsd (+134/-0)
modules/com/zorba-xquery/www/modules/http-client-error.xq (+7/-0)
modules/com/zorba-xquery/www/modules/http-client.xq (+23/-17)
modules/com/zorba-xquery/www/modules/http-client.xq.src/curl_stream_buffer.cpp (+337/-338)
modules/com/zorba-xquery/www/modules/http-client.xq.src/curl_stream_buffer.h (+164/-143)
modules/com/zorba-xquery/www/modules/http-client.xq.src/http_client.cpp (+6/-3)
modules/com/zorba-xquery/www/modules/http-client.xq.src/http_request_handler.cpp (+3/-0)
modules/com/zorba-xquery/www/modules/http-client.xq.src/http_response_handler.cpp (+4/-4)
modules/com/zorba-xquery/www/modules/http-client.xq.src/http_response_parser.cpp (+71/-21)
modules/com/zorba-xquery/www/modules/http-client.xq.src/http_response_parser.h (+10/-6)
modules/com/zorba-xquery/www/modules/http-client.xq.src/request_parser.cpp (+27/-1)
modules/com/zorba-xquery/www/modules/http-client.xq.src/request_parser.h (+3/-1)
modules/com/zorba-xquery/www/modules/node-position.xq (+524/-0)
modules/com/zorba-xquery/www/modules/node-reference.xq (+25/-15)
modules/com/zorba-xquery/www/modules/pregenerated/errors.xq (+122/-13)
modules/com/zorba-xquery/www/modules/pregenerated/warnings.xq (+20/-1)
modules/com/zorba-xquery/www/modules/project_xqdoc.xq (+20/-8)
modules/com/zorba-xquery/www/modules/random.xq (+6/-6)
modules/com/zorba-xquery/www/modules/reflection.xq (+9/-9)
modules/com/zorba-xquery/www/modules/store/data-structures/unordered-map.xq (+6/-6)
modules/com/zorba-xquery/www/modules/store/dynamic/collections/dml.xq (+21/-8)
modules/com/zorba-xquery/www/modules/store/dynamic/collections/w3c/dml.xq (+5/-5)
modules/com/zorba-xquery/www/modules/store/static/collections/dml.xq (+21/-6)
modules/com/zorba-xquery/www/modules/store/static/indexes/dml.xq (+189/-62)
modules/com/zorba-xquery/www/modules/string.xq (+21/-1)
modules/com/zorba-xquery/www/modules/uri.xq (+108/-0)
modules/com/zorba-xquery/www/modules/xml-options.xsd (+86/-0)
modules/com/zorba-xquery/www/modules/xml.xq (+240/-4)
modules/com/zorba-xquery/www/modules/xqdoc.xq (+2/-2)
modules/com/zorba-xquery/www/modules/xqdoc.xsd (+1/-0)
modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq (+85/-64)
modules/org/expath/ns/file.xq (+61/-50)
modules/org/expath/ns/file.xq.src/file.cpp (+153/-25)
modules/org/expath/ns/file.xq.src/file.h (+64/-0)
modules/org/expath/ns/file.xq.src/file_function.cpp (+20/-9)
modules/org/expath/ns/file.xq.src/file_function.h (+5/-9)
modules/org/expath/ns/file.xq.src/file_module.cpp (+4/-5)
modules/org/expath/ns/file.xq.src/file_module.h (+13/-6)
modules/w3c/pregenerated/xqt-errors.xq (+26/-0)
modules/w3c/xpath_functions.xq (+46/-1)
schemas/CMakeLists.txt (+36/-0)
schemas/XQueryX.xsd (+1962/-0)
schemas/complete-pul.xsd (+136/-0)
schemas/pul.xsd (+237/-0)
schemas/xdm.xsd (+283/-0)
schemas/xhtml/xhtml-lat1.ent (+196/-0)
schemas/xhtml/xhtml-special.ent (+80/-0)
schemas/xhtml/xhtml-symbol.ent (+237/-0)
schemas/xhtml/xhtml1-frameset.dtd (+1235/-0)
schemas/xhtml/xhtml1-strict.dtd (+978/-0)
schemas/xhtml/xhtml1-transitional.dtd (+1201/-0)
schemas/xslt-xquery-serialization.xsd (+1/-1)
scripts/CMakeLists.txt (+4/-2)
scripts/gen_all_props (+0/-31)
scripts/gen_po_props (+0/-248)
scripts/link_crawler.xq (+0/-232)
scripts/sanity_checks/README.txt (+2/-2)
scripts/sanity_checks/conformance_xqftts.xqi (+4/-5)
scripts/sanity_checks/conformance_xqts.xqi (+3/-3)
scripts/zt-wn-get (+4/-4)
src/CMakeLists.txt (+4/-0)
src/annotations/annotations.cpp (+329/-298)
src/annotations/annotations.h (+100/-59)
src/api/CMakeLists.txt (+5/-2)
src/api/annotationimpl.cpp (+1/-1)
src/api/auditimpl.h (+2/-0)
src/api/collectionimpl.cpp (+4/-9)
src/api/dynamiccontextimpl.cpp (+38/-2)
src/api/dynamiccontextimpl.h (+7/-0)
src/api/fileimpl.cpp (+6/-17)
src/api/fileimpl.h (+3/-4)
src/api/functionimpl.cpp (+1/-1)
src/api/identtypesimpl.cpp (+61/-0)
src/api/item.cpp (+68/-1)
src/api/itemfactoryimpl.cpp (+140/-25)
src/api/itemfactoryimpl.h (+40/-3)
src/api/options.cpp (+27/-12)
src/api/serialization/serializer.cpp (+245/-124)
src/api/serialization/serializer.h (+6/-8)
src/api/staticcollectionmanagerimpl.cpp (+288/-0)
src/api/staticcollectionmanagerimpl.h (+37/-0)
src/api/staticcontextimpl.cpp (+308/-80)
src/api/staticcontextimpl.h (+42/-24)
src/api/stemmer_wrappers.cpp (+21/-12)
src/api/stemmer_wrappers.h (+2/-1)
src/api/thesaurus.cpp (+3/-5)
src/api/thesaurus_wrappers.cpp (+10/-10)
src/api/thesaurus_wrappers.h (+7/-5)
src/api/transcode_streambuf.cpp (+151/-0)
src/api/typeidentimpl.cpp (+146/-12)
src/api/uri_resolver_wrappers.cpp (+48/-30)
src/api/uri_resolver_wrappers.h (+6/-6)
src/api/uriresolverimpl.cpp (+5/-0)
src/api/uriresolverimpl.h (+2/-0)
src/api/xmldatamanagerimpl.cpp (+82/-52)
src/api/xmldatamanagerimpl.h (+1/-1)
src/api/xqueryimpl.cpp (+142/-28)
src/api/xqueryimpl.h (+6/-0)
src/api/zorbaimpl.cpp (+11/-1)
src/api/zorbaimpl.h (+2/-0)
src/capi/csequence.cpp (+2/-0)
src/common/shared_types.h (+10/-4)
src/compiler/CMakeLists.txt (+0/-1)
src/compiler/api/compiler_api.cpp (+19/-13)
src/compiler/api/compiler_api.h (+3/-2)
src/compiler/api/compilercb.cpp (+36/-5)
src/compiler/api/compilercb.h (+19/-6)
src/compiler/codegen/plan_visitor.cpp (+132/-96)
src/compiler/expression/abstract_expr_visitor.h (+1/-0)
src/compiler/expression/expr.cpp (+59/-95)
src/compiler/expression/expr.h (+102/-60)
src/compiler/expression/expr_annotations.cpp (+0/-58)
src/compiler/expression/expr_base.cpp (+133/-32)
src/compiler/expression/expr_base.h (+79/-29)
src/compiler/expression/expr_classes.h (+1/-0)
src/compiler/expression/expr_iter.cpp (+11/-2)
src/compiler/expression/expr_put.cpp (+95/-40)
src/compiler/expression/expr_type.cpp (+46/-61)
src/compiler/expression/expr_utils.h (+3/-1)
src/compiler/expression/expr_visitor.h (+1/-0)
src/compiler/expression/flwor_expr.cpp (+55/-35)
src/compiler/expression/flwor_expr.h (+44/-23)
src/compiler/expression/fo_expr.cpp (+29/-29)
src/compiler/expression/fo_expr.h (+5/-5)
src/compiler/expression/ft_expr.cpp (+10/-1)
src/compiler/expression/ft_expr.h (+4/-3)
src/compiler/expression/ftnode.cpp (+210/-48)
src/compiler/expression/ftnode.h (+77/-26)
src/compiler/expression/function_item_expr.cpp (+12/-2)
src/compiler/expression/function_item_expr.h (+1/-6)
src/compiler/expression/path_expr.cpp (+2/-7)
src/compiler/expression/path_expr.h (+5/-5)
src/compiler/expression/script_exprs.cpp (+165/-24)
src/compiler/expression/script_exprs.h (+101/-12)
src/compiler/expression/update_exprs.cpp (+61/-80)
src/compiler/expression/update_exprs.h (+51/-50)
src/compiler/expression/var_expr.cpp (+58/-4)
src/compiler/expression/var_expr.h (+110/-32)
src/compiler/parser/parse_constants.h (+1/-0)
src/compiler/parser/query_loc.cpp (+1/-2)
src/compiler/parser/xquery_parser.cpp (+8853/-8696)
src/compiler/parser/xquery_parser.hpp (+242/-282)
src/compiler/parser/xquery_parser.y (+16/-3)
src/compiler/parser/xquery_scanner.cpp (+3049/-3059)
src/compiler/parser/xquery_scanner.l (+1/-0)
src/compiler/parsetree/parsenode_print_dot_visitor.cpp (+12/-0)
src/compiler/parsetree/parsenode_print_dot_visitor.h (+2/-0)
src/compiler/parsetree/parsenode_print_xml_visitor.cpp (+1/-0)
src/compiler/parsetree/parsenode_print_xqdoc_visitor.cpp (+142/-11)
src/compiler/parsetree/parsenode_print_xquery_visitor.cpp (+10/-0)
src/compiler/parsetree/parsenode_visitor.h (+1/-0)
src/compiler/parsetree/parsenodes.cpp (+7/-0)
src/compiler/parsetree/parsenodes.h (+21/-0)
src/compiler/rewriter/framework/rewriter_context.h (+59/-31)
src/compiler/rewriter/rewriters/default_optimizer.cpp (+10/-0)
src/compiler/rewriter/rules/flwor_rules.cpp (+74/-41)
src/compiler/rewriter/rules/fold_rules.cpp (+46/-55)
src/compiler/rewriter/rules/hoist_rules.cpp (+169/-95)
src/compiler/rewriter/rules/index_join_rule.cpp (+17/-5)
src/compiler/rewriter/rules/nodeid_rules.cpp (+803/-26)
src/compiler/rewriter/rules/path_rules.cpp (+4/-4)
src/compiler/rewriter/rules/rule_base.h (+1/-0)
src/compiler/rewriter/rules/ruleset.h (+52/-6)
src/compiler/rewriter/rules/type_rules.cpp (+52/-41)
src/compiler/rewriter/tools/dataflow_annotations.cpp (+571/-5)
src/compiler/rewriter/tools/dataflow_annotations.h (+47/-1)
src/compiler/rewriter/tools/expr_tools.cpp (+599/-44)
src/compiler/rewriter/tools/expr_tools.h (+5/-28)
src/compiler/rewriter/tools/udf_graph.cpp (+7/-5)
src/compiler/semantic_annotations/CMakeLists.txt (+0/-15)
src/compiler/semantic_annotations/annotation_holder.cpp (+0/-57)
src/compiler/semantic_annotations/annotation_holder.h (+0/-59)
src/compiler/semantic_annotations/annotation_keys.h (+0/-45)
src/compiler/semantic_annotations/annotations.h (+0/-63)
src/compiler/translator/prolog_graph.cpp (+3/-0)
src/compiler/translator/translator.cpp (+541/-365)
src/compiler/xqddf/collection_decl.cpp (+3/-1)
src/compiler/xqddf/collection_decl.h (+1/-1)
src/compiler/xqddf/value_ic.cpp (+0/-1)
src/compiler/xqddf/value_index.cpp (+35/-23)
src/compiler/xqddf/value_index.h (+53/-27)
src/compiler/xqueryx/xqueryx_to_xquery.cpp (+4/-1)
src/compiler/xqueryx/xqueryx_xslt.cpp (+578/-86)
src/compiler/xqueryx/xqueryx_xslt.h (+2/-1)
src/context/CMakeLists.txt (+0/-5)
src/context/decimal_format.cpp (+13/-1)
src/context/decimal_format.h (+7/-7)
src/context/default_uri_mappers.cpp (+29/-9)
src/context/default_uri_mappers.h (+6/-6)
src/context/default_url_resolvers.cpp (+24/-4)
src/context/default_url_resolvers.h (+19/-5)
src/context/dynamic_context.cpp (+269/-49)
src/context/dynamic_context.h (+58/-29)
src/context/dynamic_loader.cpp (+50/-44)
src/context/dynamic_loader.h (+12/-8)
src/context/namespace_context.cpp (+10/-5)
src/context/namespace_context.h (+5/-1)
src/context/root_static_context.cpp (+80/-40)
src/context/root_static_context.h (+5/-3)
src/context/root_static_context_init.cpp.in (+9/-2)
src/context/static_context.cpp (+545/-444)
src/context/static_context.h (+118/-125)
src/context/static_context_consts.h (+2/-34)
src/context/stemmer_wrappers.cpp (+0/-74)
src/context/stemmer_wrappers.h (+0/-63)
src/context/uri_resolver.cpp (+19/-12)
src/context/uri_resolver.h (+18/-11)
src/debugger/debugger_client.cpp (+0/-2)
src/debugger/debugger_clientimpl.cpp (+549/-453)
src/debugger/debugger_clientimpl.h (+17/-10)
src/debugger/debugger_common.h (+3/-10)
src/debugger/debugger_commons.cpp (+174/-39)
src/debugger/debugger_commons.h (+16/-23)
src/debugger/debugger_communicator.cpp (+12/-9)
src/debugger/debugger_communicator.h (+4/-4)
src/debugger/debugger_protocol.cpp (+40/-16)
src/debugger/debugger_protocol.h (+3/-0)
src/debugger/debugger_runtime.cpp (+330/-104)
src/debugger/debugger_runtime.h (+37/-20)
src/debugger/debugger_server.cpp (+292/-90)
src/debugger/debugger_server.h (+24/-1)
src/debugger/socket_streambuf.cpp (+68/-55)
src/debugger/socket_streambuf.h (+20/-9)
src/diagnostics/assert.cpp (+8/-2)
src/diagnostics/assert.h (+27/-1)
src/diagnostics/diagnostic.cpp (+3/-0)
src/diagnostics/diagnostic_en.xml (+411/-95)
src/diagnostics/dict_XX_cpp.xq (+1/-0)
src/diagnostics/pregenerated/diagnostic_list.cpp (+105/-9)
src/diagnostics/pregenerated/dict_en.cpp (+171/-37)
src/diagnostics/qname.cpp (+6/-0)
src/diagnostics/user_error.cpp (+3/-1)
src/functions/CMakeLists.txt (+5/-0)
src/functions/external_function.cpp (+92/-11)
src/functions/external_function.h (+6/-4)
src/functions/func_accessors_impl.cpp (+82/-62)
src/functions/func_accessors_impl.h (+5/-0)
src/functions/func_apply.cpp (+2/-2)
src/functions/func_arithmetic.cpp (+23/-20)
src/functions/func_booleans_impl.cpp (+68/-48)
src/functions/func_collections_impl.cpp (+78/-21)
src/functions/func_durations_dates_times_impl.cpp (+8/-8)
src/functions/func_enclosed.cpp (+14/-11)
src/functions/func_errors_and_diagnostics_impl.cpp (+12/-3)
src/functions/func_eval.cpp (+8/-8)
src/functions/func_ft_module_impl.cpp (+128/-0)
src/functions/func_ft_module_impl.h (+81/-0)
src/functions/func_hoist.cpp (+40/-34)
src/functions/func_index_ddl.cpp (+11/-11)
src/functions/func_index_ddl.h (+11/-11)
src/functions/func_node_sort_distinct.cpp (+49/-14)
src/functions/func_node_sort_distinct.h (+8/-6)
src/functions/func_numerics_impl.cpp (+157/-157)
src/functions/func_reflection.cpp (+11/-8)
src/functions/func_sequences_impl.cpp (+313/-193)
src/functions/func_sequences_impl.h (+97/-56)
src/functions/func_serialize_impl.cpp (+39/-0)
src/functions/func_strings_impl.cpp (+59/-2)
src/functions/func_strings_impl.h (+38/-0)
src/functions/func_var_decl.cpp (+7/-65)
src/functions/function.cpp (+63/-22)
src/functions/function.h (+25/-16)
src/functions/function_consts.h (+11/-5)
src/functions/function_impl.h (+10/-10)
src/functions/library.cpp (+16/-0)
src/functions/pregenerated/func_access.cpp (+111/-0)
src/functions/pregenerated/func_access.h (+79/-0)
src/functions/pregenerated/func_accessors.cpp (+8/-28)
src/functions/pregenerated/func_accessors.h (+70/-58)
src/functions/pregenerated/func_any_uri.cpp (+1/-1)
src/functions/pregenerated/func_any_uri.h (+4/-2)
src/functions/pregenerated/func_base64.cpp (+2/-2)
src/functions/pregenerated/func_base64.h (+8/-4)
src/functions/pregenerated/func_booleans.cpp (+3/-3)
src/functions/pregenerated/func_booleans.h (+21/-9)
src/functions/pregenerated/func_collections.cpp (+70/-12)
src/functions/pregenerated/func_collections.h (+207/-67)
src/functions/pregenerated/func_context.cpp (+8/-8)
src/functions/pregenerated/func_context.h (+32/-16)
src/functions/pregenerated/func_documents.cpp (+5/-5)
src/functions/pregenerated/func_documents.h (+22/-10)
src/functions/pregenerated/func_durations_dates_times.cpp (+21/-21)
src/functions/pregenerated/func_durations_dates_times.h (+84/-42)
src/functions/pregenerated/func_errors_and_diagnostics.cpp (+1/-1)
src/functions/pregenerated/func_errors_and_diagnostics.h (+21/-11)
src/functions/pregenerated/func_fetch.cpp (+2/-2)
src/functions/pregenerated/func_fetch.h (+8/-4)
src/functions/pregenerated/func_fnput.cpp (+1/-1)
src/functions/pregenerated/func_fnput.h (+6/-2)
src/functions/pregenerated/func_ft_module.cpp (+490/-0)
src/functions/pregenerated/func_ft_module.h (+225/-0)
src/functions/pregenerated/func_function_item_iter.cpp (+3/-3)
src/functions/pregenerated/func_function_item_iter.h (+12/-6)
src/functions/pregenerated/func_ic_ddl.cpp (+3/-3)
src/functions/pregenerated/func_ic_ddl.h (+12/-6)
src/functions/pregenerated/func_json.cpp (+87/-0)
src/functions/pregenerated/func_json.h (+79/-0)
src/functions/pregenerated/func_maps.cpp (+8/-8)
src/functions/pregenerated/func_maps.h (+32/-16)
src/functions/pregenerated/func_maths.cpp (+26/-26)
src/functions/pregenerated/func_maths.h (+104/-52)
src/functions/pregenerated/func_node_position.cpp (+584/-0)
src/functions/pregenerated/func_node_position.h (+409/-0)
src/functions/pregenerated/func_nodes.cpp (+20/-20)
src/functions/pregenerated/func_nodes.h (+128/-54)
src/functions/pregenerated/func_numerics.cpp (+8/-8)
src/functions/pregenerated/func_numerics.h (+35/-21)
src/functions/pregenerated/func_other_diagnostics.cpp (+2/-2)
src/functions/pregenerated/func_other_diagnostics.h (+8/-4)
src/functions/pregenerated/func_parse_fragment.cpp (+8/-22)
src/functions/pregenerated/func_parse_fragment.h (+7/-5)
src/functions/pregenerated/func_parsing_and_serializing.cpp (+2/-2)
src/functions/pregenerated/func_parsing_and_serializing.h (+10/-4)
src/functions/pregenerated/func_qnames.cpp (+8/-8)
src/functions/pregenerated/func_qnames.h (+41/-19)
src/functions/pregenerated/func_random.cpp (+3/-3)
src/functions/pregenerated/func_random.h (+12/-6)
src/functions/pregenerated/func_schema.cpp (+4/-4)
src/functions/pregenerated/func_schema.h (+27/-11)
src/functions/pregenerated/func_sctx.cpp (+25/-25)
src/functions/pregenerated/func_sctx.h (+100/-50)
src/functions/pregenerated/func_sequences.cpp (+170/-31)
src/functions/pregenerated/func_sequences.h (+331/-186)
src/functions/pregenerated/func_strings.cpp (+88/-55)
src/functions/pregenerated/func_strings.h (+154/-63)
src/functions/pregenerated/func_uris.cpp (+65/-0)
src/functions/pregenerated/func_uris.h (+64/-0)
src/functions/pregenerated/func_xqdoc.cpp (+2/-2)
src/functions/pregenerated/func_xqdoc.h (+9/-4)
src/functions/pregenerated/function_enum.h (+62/-3)
src/functions/signature.cpp (+97/-63)
src/functions/signature.h (+9/-1)
src/functions/udf.cpp (+264/-47)
src/functions/udf.h (+106/-35)
src/precompiled/stdafx.h (+76/-355)
src/runtime/CMakeLists.txt (+3/-0)
src/runtime/accessors/accessors_impl.cpp (+22/-22)
src/runtime/accessors/pregenerated/accessors.cpp (+0/-42)
src/runtime/any_uri/pregenerated/any_uri.cpp (+0/-6)
src/runtime/api/plan_wrapper.cpp (+2/-1)
src/runtime/base/binarybase.h (+21/-12)
src/runtime/base/narybase.h (+20/-18)
src/runtime/base/noarybase.h (+1/-3)
src/runtime/base/plan_iterator.cpp (+0/-19)
src/runtime/base/plan_iterator.h (+64/-66)
src/runtime/base/unarybase.h (+16/-14)
src/runtime/base64/base64_impl.cpp (+53/-21)
src/runtime/base64/pregenerated/base64.cpp (+0/-12)
src/runtime/booleans/BooleanImpl.cpp (+203/-229)
src/runtime/booleans/BooleanImpl.h (+1/-1)
src/runtime/booleans/pregenerated/booleans.cpp (+0/-18)
src/runtime/collections/collections_base.cpp (+41/-32)
src/runtime/collections/collections_base.h (+16/-16)
src/runtime/collections/collections_impl.cpp (+507/-127)
src/runtime/collections/collections_impl.h (+78/-0)
src/runtime/collections/pregenerated/collections.cpp (+46/-186)
src/runtime/collections/pregenerated/collections.h (+97/-0)
src/runtime/context/pregenerated/context.cpp (+0/-30)
src/runtime/core/apply_updates.cpp (+13/-2)
src/runtime/core/arithmetic_impl.cpp (+50/-54)
src/runtime/core/arithmetic_impl.h (+18/-15)
src/runtime/core/constructors.cpp (+115/-114)
src/runtime/core/constructors.h (+17/-44)
src/runtime/core/flwor_iterator.cpp (+45/-52)
src/runtime/core/flwor_iterator.h (+1/-0)
src/runtime/core/fncall_iterator.cpp (+226/-67)
src/runtime/core/fncall_iterator.h (+80/-32)
src/runtime/core/gflwor/common.cpp (+45/-29)
src/runtime/core/gflwor/common.h (+4/-2)
src/runtime/core/gflwor/count_iterator.cpp (+2/-2)
src/runtime/core/gflwor/for_iterator.cpp (+2/-2)
src/runtime/core/gflwor/groupby_iterator.cpp (+10/-15)
src/runtime/core/gflwor/let_iterator.cpp (+0/-1)
src/runtime/core/gflwor/orderby_iterator.cpp (+11/-12)
src/runtime/core/gflwor/outerfor_iterator.cpp (+1/-1)
src/runtime/core/gflwor/tuplesource_iterator.cpp (+0/-1)
src/runtime/core/gflwor/tuplestream_iterator.cpp (+1/-1)
src/runtime/core/gflwor/where_iterator.cpp (+0/-1)
src/runtime/core/gflwor/window_iterator.cpp (+29/-26)
src/runtime/core/internal_operators.cpp (+9/-4)
src/runtime/core/internal_operators.h (+9/-5)
src/runtime/core/item_iterator.cpp (+26/-6)
src/runtime/core/item_iterator.h (+6/-18)
src/runtime/core/nodeid_iterators.cpp (+1/-2)
src/runtime/core/path_iterators.cpp (+104/-37)
src/runtime/core/path_iterators.h (+12/-38)
src/runtime/core/sequencetypes.cpp (+206/-164)
src/runtime/core/trycatch.cpp (+27/-16)
src/runtime/core/var_iterators.cpp (+179/-130)
src/runtime/core/var_iterators.h (+47/-29)
src/runtime/debug/pregenerated/debug_iterator.cpp (+0/-6)
src/runtime/durations_dates_times/DurationsDatesTimesImpl.cpp (+0/-5)
src/runtime/durations_dates_times/pregenerated/durations_dates_times.cpp (+0/-126)
src/runtime/errors_and_diagnostics/errors_and_diagnostics_impl.cpp (+6/-7)
src/runtime/errors_and_diagnostics/other_diagnostics_impl.cpp (+13/-7)
src/runtime/errors_and_diagnostics/pregenerated/errors_and_diagnostics.cpp (+0/-12)
src/runtime/errors_and_diagnostics/pregenerated/other_diagnostics.cpp (+0/-18)
src/runtime/eval/eval.cpp (+78/-36)
src/runtime/eval/eval.h (+19/-9)
src/runtime/fetch/fetch_impl.cpp (+11/-9)
src/runtime/fetch/pregenerated/fetch.cpp (+0/-12)
src/runtime/fnput/pregenerated/fnput.cpp (+0/-6)
src/runtime/full_text/CMakeLists.txt (+6/-4)
src/runtime/full_text/apply.cpp (+65/-32)
src/runtime/full_text/default_tokenizer.cpp (+4/-4)
src/runtime/full_text/ft_match.cpp (+2/-3)
src/runtime/full_text/ft_module_impl.cpp (+789/-0)
src/runtime/full_text/ft_module_impl.h (+32/-0)
src/runtime/full_text/ft_query_item.h (+2/-1)
src/runtime/full_text/ft_single_token_iterator.h (+0/-2)
src/runtime/full_text/ft_stop_words_set.cpp (+33/-28)
src/runtime/full_text/ft_stop_words_set.h (+29/-14)
src/runtime/full_text/ft_token_matcher.cpp (+7/-7)
src/runtime/full_text/ft_token_matcher.h (+1/-1)
src/runtime/full_text/ft_token_seq_iterator.cpp (+7/-3)
src/runtime/full_text/ft_token_seq_iterator.h (+3/-0)
src/runtime/full_text/ft_token_span.h (+2/-2)
src/runtime/full_text/ft_util.cpp (+45/-0)
src/runtime/full_text/ft_util.h (+12/-1)
src/runtime/full_text/ftcontains_visitor.cpp (+0/-10)
src/runtime/full_text/full_text.cpp (+0/-7)
src/runtime/full_text/full_text.h (+1/-1)
src/runtime/full_text/icu_tokenizer.cpp (+95/-39)
src/runtime/full_text/icu_tokenizer.h (+9/-7)
src/runtime/full_text/latin_tokenizer.cpp (+34/-15)
src/runtime/full_text/latin_tokenizer.h (+12/-9)
src/runtime/full_text/pregenerated/ft_module.cpp (+362/-0)
src/runtime/full_text/pregenerated/ft_module.h (+561/-0)
src/runtime/full_text/stemmer.cpp (+8/-2)
src/runtime/full_text/stemmer.h (+24/-5)
src/runtime/full_text/stemmer/sb_stemmer.cpp (+20/-13)
src/runtime/full_text/stemmer/sb_stemmer.h (+1/-0)
src/runtime/full_text/thesauri/wn_synset.cpp (+4/-2)
src/runtime/full_text/thesauri/wn_thesaurus.cpp (+79/-9)
src/runtime/full_text/thesauri/wn_thesaurus.h (+29/-5)
src/runtime/full_text/thesauri/xqftts_thesaurus.cpp (+28/-3)
src/runtime/full_text/thesauri/xqftts_thesaurus.h (+28/-4)
src/runtime/full_text/thesaurus.cpp (+42/-63)
src/runtime/full_text/thesaurus.h (+25/-24)
src/runtime/full_text/tokenizer.cpp (+86/-8)
src/runtime/function_item/dynamic_fncall_iterator.cpp (+26/-13)
src/runtime/function_item/function_item.cpp (+7/-5)
src/runtime/function_item/pregenerated/function_item_iter.cpp (+0/-18)
src/runtime/indexing/index_ddl.cpp (+52/-25)
src/runtime/indexing/index_ddl.h (+37/-30)
src/runtime/indexing/pregenerated/ic_ddl.cpp (+0/-18)
src/runtime/introspection/pregenerated/sctx.cpp (+0/-150)
src/runtime/introspection/sctx_impl.cpp (+1/-1)
src/runtime/json/common.cpp (+62/-0)
src/runtime/json/common.h (+120/-0)
src/runtime/json/json_impl.cpp (+217/-0)
src/runtime/json/jsonml_array.cpp (+285/-0)
src/runtime/json/jsonml_array.h (+41/-0)
src/runtime/json/pregenerated/json.cpp (+82/-0)
src/runtime/json/pregenerated/json.h (+114/-0)
src/runtime/json/snelson.cpp (+515/-0)
src/runtime/json/snelson.h (+41/-0)
src/runtime/maths/maths_impl.cpp (+1/-1)
src/runtime/maths/pregenerated/maths.cpp (+0/-156)
src/runtime/misc/materialize.cpp (+1/-3)
src/runtime/nodes/node_position_impl.cpp (+756/-0)
src/runtime/nodes/nodes_impl.cpp (+80/-35)
src/runtime/nodes/pregenerated/node_position.cpp (+566/-0)
src/runtime/nodes/pregenerated/node_position.h (+858/-0)
src/runtime/nodes/pregenerated/nodes.cpp (+0/-114)
src/runtime/nodes/pregenerated/nodes.h (+6/-6)
src/runtime/numerics/NumericsImpl.cpp (+103/-120)
src/runtime/numerics/NumericsImpl.h (+2/-2)
src/runtime/numerics/format_integer_impl.cpp (+10/-10)
src/runtime/numerics/numerics_impl.cpp (+56/-82)
src/runtime/numerics/pregenerated/numerics.cpp (+0/-42)
src/runtime/parsing_and_serializing/fragment_istream.h (+54/-10)
src/runtime/parsing_and_serializing/parse_fragment_impl.cpp (+167/-168)
src/runtime/parsing_and_serializing/parsing_and_serializing_impl.cpp (+18/-6)
src/runtime/parsing_and_serializing/pregenerated/parse_fragment.cpp (+0/-6)
src/runtime/parsing_and_serializing/pregenerated/parse_fragment.h (+1/-1)
src/runtime/parsing_and_serializing/pregenerated/parsing_and_serializing.cpp (+0/-12)
src/runtime/parsing_and_serializing/pregenerated/parsing_and_serializing.h (+2/-0)
src/runtime/qnames/pregenerated/qnames.cpp (+0/-48)
src/runtime/qnames/qnames_impl.cpp (+41/-48)
src/runtime/random/pregenerated/random.cpp (+0/-18)
src/runtime/random/random_impl.cpp (+2/-2)
src/runtime/schema/pregenerated/schema.cpp (+0/-24)
src/runtime/schema/schema_impl.cpp (+17/-14)
src/runtime/scripting/scripting.cpp (+7/-13)
src/runtime/sequences/SequencesImpl.cpp (+0/-1)
src/runtime/sequences/pregenerated/sequences.cpp (+116/-180)
src/runtime/sequences/pregenerated/sequences.h (+242/-23)
src/runtime/sequences/sequences_impl.cpp (+327/-37)
src/runtime/spec/accessors/accessors.xml (+48/-14)
src/runtime/spec/booleans/booleans.xml (+28/-15)
src/runtime/spec/codegen-cpp.xq (+14/-6)
src/runtime/spec/codegen-h.xq (+37/-13)
src/runtime/spec/collections/collections.xml (+129/-27)
src/runtime/spec/errors_and_diagnostics/errors_and_diagnostics.xml (+3/-0)
src/runtime/spec/fnput/fnput.xml (+2/-1)
src/runtime/spec/full_text/ft_module.xml (+208/-0)
src/runtime/spec/iterator_cpp.xq (+5/-12)
src/runtime/spec/json/json.xml (+52/-0)
src/runtime/spec/mappings.xml (+27/-3)
src/runtime/spec/nodes/node_position.xml (+439/-0)
src/runtime/spec/nodes/nodes.xml (+358/-270)
src/runtime/spec/parsing_and_serializing/parse_fragment.xml (+5/-12)
src/runtime/spec/parsing_and_serializing/parsing_and_serializing.xml (+5/-0)
src/runtime/spec/plan_iter_visitor_h.xq (+4/-4)
src/runtime/spec/printer_visitor_cpp.xq (+2/-2)
src/runtime/spec/printer_visitor_h.xq (+1/-1)
src/runtime/spec/qnames/qnames.xml (+17/-0)
src/runtime/spec/schema/schema.xml (+19/-0)
src/runtime/spec/sequences/sequences.xml (+300/-112)
src/runtime/spec/store/documents.xml (+1/-0)
src/runtime/spec/strings/strings.xml (+63/-8)
src/runtime/spec/uris/uris.xml (+40/-0)
src/runtime/spec/xqdoc/xqdoc.xml (+1/-1)
src/runtime/store/maps_impl.cpp (+17/-4)
src/runtime/store/pregenerated/documents.cpp (+0/-30)
src/runtime/store/pregenerated/maps.cpp (+0/-48)
src/runtime/strings/pregenerated/strings.cpp (+58/-162)
src/runtime/strings/pregenerated/strings.h (+90/-0)
src/runtime/strings/strings_impl.cpp (+494/-125)
src/runtime/update/update.cpp (+2/-7)
src/runtime/uris/pregenerated/uris.cpp (+60/-0)
src/runtime/uris/pregenerated/uris.h (+80/-0)
src/runtime/uris/uris_impl.cpp (+105/-0)
src/runtime/visitors/planiter_visitor_impl_code.h (+53/-52)
src/runtime/visitors/planiter_visitor_impl_include.h (+7/-6)
src/runtime/visitors/pregenerated/planiter_visitor.h (+272/-1)
src/runtime/visitors/pregenerated/printer_visitor.cpp (+703/-0)
src/runtime/visitors/pregenerated/printer_visitor.h (+173/-0)
src/runtime/visitors/printer_visitor_impl.cpp (+246/-182)
src/runtime/visitors/printer_visitor_impl.h (+58/-51)
src/runtime/xqdoc/pregenerated/xqdoc.cpp (+0/-12)
src/runtime/xqdoc/xqdoc_impl.cpp (+4/-4)
src/store/api/annotation.h (+17/-15)
src/store/api/index.h (+60/-22)
src/store/api/item.h (+115/-29)
src/store/api/item_factory.h (+35/-150)
src/store/api/item_handle.h (+1/-0)
src/store/api/iterator.h (+2/-0)
src/store/api/load_properties.h (+224/-38)
src/store/api/pul.h (+14/-1)
src/store/api/shared_types.h (+3/-0)
src/store/api/store.h (+51/-29)
src/store/api/temp_seq.h (+51/-47)
src/store/api/update_consts.h (+7/-1)
src/store/naive/CMakeLists.txt (+4/-1)
src/store/naive/atomic_items.cpp (+1440/-335)
src/store/naive/atomic_items.h (+668/-244)
src/store/naive/collection.cpp (+113/-0)
src/store/naive/collection.h (+114/-0)
src/store/naive/collection_set.h (+28/-52)
src/store/naive/dataguide.cpp (+1/-1)
src/store/naive/inmemorystore.cpp (+4/-4)
src/store/naive/inmemorystorec.cpp (+2/-2)
src/store/naive/item.cpp (+224/-30)
src/store/naive/item_iterator.cpp (+1/-1)
src/store/naive/item_vector.cpp (+4/-2)
src/store/naive/loader.h (+68/-59)
src/store/naive/loader_dtd.cpp (+332/-154)
src/store/naive/loader_fast.cpp (+78/-50)
src/store/naive/node_factory.cpp (+6/-6)
src/store/naive/node_factory.h (+11/-11)
src/store/naive/node_items.cpp (+866/-423)
src/store/naive/node_items.h (+323/-204)
src/store/naive/node_iterators.cpp (+38/-12)
src/store/naive/node_iterators.h (+68/-14)
src/store/naive/node_updates.cpp (+41/-23)
src/store/naive/nsbindings.cpp (+4/-4)
src/store/naive/nsbindings.h (+3/-2)
src/store/naive/ordpath.cpp (+181/-17)
src/store/naive/ordpath.h (+25/-6)
src/store/naive/properties.cpp (+1/-1)
src/store/naive/properties.h (+1/-1)
src/store/naive/pul_primitive_factory.cpp (+26/-4)
src/store/naive/pul_primitive_factory.h (+20/-1)
src/store/naive/pul_primitives.cpp (+272/-102)
src/store/naive/pul_primitives.h (+125/-27)
src/store/naive/qname_pool.cpp (+73/-88)
src/store/naive/qname_pool.h (+18/-18)
src/store/naive/shared_types.h (+6/-4)
src/store/naive/simple_collection.cpp (+45/-87)
src/store/naive/simple_collection.h (+32/-41)
src/store/naive/simple_collection_set.cpp (+34/-27)
src/store/naive/simple_collection_set.h (+117/-0)
src/store/naive/simple_index.cpp (+324/-305)
src/store/naive/simple_index.h (+165/-204)
src/store/naive/simple_index_general.cpp (+1604/-2176)
src/store/naive/simple_index_general.h (+320/-177)
src/store/naive/simple_index_value.cpp (+221/-53)
src/store/naive/simple_index_value.h (+96/-45)
src/store/naive/simple_item_factory.cpp (+137/-29)
src/store/naive/simple_item_factory.h (+38/-3)
src/store/naive/simple_iterator_factory.cpp (+6/-6)
src/store/naive/simple_lazy_temp_seq.cpp (+172/-100)
src/store/naive/simple_lazy_temp_seq.h (+31/-144)
src/store/naive/simple_pul.cpp (+292/-183)
src/store/naive/simple_pul.h (+32/-5)
src/store/naive/simple_store.cpp (+203/-1610)
src/store/naive/simple_store.h (+72/-343)
src/store/naive/simple_temp_seq.cpp (+187/-231)
src/store/naive/simple_temp_seq.h (+49/-51)
src/store/naive/store.cpp (+1349/-0)
src/store/naive/store.h (+447/-0)
src/store/naive/store_defs.h (+2/-81)
src/store/naive/store_manager_impl.h (+4/-4)
src/store/naive/store_properties.h (+36/-24)
src/store/naive/string_pool.cpp (+8/-7)
src/store/naive/text_node_content.h (+1/-1)
src/store/naive/tree_id.h (+41/-0)
src/store/naive/tree_id_generator.cpp (+57/-0)
src/store/naive/tree_id_generator.h (+90/-0)
src/system/globalenv.cpp (+81/-35)
src/system/globalenv.h (+41/-22)
src/system/properties.h (+21/-0)
src/system/zorba_properties.h (+114/-33)
src/system/zorba_properties.txt (+5/-2)
src/types/casting.cpp (+740/-275)
src/types/casting.h (+39/-17)
src/types/node_test.cpp (+4/-1)
src/types/node_test.h (+1/-1)
src/types/root_typemanager.cpp (+18/-19)
src/types/root_typemanager.h (+6/-9)
src/types/schema/EventSchemaValidator.cpp (+2/-2)
src/types/schema/SchemaValidatorFilter.cpp (+12/-4)
src/types/schema/XercSchemaValidator.cpp (+2/-2)
src/types/schema/XercesParseUtils.cpp (+2/-2)
src/types/schema/revalidateUtils.cpp (+3/-3)
src/types/schema/schema.cpp (+50/-30)
src/types/schema/schema.h (+7/-7)
src/types/schema/validate.cpp (+248/-122)
src/types/schema/validate.h (+20/-0)
src/types/typeconstants.h (+1/-51)
src/types/typeimpl.cpp (+134/-19)
src/types/typeimpl.h (+24/-64)
src/types/typemanager.h (+8/-8)
src/types/typemanagerimpl.cpp (+49/-17)
src/types/typemanagerimpl.h (+1/-1)
src/types/typeops.cpp (+104/-39)
src/types/typeops.h (+25/-9)
src/unit_tests/CMakeLists.txt (+19/-6)
src/unit_tests/json_parser.cpp (+637/-0)
src/unit_tests/stemmer.cpp (+20/-8)
src/unit_tests/string.cpp (+35/-1)
src/unit_tests/string_instantiate.cpp (+9/-1)
src/unit_tests/test_debugger_protocol.cpp (+0/-414)
src/unit_tests/test_fs_iterator.cpp (+54/-0)
src/unit_tests/test_icu_streambuf.cpp (+165/-0)
src/unit_tests/thesaurus.cpp (+69/-38)
src/unit_tests/tokenizer.cpp (+56/-29)
src/unit_tests/unique_ptr.cpp (+8/-1)
src/unit_tests/unit_test_list.h (+13/-1)
src/unit_tests/unit_tests.cpp (+14/-1)
src/util/CMakeLists.txt (+10/-4)
src/util/ascii_util.h (+1/-6)
src/util/dir.cpp (+0/-175)
src/util/dir.h (+0/-100)
src/util/file.cpp (+14/-0)
src/util/fs_util.cpp (+130/-8)
src/util/fs_util.h (+97/-2)
src/util/hashmap.h (+27/-14)
src/util/http_util.cpp (+13/-7)
src/util/http_util.h (+0/-2)
src/util/icu_streambuf.cpp (+307/-0)
src/util/icu_streambuf.h (+141/-0)
src/util/json_parser.cpp (+663/-0)
src/util/json_parser.h (+570/-0)
src/util/mem_streambuf.cpp (+120/-0)
src/util/mem_streambuf.h (+108/-0)
src/util/omanip.h (+205/-57)
src/util/oseparator.h (+17/-5)
src/util/passthru_streambuf.cpp (+105/-0)
src/util/passthru_streambuf.h (+84/-0)
src/util/regex.cpp (+150/-100)
src/util/regex.h (+24/-36)
src/util/regex_xquery.cpp (+1860/-489)
src/util/regex_xquery.h (+359/-125)
src/util/stl_util.h (+159/-21)
src/util/string/ptr_rep.tcc (+1/-0)
src/util/string_util.cpp (+13/-5)
src/util/string_util.h (+12/-5)
src/util/transcode_streambuf.h (+47/-0)
src/util/unicode_categories.cpp (+3/-3)
src/util/unicode_categories.h (+44/-37)
src/util/unicode_util.cpp (+34/-2)
src/util/unicode_util.h (+62/-23)
src/util/uri_util.cpp (+2/-2)
src/util/uri_util.h (+6/-6)
src/util/utf8_util.cpp (+23/-6)
src/util/utf8_util.h (+31/-19)
src/util/utf8_util.tcc (+25/-10)
src/util/utf8_util_base.h (+27/-12)
src/util/uuid/uuid.cpp (+27/-4)
src/util/uuid/uuid.h (+3/-0)
src/util/xml_util.h (+0/-1)
src/zorbamisc/ns_consts.h (+3/-5)
src/zorbaserialization/CMakeLists.txt (+5/-5)
src/zorbaserialization/archiver.cpp (+1055/-959)
src/zorbaserialization/archiver.h (+529/-316)
src/zorbaserialization/bin_archiver.cpp (+247/-145)
src/zorbaserialization/bin_archiver.h (+58/-44)
src/zorbaserialization/class_serializer.cpp (+70/-719)
src/zorbaserialization/class_serializer.h (+234/-378)
src/zorbaserialization/mem_archiver.cpp (+39/-30)
src/zorbaserialization/mem_archiver.h (+27/-29)
src/zorbaserialization/serialization_engine.h (+0/-24)
src/zorbaserialization/serialize_basic_types.cpp (+807/-0)
src/zorbaserialization/serialize_basic_types.h (+96/-0)
src/zorbaserialization/serialize_template_types.h (+1047/-0)
src/zorbaserialization/serialize_zorba_types.cpp (+1515/-0)
src/zorbaserialization/serialize_zorba_types.h (+405/-0)
src/zorbaserialization/template_serializer.h (+0/-1017)
src/zorbaserialization/xml_archiver.cpp (+68/-55)
src/zorbaserialization/xml_archiver.h (+45/-37)
src/zorbaserialization/zorba_class_serializer.cpp (+0/-1392)
src/zorbaserialization/zorba_class_serializer.h (+0/-571)
src/zorbaserialization/zorba_class_versions.cpp (+5/-544)
src/zorbaserialization/zorba_classes_version.cpp (+0/-25)
src/zorbatypes/URI.cpp (+18/-5)
src/zorbatypes/binary.cpp (+14/-3)
src/zorbatypes/collation_manager.cpp (+17/-17)
src/zorbatypes/collation_manager.h (+3/-3)
src/zorbatypes/datetime/datetimetype.cpp (+3/-2)
src/zorbatypes/datetime/duration.cpp (+4/-1)
src/zorbatypes/datetime/timezone.cpp (+5/-2)
src/zorbatypes/decimal.cpp (+94/-60)
src/zorbatypes/decimal.h (+177/-200)
src/zorbatypes/floatimpl.cpp (+79/-17)
src/zorbatypes/floatimpl.h (+684/-465)
src/zorbatypes/ft_token.cpp (+1/-1)
src/zorbatypes/ft_token.h (+1/-1)
src/zorbatypes/integer.cpp (+292/-100)
src/zorbatypes/integer.h (+918/-321)
src/zorbatypes/libicu.h (+0/-32)
src/zorbatypes/numconversions.cpp (+27/-9)
src/zorbatypes/numconversions.h (+4/-0)
src/zorbatypes/rchandle.h (+9/-2)
src/zorbatypes/rclist.h (+37/-0)
src/zorbatypes/schema_types.h (+5/-1)
src/zorbatypes/transcoder.cpp (+8/-4)
src/zorbatypes/transcoder.h (+9/-9)
src/zorbatypes/zorbatypes_decl.h (+13/-1)
src/zorbautils/hashmap.h (+69/-29)
src/zorbautils/hashmap_itemh.h (+141/-0)
src/zorbautils/hashmap_itemp.h (+3/-1)
src/zorbautils/hashmap_zstring.h (+8/-8)
src/zorbautils/hashmap_zstring_nonserializable.h (+76/-0)
src/zorbautils/locale.cpp (+385/-6)
src/zorbautils/locale.h (+375/-271)
src/zorbautils/string_util.cpp (+19/-18)
src/zorbautils/string_util.h (+15/-1)
swig/CMakeLists.txt (+3/-7)
swig/Collection.h (+46/-0)
swig/Collection.i (+91/-0)
swig/CollectionManager.h (+38/-0)
swig/CollectionManager.i (+57/-0)
swig/DiagnosticHandler.i (+5/-3)
swig/DocumentManager.h (+35/-0)
swig/DocumentManager.i (+46/-0)
swig/DynamicContext.h (+45/-0)
swig/DynamicContext.i (+59/-0)
swig/Exceptions.i (+3/-3)
swig/Item.h (+73/-0)
swig/Item.i (+128/-0)
swig/ItemFactory.h (+97/-0)
swig/ItemFactory.i (+226/-0)
swig/ItemSequence.h (+36/-0)
swig/ItemSequence.i (+31/-0)
swig/Iterator.h (+57/-0)
swig/Iterator.i (+70/-0)
swig/SerializationOptions.h (+114/-0)
swig/SerializationOptions.i (+125/-0)
swig/StaticCollectionManager.h (+45/-0)
swig/StaticCollectionManager.i (+96/-0)
swig/StaticContext.h (+145/-0)
swig/StaticContext.i (+259/-164)
swig/Store.i (+2/-0)
swig/TypeIdentifier.h (+97/-0)
swig/TypeIdentifier.i (+197/-0)
swig/XQuery.h (+47/-0)
swig/XQuery.i (+35/-288)
swig/XmlDataManager.h (+35/-0)
swig/XmlDataManager.i (+20/-67)
swig/Zorba.h (+51/-0)
swig/Zorba.i (+81/-43)
swig/java/CMakeLists.txt (+18/-0)
swig/java/zorba_api.i (+2/-1)
swig/php/CMakeLists.txt (+33/-27)
swig/php/XQueryProcessor.php (+397/-0)
swig/php/generate_proxy.php.in (+0/-209)
swig/php/test.xq (+1/-0)
swig/php/tests/CMakeLists.txt (+90/-0)
swig/php/tests/books.xml (+11/-0)
swig/php/tests/compilerHints.xq (+4/-0)
swig/php/tests/php.ini.in (+3/-0)
swig/php/tests/test01.php (+29/-0)
swig/php/tests/test02.php (+44/-0)
swig/php/tests/test03.php (+48/-0)
swig/php/tests/test04.php (+43/-0)
swig/php/tests/test04.xq (+4/-0)
swig/php/tests/test05.php (+43/-0)
swig/php/tests/test05.xq (+7/-0)
swig/php/tests/test06.php (+43/-0)
swig/php/tests/test06.xq (+7/-0)
swig/php/tests/test07.php (+56/-0)
swig/php/tests/test08.php (+120/-0)
swig/php/tests/test09.php (+92/-0)
swig/php/tests/test10.php (+55/-0)
swig/php/tests/test11.php (+52/-0)
swig/php/tests/test12.php (+52/-0)
swig/php/tests/test13.php (+53/-0)
swig/php/tests/test14.php (+53/-0)
swig/php/tests/zorba_api.php (+178/-0)
swig/php/zorba_api.i (+15/-14)
swig/php/zorba_api_wrapper.php (+1215/-0)
swig/python/CMakeLists.txt (+23/-9)
swig/python/tests/CMakeLists.txt (+3/-3)
swig/python/tests/test03.py.in (+1/-0)
swig/ruby/CMakeLists.txt (+28/-2)
swig/ruby/tests/CMakeLists.txt (+83/-0)
swig/ruby/tests/books.xml (+11/-0)
swig/ruby/tests/compilerHints.xq (+4/-0)
swig/ruby/tests/test01.rb (+24/-0)
swig/ruby/tests/test02.rb (+39/-0)
swig/ruby/tests/test03.rb (+43/-0)
swig/ruby/tests/test04.rb (+35/-0)
swig/ruby/tests/test04.xq (+4/-0)
swig/ruby/tests/test05.rb (+35/-0)
swig/ruby/tests/test05.xq (+7/-0)
swig/ruby/tests/test06.rb (+35/-0)
swig/ruby/tests/test06.xq (+7/-0)
swig/ruby/tests/test07.rb (+48/-0)
swig/ruby/tests/test08.rb (+108/-0)
swig/ruby/tests/test09.rb (+81/-0)
swig/ruby/tests/test10.rb (+46/-0)
swig/ruby/tests/test11.rb (+49/-0)
swig/ruby/tests/test12.rb (+49/-0)
swig/ruby/tests/test13.rb (+50/-0)
swig/ruby/tests/test14.rb (+50/-0)
swig/various.i (+184/-0)
swig/xqj/CMakeLists.txt (+87/-0)
swig/xqj/XQCollection.java (+153/-0)
swig/xqj/XQCollectionManager.java (+89/-0)
swig/xqj/XQConnection.java (+1444/-0)
swig/xqj/XQDataSource.java (+171/-0)
swig/xqj/XQDocumentManager.java (+73/-0)
swig/xqj/XQExpression.java (+454/-0)
swig/xqj/XQItem.java (+642/-0)
swig/xqj/XQItemType.java (+743/-0)
swig/xqj/XQMetaData.java (+204/-0)
swig/xqj/XQPreparedExpression.java (+675/-0)
swig/xqj/XQResultItem.java (+42/-0)
swig/xqj/XQResultSequence.java (+476/-0)
swig/xqj/XQResultSequenceScrollable.java (+478/-0)
swig/xqj/XQSequence.java (+514/-0)
swig/xqj/XQSequenceType.java (+85/-0)
swig/xqj/XQStaticCollectionManager.java (+86/-0)
swig/xqj/XQStaticContext.java (+435/-0)
swig/xqj/XQXmlDataManager.java (+99/-0)
swig/xqj/managers/Api_test.java (+319/-0)
swig/xqj/managers/module1.xq (+21/-0)
swig/xqj/managers/module2.xq (+40/-0)
swig/xqj/managers/module3.xq (+22/-0)
swig/xqj/tck/xqj_test.bat.in (+51/-0)
swig/xqj/tck/xqj_test.sh.in (+64/-0)
swig/xqj/tck/zorba.properties (+2/-0)
swig/zorba_api.i (+64/-14)
test/api/CMakeLists.txt (+6/-1)
test/api/import-hello.xsd (+7/-0)
test/api/userdefined_uri_resolution.cpp (+43/-4)
test/apitest.cpp (+21/-6)
test/http-test-data/docroot/http-test-data/http2.xml (+4/-0)
test/rbkt/CMakeLists.txt (+0/-1)
test/rbkt/ExpCompilerResults/IterPlan/iterscript.cmake (+14/-10)
test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_dynamic_zorba_collection.iter (+25/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_static_zorba_collection.iter (+61/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_w3c_collection.iter (+35/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/error/trace1.iter (+8/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/hashjoins/idx5.iter (+1/-1)
test/rbkt/ExpCompilerResults/IterPlan/zorba/misc/hoist4.iter (+7/-7)
test/rbkt/ExpCompilerResults/IterPlan/zorba/misc/inline_var1.iter (+2/-2)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide-c.iter (+375/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide-nc.iter (+375/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide2-c.iter (+139/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide2-nc.iter (+139/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dblp-q0.iter (+182/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-9065.iter (+62/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-9198.iter (+75/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-9199.iter (+75/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-9212.iter (+83/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-9389.iter (+70/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-9390.iter (+70/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-9392.iter (+71/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-gary1.iter (+227/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-idx1.iter (+105/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-idx4.iter (+168/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-q8.iter (+102/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/path17.iter (+70/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q1.iter (+49/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q10.iter (+246/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q11.iter (+103/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q12.iter (+115/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q13.iter (+45/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q14.iter (+39/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q15.iter (+50/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q16.iter (+65/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q17.iter (+47/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q18.iter (+38/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q19.iter (+56/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q2.iter (+43/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q20.iter (+192/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q3.iter (+139/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q4.iter (+126/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q5.iter (+41/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q6.iter (+29/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q7.iter (+39/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q8.iter (+107/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q9.iter (+169/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/udfs1.iter (+58/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/paths/pred_order.iter (+2/-2)
test/rbkt/ExpCompilerResults/IterPlan/zorba/string/SubstringFunc/SubstringFunc2.iter (+10/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/string/SubstringFunc/SubstringFunc3.iter (+14/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/udf/udf-fib-rec.iter (+42/-0)
test/rbkt/ExpCompilerResults/IterPlan/zorba/udf/udf1.iter (+5/-5)
test/rbkt/ExpCompilerResults/IterPlan/zorba/xray/ppm_10.iter (+18/-23)
test/rbkt/ExpQueryResults/zorba/base64/binary_1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/base64/file_read_1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/base64/file_read_2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/collections/count_dynamic_zorba_collection.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/collections/count_static_zorba_collection.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/collections/count_w3c_collection.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/collections/delete_double.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/collections/delete_nodes/truncate_001.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/collections/dynamic3.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/collections/dynamic4.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/collections/dynamic5.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/collections/dynamic6.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/collections/uri-collection_1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/K-ConcatFunc-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/K-ConcatFunc-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/K-ConcatFunc-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/K-ConcatFunc-6.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/K-ConcatFunc-7.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/K-ConcatFunc-8.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/K-ConcatFunc-9.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-10.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-11.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-12.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-13.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-14.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-15.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-16.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-17.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-6.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-7.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-8.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concat-9.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatdbl2args-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatdbl2args-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatdbl2args-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatdbl2args-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatdbl2args-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatdec2args-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatdec2args-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatdec2args-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatdec2args-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatdec2args-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatflt2args-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatflt2args-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatflt2args-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatflt2args-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatflt2args-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatint2args-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatint2args-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatint2args-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatint2args-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatint2args-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatintg2args-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatintg2args-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatintg2args-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatintg2args-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatintg2args-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatlng2args-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatlng2args-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatlng2args-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatlng2args-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatlng2args-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnint2args-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnint2args-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnint2args-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnint2args-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnint2args-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnni2args-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnni2args-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnni2args-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnni2args-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnni2args-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnpi2args-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnpi2args-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnpi2args-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnpi2args-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatnpi2args-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatpint2args-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatpint2args-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatpint2args-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatpint2args-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatpint2args-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatsht2args-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatsht2args-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatsht2args-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatsht2args-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatsht2args-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatulng2args-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatulng2args-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatulng2args-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatulng2args-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatulng2args-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatusht2args-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatusht2args-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatusht2args-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatusht2args-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/concat_operator/fn-concatusht2args-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/debugger/dmh/break_response.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/debugger/dmh/break_response_no_info.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/error/trace1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/eval/eval10.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/eval/eval11.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/eval/eval12.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/eval/eval13.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/eval/eval9.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/eval/eval_reset.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/eval/invoke1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-009.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-010.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-010a.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-012.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-013.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-014.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-014.xml.spec (+2/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-015.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-016.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-017.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-019.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-020.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-021.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-022.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-023.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/ext_var/w3c/extvardef-025.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/f-and-o/has-children-attribute.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/f-and-o/has-children-comment.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/f-and-o/has-children-pi.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/f-and-o/has-children-text.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fetch/fetch_random_file.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/file/cp1252.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/file/file_read_text_lines.xml.res (+32/-0)
test/rbkt/ExpQueryResults/zorba/file/streamability2.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-expr-clone-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-current-lang-true-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-da-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-de-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-en-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-es-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-fi-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-hu-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-it-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-nl-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-no-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-pt-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-ru-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-supported-false-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-supported-false-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stem-lang-sv-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-false-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-da-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-de-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-en-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-es-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-fi-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-fr-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-hu-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-it-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-nl-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-no-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-pt-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-supported-false-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-supported-false-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-lang-sv-supported-true.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-true-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-true-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-true-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-stop-word-true-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-thesaurus-lang-supported-false-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-thesaurus-lang-supported-false-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-thesaurus-lang-supported-true-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-is-thesaurus-lang-supported-true-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-stem-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-stem-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-stem-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-stem-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-strip-diacritics-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-thesaurus-lookup-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-thesaurus-lookup-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-thesaurus-lookup-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-thesaurus-lookup-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-thesaurus-lookup-5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-string-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-string-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-same-sentence-false-2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/groupby/posvar.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/hashjoins/idx10.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/index/auctions1.xml.res (+3/-3)
test/rbkt/ExpQueryResults/zorba/index/auctions2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/index/numbers.xml.res (+21/-0)
test/rbkt/ExpQueryResults/zorba/introspection/introsp-fn-7.xml.res (+1/-1)
test/rbkt/ExpQueryResults/zorba/json/json-jsonml_array-parse-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-jsonml_array-parse-02.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/json/json-jsonml_array-parse-03.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-jsonml_array-parse-04.xml.res (+7/-0)
test/rbkt/ExpQueryResults/zorba/json/json-jsonml_array-parse-05.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-jsonml_array-parse-wikipedia.xml.res (+10/-0)
test/rbkt/ExpQueryResults/zorba/json/json-jsonml_array-serialize-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-jsonml_array-serialize-02.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-jsonml_array-serialize-03.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-jsonml_array-serialize-indent-wikipedia.xml.res (+11/-0)
test/rbkt/ExpQueryResults/zorba/json/json-jsonml_array-serialize-none-wikipedia.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-jsonml_array-serialize-some-wikipedia.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-null-handling.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-numbers-and-decimals.xml.res (+7/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-array-01.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-array-02.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-array-03.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-array-04.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-array-05.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-array-06.xml.res (+8/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-array-07.xml.res (+10/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-array-08.xml.res (+6/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-example.xml.res (+14/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-object-01.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-object-02.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-object-03.xml.res (+8/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-object-04.xml.res (+6/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-parse-serialize.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-serialize-array-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-serialize-array-02.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-serialize-array-03.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-serialize-array-04.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-serialize-array-05.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-serialize-array-12.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-serialize-indent-example.xml.res (+11/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-serialize-none-example.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-serialize-object-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-serialize-object-02.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-serialize-object-03.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-serialize-parse.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-serialize-some-example.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-uncommon-chars.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/json/json-snelson-utf-8.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/misc/baseuri.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/dataguide-c.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/dataguide-nc.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/dataguide2-c.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/dataguide2-nc.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/dblp-q0.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/hashjoin-9198.xml.res (+19/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/hashjoin-9199.xml.res (+19/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/hashjoin-9212.xml.res (+49/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/hashjoin-9389.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/hashjoin-9390.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/hashjoin-9392.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/hashjoin-gary1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/hashjoin-idx1.xml.res (+254/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/hashjoin-idx4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/hashjoin-q8.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/parser_test.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/path17.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q10.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q11.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q12.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q13.xml.res (+18/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q14.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q17.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q18.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q19.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q20.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q6.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q7.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q8.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/q9.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/udfs1.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/udfs3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/no-copy/udfs4.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/nodes/position_1.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/nodes/position_1_parsed.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/nodes/position_2.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/nodes/position_2_parsed.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/nodes/position_3.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/nodes/position_3_parsed.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/nodes/position_4.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/nodes/position_4_parsed.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/nodes/position_err.xml.res (+6/-0)
test/rbkt/ExpQueryResults/zorba/optim/flwor_vars_01.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/optim/trycatch_hoist_01.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-01.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-02.xml.res (+6/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-03.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-04.xml.res (+12/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-05.xml.res (+12/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-06.xml.res (+8/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-07.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-08.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-09.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-10.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-11.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-12.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-13.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-14.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-15.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-16.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-17.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-18.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-19.xml.res (+8/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-20.xml.res (+8/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-21.xml.res (+6/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-22.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-23.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-24.xml.res (+5/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-25.xml.res (+14/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-26.xml.res (+14/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-27.xml.res (+10/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-28.xml.res (+6/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-29.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-30.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-31.xml.res (+59/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-32.xml.res (+50/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-33.xml.res (+34/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-34.xml.res (+18/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-35.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-36.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-37.xml.res (+14/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-38.xml.res (+14/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-39.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-40.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-41.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-42.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-43.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-44.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-45.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-46.xml.res (+31/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-53.xml.res (+8/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-54.xml.res (+7/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-55.xml.res (+8/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-fragment-skip-root-56.xml.res (+7/-0)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-xml-fragment-12.xml.res (+1/-1)
test/rbkt/ExpQueryResults/zorba/parsing_and_serializing/parse-xml-fragment-16.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/paths/path28.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/paths/ref1.xml.res (+387/-0)
test/rbkt/ExpQueryResults/zorba/pul-schema/create-collection.xml.res (+14/-0)
test/rbkt/ExpQueryResults/zorba/pul-schema/empty-pul.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/pul-schema/insert-into-collection.xml.res (+8/-0)
test/rbkt/ExpQueryResults/zorba/reference/reference_1.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/reference/reference_2.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/reference/reference_3.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/reference/reference_4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/reference/reference_5.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/reference/reference_coll_1.xml.res (+2/-1)
test/rbkt/ExpQueryResults/zorba/reference/reference_coll_2.xml.res (+2/-1)
test/rbkt/ExpQueryResults/zorba/reference/reference_coll_3.xml.res (+2/-1)
test/rbkt/ExpQueryResults/zorba/schemas/val-inplace3.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/schemas/val-inplace4.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/schemas/val-xsiType-noSchemaImport.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/schemas/validate_xqdoc_01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/schemas/validate_xqdoc_02.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/scripting/flwor15.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/ExpQueryResults/zorba/spec/xquery_1_1.xml.res (+0/-4)
test/rbkt/ExpQueryResults/zorba/spec/xquery_3_0.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a10.xml.res (+242/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a11.xml.res (+6/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a6.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a7.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a8.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a9.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m10.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m11.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m12.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m13.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m14.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m15.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m16.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m17.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m18.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m19.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m20.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m21.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m22.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m23.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m24.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m25.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m26.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m27.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m28.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m29.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m30.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m31.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m32.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m33.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m34.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m35.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m36.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m37.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m38.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m39.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m40.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m41.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m42.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m43.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m44.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m45.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m46.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m47.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m48.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m49.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m50.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m51.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m52.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m53.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m6.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m7.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m8.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_m9.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_prime1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_r1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_r10.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_r11.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_r12.xml.res (+5/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_r2.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_r3.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_r4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_r5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_r6.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_r9.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_t1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_t4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_t5.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/StringToCodepointFunc/StringToCodepointFunc4.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/tokenize01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/tokenize02.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/tokenize03.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/string/tokenize04.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/testdriver/bom_bug.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/trycatch/trycatch12.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/trycatch/trycatch13.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/udf/udf-fib-rec-BIG_INTEGER.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/udf/udf-fib-rec.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/updates/no_hoist.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/updates/recursive.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/updates/undo10.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/updates/undo11.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/updates/undo8.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/updates/undo9.xml.res (+2/-0)
test/rbkt/ExpQueryResults/zorba/uris/decode_01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/uris/decode_03.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/uris/decode_04.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/q19.xml.res (+0/-1)
test/rbkt/ExpQueryResults/zorba/windowing/sliding01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding02.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding03.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding04.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding06.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding07.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding09.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding10.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding11.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding12.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding13.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding14.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling02.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling04.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling05.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling07.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling08.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling09.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling10.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling24.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling26.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling27.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling28.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling29.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling30.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling32.xml.res (+12/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling33.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling34.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling35.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling36.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling38.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling39.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling40.xml.res (+24/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling41.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling45.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling46.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling47.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling48.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/windowing12.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/xdm-schema/1-to-5.xml.res (+7/-0)
test/rbkt/ExpQueryResults/zorba/xdm-schema/empty-sequence.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/xdm-schema/nodes.xml.res (+7/-0)
test/rbkt/ExpQueryResults/zorba/xqddf/daniel/ric6.xml.res (+2/-2)
test/rbkt/ExpQueryResults/zorba/xqddf/ic-foreignKey.xml.res (+1/-1)
test/rbkt/ExpQueryResults/zorba/xqdoc/basic.xml.res (+2/-2)
test/rbkt/ExpQueryResults/zorba/xqdoc/content.xml.res (+2/-2)
test/rbkt/ExpQueryResults/zorba/xqdoc/indentation.xml.res (+1/-2)
test/rbkt/ExpQueryResults/zorba/xqdoc/local.xml.res (+1/-1)
test/rbkt/ExpQueryResults/zorba/xqdoc/no_global_var.xml.res (+1/-2)
test/rbkt/ExpQueryResults/zorba/xqdoc/testSchemaTypes.xml.res (+1/-2)
test/rbkt/ExpQueryResults/zorba/xqdoc/unorderedAnnotations.xml.res (+2/-3)
test/rbkt/Queries/CMakeLists.txt (+335/-35)
test/rbkt/Queries/w3c_known_failures.txt (+51/-82)
test/rbkt/Queries/w3c_known_failures_XQueryX.txt (+88/-0)
test/rbkt/Queries/zorba/annotations/annot-unknown-02.spec (+1/-1)
test/rbkt/Queries/zorba/annotations/annot-unknown-02.xq (+10/-6)
test/rbkt/Queries/zorba/annotations/annot-unknown-04.spec (+1/-1)
test/rbkt/Queries/zorba/annotations/annot-unknown-04.xq (+9/-6)
test/rbkt/Queries/zorba/base64/binary_1.xq (+1/-0)
test/rbkt/Queries/zorba/base64/decoded-text (+1/-0)
test/rbkt/Queries/zorba/base64/encoded (+1/-0)
test/rbkt/Queries/zorba/base64/encoded-text (+1/-0)
test/rbkt/Queries/zorba/base64/file_read_1.xq (+10/-0)
test/rbkt/Queries/zorba/base64/file_read_2.xq (+11/-0)
test/rbkt/Queries/zorba/collections/collection_002.xqdata (+3/-1)
test/rbkt/Queries/zorba/collections/count_dynamic_zorba_collection.xq (+10/-0)
test/rbkt/Queries/zorba/collections/count_static_zorba_collection.xq (+14/-0)
test/rbkt/Queries/zorba/collections/count_w3c_collection.xq (+8/-0)
test/rbkt/Queries/zorba/collections/delete_double.xq (+10/-0)
test/rbkt/Queries/zorba/collections/delete_nodes/truncate_001.xq (+27/-0)
test/rbkt/Queries/zorba/collections/dynamic3.xq (+7/-0)
test/rbkt/Queries/zorba/collections/dynamic4.xq (+7/-0)
test/rbkt/Queries/zorba/collections/dynamic5.xq (+7/-0)
test/rbkt/Queries/zorba/collections/dynamic6.xq (+10/-0)
test/rbkt/Queries/zorba/collections/modifier_3.xq (+1/-1)
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/concat_operator/K-ConcatFunc-3.xq (+7/-0)
test/rbkt/Queries/zorba/concat_operator/K-ConcatFunc-4.xq (+7/-0)
test/rbkt/Queries/zorba/concat_operator/K-ConcatFunc-5.xq (+7/-0)
test/rbkt/Queries/zorba/concat_operator/K-ConcatFunc-6.xq (+7/-0)
test/rbkt/Queries/zorba/concat_operator/K-ConcatFunc-7.xq (+8/-0)
test/rbkt/Queries/zorba/concat_operator/K-ConcatFunc-8.xq (+7/-0)
test/rbkt/Queries/zorba/concat_operator/K-ConcatFunc-9.xq (+7/-0)
test/rbkt/Queries/zorba/concat_operator/K2-ConcatFunc-1.spec (+1/-0)
test/rbkt/Queries/zorba/concat_operator/K2-ConcatFunc-1.xq (+7/-0)
test/rbkt/Queries/zorba/concat_operator/K2-ConcatFunc-2.spec (+1/-0)
test/rbkt/Queries/zorba/concat_operator/K2-ConcatFunc-2.xq (+7/-0)
test/rbkt/Queries/zorba/concat_operator/K2-ConcatFunc-3.spec (+1/-0)
test/rbkt/Queries/zorba/concat_operator/K2-ConcatFunc-3.xq (+7/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-1.xq (+5/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-10.xq (+4/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-11.xq (+3/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-12.xq (+3/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-14.xq (+4/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-15.xq (+4/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-16.xq (+4/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-17.xq (+4/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-2.xq (+5/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-3.xq (+5/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-4.xq (+5/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-5.xq (+4/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-6.xq (+4/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-7.xq (+4/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-8.xq (+5/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concat-9.xq (+4/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatdbl2args-1.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatdbl2args-2.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatdbl2args-3.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatdbl2args-4.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatdbl2args-5.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatdec2args-1.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatdec2args-2.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatdec2args-3.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatdec2args-4.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatdec2args-5.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatflt2args-1.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatflt2args-2.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatflt2args-3.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatflt2args-4.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatflt2args-5.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatint2args-1.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatint2args-2.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatint2args-3.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatint2args-4.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatint2args-5.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatintg2args-1.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatintg2args-2.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatintg2args-3.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatintg2args-4.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatintg2args-5.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatlng2args-1.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatlng2args-2.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatlng2args-3.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatlng2args-4.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatlng2args-5.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnint2args-1.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnint2args-2.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnint2args-3.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnint2args-4.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnint2args-5.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnni2args-1.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnni2args-2.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnni2args-3.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnni2args-4.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnni2args-5.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnpi2args-1.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnpi2args-2.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnpi2args-3.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnpi2args-4.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatnpi2args-5.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatpint2args-1.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatpint2args-2.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatpint2args-3.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatpint2args-4.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatpint2args-5.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatsht2args-1.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatsht2args-2.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatsht2args-3.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatsht2args-4.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatsht2args-5.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatulng2args-1.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatulng2args-2.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatulng2args-3.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatulng2args-4.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatulng2args-5.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatusht2args-1.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatusht2args-2.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatusht2args-3.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatusht2args-4.xq (+11/-0)
test/rbkt/Queries/zorba/concat_operator/fn-concatusht2args-5.xq (+11/-0)
test/rbkt/Queries/zorba/debugger/dmh/break_response.xq (+5/-0)
test/rbkt/Queries/zorba/debugger/dmh/break_response_no_info.xq (+7/-0)
test/rbkt/Queries/zorba/error/trace1.xq (+6/-0)
test/rbkt/Queries/zorba/eval/eval10.xq (+28/-0)
test/rbkt/Queries/zorba/eval/eval11.xq (+34/-0)
test/rbkt/Queries/zorba/eval/eval12.xq (+34/-0)
test/rbkt/Queries/zorba/eval/eval13.xq (+34/-0)
test/rbkt/Queries/zorba/eval/eval9.xq (+6/-0)
test/rbkt/Queries/zorba/eval/eval_reset.xq (+15/-0)
test/rbkt/Queries/zorba/eval/invoke1.xq (+5/-0)
test/rbkt/Queries/zorba/eval/invoke1_1.xqlib (+10/-0)
test/rbkt/Queries/zorba/eval/invoke1_2.xqlib (+3/-0)
test/rbkt/Queries/zorba/ext_var/w3c/SchemaImport/hats.xsd (+68/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-008.spec (+1/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-008.xq (+1/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-009.xq (+1/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-010.xq (+4/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-010a.xq (+4/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-011.spec (+1/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-011.xq (+3/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-011a.spec (+1/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-011a.xq (+9/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-012.xq (+4/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-013.spec (+3/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-013.xq (+6/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-014.spec (+1/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-014.xq (+3/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-015.xq (+4/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-016.xq (+4/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-017.xq (+2/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-018.spec (+1/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-018.xq (+2/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-019.xq (+3/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-020.xq (+5/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-021.xq (+3/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-022.xq (+5/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-023.xq (+8/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-024.spec (+1/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-024.xq (+8/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-025.xq (+8/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-026.spec (+1/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-026.xq (+8/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-027.spec (+1/-0)
test/rbkt/Queries/zorba/ext_var/w3c/extvardef-027.xq (+7/-0)
test/rbkt/Queries/zorba/f-and-o/has-children-attribute.xq (+1/-0)
test/rbkt/Queries/zorba/f-and-o/has-children-comment.xq (+1/-0)
test/rbkt/Queries/zorba/f-and-o/has-children-pi.xq (+1/-0)
test/rbkt/Queries/zorba/f-and-o/has-children-text.xq (+1/-0)
test/rbkt/Queries/zorba/fetch/fetch_bogus2.xq (+1/-1)
test/rbkt/Queries/zorba/fetch/fetch_random_file.xq (+4/-0)
test/rbkt/Queries/zorba/file/cp1252.txt (+1/-0)
test/rbkt/Queries/zorba/file/cp1252.xq (+3/-0)
test/rbkt/Queries/zorba/file/file_read_text_lines.xq (+4/-0)
test/rbkt/Queries/zorba/file/files_pattern_rec1.xq (+7/-1)
test/rbkt/Queries/zorba/file/files_pattern_rec2.xq (+7/-1)
test/rbkt/Queries/zorba/file/invalid_encoding.spec (+1/-0)
test/rbkt/Queries/zorba/file/invalid_encoding.xq (+3/-0)
test/rbkt/Queries/zorba/file/streamability2.spec (+0/-1)
test/rbkt/Queries/zorba/fulltext/ft-expr-clone-1.xq (+10/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-current-lang-true-1.xq (+5/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-da-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-de-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-en-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-es-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-fi-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-hu-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-it-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-nl-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-no-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-pt-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-ru-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-supported-false-1.xq (+4/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-supported-false-2.xq (+4/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stem-lang-sv-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-false-1.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-da-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-de-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-en-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-es-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-fi-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-fr-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-hu-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-it-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-nl-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-no-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-pt-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-supported-false-1.xq (+4/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-supported-false-2.xq (+4/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-lang-sv-supported-true.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-true-1.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-true-2.xq (+5/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-true-3.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-stop-word-true-4.xq (+5/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-thesaurus-lang-supported-false-1.xq (+4/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-thesaurus-lang-supported-false-2.xq (+4/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-thesaurus-lang-supported-false-3.spec (+1/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-thesaurus-lang-supported-false-3.xq (+4/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-thesaurus-lang-supported-true-1.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-thesaurus-lang-supported-true-2.spec (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-is-thesaurus-lang-supported-true-2.xq (+6/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-stem-1.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-stem-2.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-stem-3.xq (+5/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-stem-4.xq (+5/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-strip-diacritics-1.xq (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-thesaurus-lookup-1.xq (+6/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-thesaurus-lookup-2.spec (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-thesaurus-lookup-2.xq (+6/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-thesaurus-lookup-3.spec (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-thesaurus-lookup-3.xq (+7/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-thesaurus-lookup-4.spec (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-thesaurus-lookup-4.xq (+7/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-thesaurus-lookup-5.spec (+3/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-thesaurus-lookup-5.xq (+8/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-1.xq (+18/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-2.xq (+18/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-3.xq (+10/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-4.xq (+10/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-string-1.xq (+8/-0)
test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-string-2.xq (+10/-0)
test/rbkt/Queries/zorba/fulltext/ft-same-sentence-false-2.xq (+2/-0)
test/rbkt/Queries/zorba/fulltext/ft-same-sentence-true-2.xq (+1/-1)
test/rbkt/Queries/zorba/fulltext/ft-same-sentence-true-3.xq (+1/-1)
test/rbkt/Queries/zorba/fulltext/ft-same-sentence-true-4.xq (+1/-1)
test/rbkt/Queries/zorba/fulltext/ft-thesaurus-FOCA0003-1.spec (+4/-0)
test/rbkt/Queries/zorba/fulltext/ft-thesaurus-FOCA0003-1.xq (+10/-0)
test/rbkt/Queries/zorba/fulltext/ft-thesaurus-true-1.spec (+0/-3)
test/rbkt/Queries/zorba/fulltext/ft-thesaurus-true-2.spec (+0/-3)
test/rbkt/Queries/zorba/fulltext/ft-thesaurus-true-3.spec (+1/-1)
test/rbkt/Queries/zorba/fulltext/ft-thesaurus-true-4.spec (+1/-1)
test/rbkt/Queries/zorba/groupby/posvar.xq (+17/-0)
test/rbkt/Queries/zorba/hashjoins/idx10.xq (+27/-0)
test/rbkt/Queries/zorba/hashjoins/idx9.xq (+10/-0)
test/rbkt/Queries/zorba/hashjoins/idx9.xqlib (+21/-0)
test/rbkt/Queries/zorba/http-client/send-request/http2-read-svg.xq (+2/-2)
test/rbkt/Queries/zorba/http-client/send-request/http4-post-redirect.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/send-request/http4-post-redirect.xq (+5/-0)
test/rbkt/Queries/zorba/index/auctions1.xml (+1/-0)
test/rbkt/Queries/zorba/index/auctions1.xq (+1/-1)
test/rbkt/Queries/zorba/index/auctions2.xq (+25/-0)
test/rbkt/Queries/zorba/index/numbers.xml (+10/-0)
test/rbkt/Queries/zorba/index/numbers.xq (+75/-0)
test/rbkt/Queries/zorba/index/numbers.xqlib (+28/-0)
test/rbkt/Queries/zorba/json/json-invalid-option-parameter.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-invalid-option-parameter.xq (+10/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-parse-01.xq (+9/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-parse-02.xq (+14/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-parse-03.xq (+18/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-parse-04.xq (+27/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-parse-05.xq (+66/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-parse-06.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-parse-06.xq (+10/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-parse-wikipedia.xq (+23/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-serialize-01.xq (+10/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-serialize-02.xq (+13/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-serialize-03.xq (+10/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-serialize-indent-wikipedia.xq (+20/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-serialize-none-wikipedia.xq (+19/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-serialize-some-wikipedia.xq (+20/-0)
test/rbkt/Queries/zorba/json/json-snelson-invalid-json.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-snelson-invalid-json.xq (+9/-0)
test/rbkt/Queries/zorba/json/json-snelson-null-handling.xq (+5/-0)
test/rbkt/Queries/zorba/json/json-snelson-numbers-and-decimals.xq (+10/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-array-01.xq (+5/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-array-02.xq (+5/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-array-03.xq (+5/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-array-04.xq (+5/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-array-05.xq (+5/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-array-06.xq (+7/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-array-07.xq (+5/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-array-08.xq (+7/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-empty.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-empty.xq (+5/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-example.xq (+20/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-object-01.xq (+5/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-object-02.xq (+5/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-object-03.xq (+7/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-object-04.xq (+12/-0)
test/rbkt/Queries/zorba/json/json-snelson-parse-serialize.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-01.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-02.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-03.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-04.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-05.xq (+9/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-06.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-06.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-07.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-07.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-08.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-08.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-09.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-09.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-10.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-10.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-11.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-11.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-array-12.xq (+11/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-comment-node.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-comment-node.xq (+5/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-indent-example.xq (+24/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-invalid-value-for-attribute.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-invalid-value-for-attribute.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-none-example.xq (+19/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-object-01.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-object-02.xq (+9/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-object-03.xq (+12/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-parse.xq (+5/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-some-example.xq (+24/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-type-value-missing.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-snelson-serialize-type-value-missing.xq (+8/-0)
test/rbkt/Queries/zorba/json/json-snelson-uncommon-chars.xq (+5/-0)
test/rbkt/Queries/zorba/json/json-snelson-utf-8.xq (+5/-0)
test/rbkt/Queries/zorba/misc/baseuri.xml (+1/-0)
test/rbkt/Queries/zorba/misc/baseuri.xq (+2/-0)
test/rbkt/Queries/zorba/misc/context-item-decl01.spec (+1/-0)
test/rbkt/Queries/zorba/misc/context-item-decl01.xq (+5/-0)
test/rbkt/Queries/zorba/modules/libraryModule15.xqlib (+8/-3)
test/rbkt/Queries/zorba/no-copy/auction.xml (+2182/-0)
test/rbkt/Queries/zorba/no-copy/books.xml (+25/-0)
test/rbkt/Queries/zorba/no-copy/dataguide-c.xq (+87/-0)
test/rbkt/Queries/zorba/no-copy/dataguide-nc.xq (+91/-0)
test/rbkt/Queries/zorba/no-copy/dataguide2-c.xq (+33/-0)
test/rbkt/Queries/zorba/no-copy/dataguide2-nc.xq (+38/-0)
test/rbkt/Queries/zorba/no-copy/dblp-q0.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/dblp-q0.xq (+32/-0)
test/rbkt/Queries/zorba/no-copy/hashjoin-9065.xq (+9/-0)
test/rbkt/Queries/zorba/no-copy/hashjoin-9198.xq (+13/-0)
test/rbkt/Queries/zorba/no-copy/hashjoin-9199.xq (+11/-0)
test/rbkt/Queries/zorba/no-copy/hashjoin-9212.xq (+15/-0)
test/rbkt/Queries/zorba/no-copy/hashjoin-9389.xq (+13/-0)
test/rbkt/Queries/zorba/no-copy/hashjoin-9390.xq (+15/-0)
test/rbkt/Queries/zorba/no-copy/hashjoin-9392.xq (+14/-0)
test/rbkt/Queries/zorba/no-copy/hashjoin-gary1.xq (+42/-0)
test/rbkt/Queries/zorba/no-copy/hashjoin-idx1.xq (+12/-0)
test/rbkt/Queries/zorba/no-copy/hashjoin-idx4.xq (+33/-0)
test/rbkt/Queries/zorba/no-copy/hashjoin-q8.xq (+17/-0)
test/rbkt/Queries/zorba/no-copy/parser_test.xq (+3/-0)
test/rbkt/Queries/zorba/no-copy/path17.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/path17.xq (+12/-0)
test/rbkt/Queries/zorba/no-copy/q1.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q1.xq (+9/-0)
test/rbkt/Queries/zorba/no-copy/q10.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q10.xq (+36/-0)
test/rbkt/Queries/zorba/no-copy/q11.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q11.xq (+13/-0)
test/rbkt/Queries/zorba/no-copy/q12.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q12.xq (+16/-0)
test/rbkt/Queries/zorba/no-copy/q13.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q13.xq (+9/-0)
test/rbkt/Queries/zorba/no-copy/q14.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q14.xq (+11/-0)
test/rbkt/Queries/zorba/no-copy/q15.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q15.xq (+10/-0)
test/rbkt/Queries/zorba/no-copy/q16.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q16.xq (+17/-0)
test/rbkt/Queries/zorba/no-copy/q17.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q17.xq (+10/-0)
test/rbkt/Queries/zorba/no-copy/q18.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q18.xq (+17/-0)
test/rbkt/Queries/zorba/no-copy/q19.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q19.xq (+13/-0)
test/rbkt/Queries/zorba/no-copy/q2.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q2.xq (+10/-0)
test/rbkt/Queries/zorba/no-copy/q20.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q20.xq (+34/-0)
test/rbkt/Queries/zorba/no-copy/q21.xq (+86/-0)
test/rbkt/Queries/zorba/no-copy/q3.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q3.xq (+14/-0)
test/rbkt/Queries/zorba/no-copy/q4.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q4.xq (+14/-0)
test/rbkt/Queries/zorba/no-copy/q5.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q5.xq (+13/-0)
test/rbkt/Queries/zorba/no-copy/q6.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q6.xq (+10/-0)
test/rbkt/Queries/zorba/no-copy/q7.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q7.xq (+11/-0)
test/rbkt/Queries/zorba/no-copy/q8.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q8.xq (+14/-0)
test/rbkt/Queries/zorba/no-copy/q9.spec (+3/-0)
test/rbkt/Queries/zorba/no-copy/q9.xq (+20/-0)
test/rbkt/Queries/zorba/no-copy/simple_parser.xqlib (+2207/-0)
test/rbkt/Queries/zorba/no-copy/test1.xq (+17/-0)
test/rbkt/Queries/zorba/no-copy/udfs1.xq (+31/-0)
test/rbkt/Queries/zorba/no-copy/udfs2.xq (+31/-0)
test/rbkt/Queries/zorba/no-copy/udfs3.xq (+14/-0)
test/rbkt/Queries/zorba/no-copy/udfs4.xq (+96/-0)
test/rbkt/Queries/zorba/nodes/position.xml (+15/-0)
test/rbkt/Queries/zorba/nodes/position_1.xq (+97/-0)
test/rbkt/Queries/zorba/nodes/position_1_parsed.xq (+98/-0)
test/rbkt/Queries/zorba/nodes/position_2.xq (+157/-0)
test/rbkt/Queries/zorba/nodes/position_2_parsed.xq (+156/-0)
test/rbkt/Queries/zorba/nodes/position_3.xq (+32/-0)
test/rbkt/Queries/zorba/nodes/position_3_parsed.xq (+34/-0)
test/rbkt/Queries/zorba/nodes/position_4.xq (+84/-0)
test/rbkt/Queries/zorba/nodes/position_4_parsed.xq (+81/-0)
test/rbkt/Queries/zorba/nodes/position_err.xq (+60/-0)
test/rbkt/Queries/zorba/optim/flwor_vars_01.xq (+10/-0)
test/rbkt/Queries/zorba/optim/flwor_vars_02.xq (+29/-0)
test/rbkt/Queries/zorba/optim/trycatch_hoist_01.xq (+17/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-01.xq (+8/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-02.xq (+13/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-03.xq (+13/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-04.xq (+19/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-05.xq (+19/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-06.xq (+19/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-07.xq (+19/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-08.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-09.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-10.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-11.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-12.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-13.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-14.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-15.xq (+8/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-16.xq (+8/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-17.xq (+8/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-18.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-19.xq (+15/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-20.xq (+15/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-21.xq (+15/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-22.xq (+15/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-23.xq (+15/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-24.xq (+16/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-25.xq (+21/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-26.xq (+21/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-27.xq (+21/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-28.xq (+21/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-29.xq (+21/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-30.xq (+21/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-31.xq (+65/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-32.xq (+65/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-33.xq (+65/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-34.xq (+65/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-35.xq (+65/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-36.xq (+65/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-37.xq (+20/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-38.xq (+20/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-39.xq (+20/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-40.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-41.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-42.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-43.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-44.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-45.xq (+9/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-46.xq (+37/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-47.spec (+1/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-47.xq (+13/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-48.spec (+1/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-48.xq (+13/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-49.spec (+1/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-49.xq (+13/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-50.spec (+1/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-50.xq (+13/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-51.spec (+1/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-51.xq (+11/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-52.spec (+1/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-52.xq (+11/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-53.xq (+13/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-54.xq (+14/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-55.xq (+14/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-56.xq (+14/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-01.xq (+6/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-02.xq (+6/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-03.xq (+6/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-04.xq (+6/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-05.xq (+8/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-06.xq (+6/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-07.xq (+6/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-08.xq (+7/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-09.xq (+6/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-10.xq (+2/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-11.xq (+7/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-12.xq (+6/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-13.xq (+7/-1)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-14.xq (+6/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-15.xq (+8/-2)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-16.spec (+0/-1)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-16.xq (+0/-8)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-17.spec (+0/-1)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-17.xq (+0/-8)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-18.spec (+1/-0)
test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-18.xq (+8/-0)
test/rbkt/Queries/zorba/paths/path28.xq (+2/-0)
test/rbkt/Queries/zorba/paths/ref1.spec (+0/-1)
test/rbkt/Queries/zorba/pul-schema/create-collection.xq (+18/-0)
test/rbkt/Queries/zorba/pul-schema/empty-pul.xq (+5/-0)
test/rbkt/Queries/zorba/pul-schema/insert-into-collection.xq (+12/-0)
test/rbkt/Queries/zorba/reference/error.spec (+0/-4)
test/rbkt/Queries/zorba/reference/error.xq (+0/-6)
test/rbkt/Queries/zorba/reference/reference.xqlib (+3/-0)
test/rbkt/Queries/zorba/reference/reference_1.xq (+13/-0)
test/rbkt/Queries/zorba/reference/reference_2.xq (+14/-0)
test/rbkt/Queries/zorba/reference/reference_3.xq (+33/-0)
test/rbkt/Queries/zorba/reference/reference_4.spec (+1/-0)
test/rbkt/Queries/zorba/reference/reference_4.xq (+3/-0)
test/rbkt/Queries/zorba/reference/reference_5.xq (+29/-0)
test/rbkt/Queries/zorba/reference/reference_doc_example_01.spec (+0/-4)
test/rbkt/Queries/zorba/reference/reference_doc_example_01.xq (+0/-7)
test/rbkt/Queries/zorba/reference/reference_doc_example_02.spec (+0/-4)
test/rbkt/Queries/zorba/reference/reference_doc_example_02.xq (+0/-8)
test/rbkt/Queries/zorba/schemas/extracontent.xsd (+9/-0)
test/rbkt/Queries/zorba/schemas/local-xhtml.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/local-xhtml.xq (+6/-0)
test/rbkt/Queries/zorba/schemas/val-attInSimpleContent-err.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/val-attInSimpleContent-err.xq (+9/-0)
test/rbkt/Queries/zorba/schemas/val-elmInSimpleContent-err2.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/val-elmInSimpleContent-err2.xq (+10/-0)
test/rbkt/Queries/zorba/schemas/val-elmInSimpleContent-err3.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/val-elmInSimpleContent-err3.xq (+10/-0)
test/rbkt/Queries/zorba/schemas/val-inplace-err2.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/val-inplace-err2.xq (+23/-0)
test/rbkt/Queries/zorba/schemas/val-inplace-err2.xsd (+18/-0)
test/rbkt/Queries/zorba/schemas/val-inplace-err3.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/val-inplace-err3.xq (+11/-0)
test/rbkt/Queries/zorba/schemas/val-inplace-err4.spec (+1/-0)
test/rbkt/Queries/zorba/schemas/val-inplace-err4.xq (+11/-0)
test/rbkt/Queries/zorba/schemas/val-inplace3.xq (+22/-0)
test/rbkt/Queries/zorba/schemas/val-inplace3.xsd (+13/-0)
test/rbkt/Queries/zorba/schemas/val-inplace4.xq (+40/-0)
test/rbkt/Queries/zorba/schemas/val-inplace4.xsd (+26/-0)
test/rbkt/Queries/zorba/schemas/val-xsiType-noSchemaImport.xq (+11/-0)
test/rbkt/Queries/zorba/schemas/validate_xqdoc_01.xq (+4/-0)
test/rbkt/Queries/zorba/schemas/validate_xqdoc_02.xq (+4/-0)
test/rbkt/Queries/zorba/scripting/flwor15.xq (+34/-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)
test/rbkt/Queries/zorba/spec/XQuery_3.0.html (+28771/-30944)
test/rbkt/Queries/zorba/spec/xquery_1_1.spec (+0/-5)
test/rbkt/Queries/zorba/spec/xquery_1_1.xq (+0/-69)
test/rbkt/Queries/zorba/spec/xquery_3_0.spec (+5/-0)
test/rbkt/Queries/zorba/spec/xquery_3_0.xq (+69/-0)
test/rbkt/Queries/zorba/spec/xquery_spec.xqi (+4/-13)
test/rbkt/Queries/zorba/store/documents.xq (+1/-0)
test/rbkt/Queries/zorba/store/example_3.xq (+4/-4)
test/rbkt/Queries/zorba/string/Regex/regex-FORX0002-1.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex-FORX0002-1.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex-FORX0002-2.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex-FORX0002-2.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_a1.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_a10.xq (+11/-0)
test/rbkt/Queries/zorba/string/Regex/regex_a11.xq (+9/-0)
test/rbkt/Queries/zorba/string/Regex/regex_a2.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_a3.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_a4.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_a5.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_a6.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_a7.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_a8.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_a9.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err1.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err1.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err10.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err10.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err11.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err11.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err12.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err12.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err13.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err13.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err14.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err14.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err15.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err15.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err16.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err16.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err17.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err17.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err18.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err18.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err19.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err19.xq (+3/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err2.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err2.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err20.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err20.xq (+3/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err21.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err21.xq (+3/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err22.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err22.xq (+3/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err23.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err23.xq (+3/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err24.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err24.xq (+3/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err25.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err25.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err3.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err3.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err4.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err4.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err5.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err5.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err7.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err7.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err8.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err8.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err9.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_err9.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m1.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m10.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m11.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m12.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m13.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m14.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m15.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m16.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m17.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m18.xq (+3/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m19.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m2.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m20.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m21.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m22.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m23.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m24.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m25.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m26.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m27.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m28.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m29.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m3.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m30.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m31.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m32.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m33.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m34.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m35.xq (+4/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m36.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m37.xq (+4/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m38.xq (+4/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m39.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m4.xq (+6/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m40.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m41.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m42.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m43.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m44.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m45.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m46.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m47.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m48.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m49.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m5.xq (+6/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m50.xq (+2/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m51.xq (+2/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m52.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m53.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m6.xq (+6/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m7.xq (+6/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m8.xq (+7/-0)
test/rbkt/Queries/zorba/string/Regex/regex_m9.xq (+7/-0)
test/rbkt/Queries/zorba/string/Regex/regex_prime1.xq (+17/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r1.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r10.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r11.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r12.xq (+7/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r2.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r3.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r4.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r5.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r6.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r7_err.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r7_err.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r8_err.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r8_err.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_r9.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_t1.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_t2.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_t3_err.spec (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_t3_err.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_t4.xq (+2/-0)
test/rbkt/Queries/zorba/string/Regex/regex_t5.xq (+1/-0)
test/rbkt/Queries/zorba/string/Regex/zorba.html (+242/-0)
test/rbkt/Queries/zorba/string/Regex/zorba2.html (+5/-0)
test/rbkt/Queries/zorba/string/StringToCodepointFunc/StringToCodepointFunc4.xq (+10/-0)
test/rbkt/Queries/zorba/string/token01.txt (+1/-0)
test/rbkt/Queries/zorba/string/token02.txt (+1/-0)
test/rbkt/Queries/zorba/string/token03.txt (+1/-0)
test/rbkt/Queries/zorba/string/token04.txt (+1/-0)
test/rbkt/Queries/zorba/string/tokenize01.xq (+5/-0)
test/rbkt/Queries/zorba/string/tokenize02.xq (+5/-0)
test/rbkt/Queries/zorba/string/tokenize03.xq (+5/-0)
test/rbkt/Queries/zorba/string/tokenize04.xq (+5/-0)
test/rbkt/Queries/zorba/testdriver/bom_bug.xq (+1/-0)
test/rbkt/Queries/zorba/trycatch/trycatch12.xq (+1/-0)
test/rbkt/Queries/zorba/trycatch/trycatch13.xq (+1/-0)
test/rbkt/Queries/zorba/udf/udf-fib-rec.spec (+1/-0)
test/rbkt/Queries/zorba/udf/udf-fib-rec.xq (+8/-0)
test/rbkt/Queries/zorba/updates/no_hoist.xq (+8/-0)
test/rbkt/Queries/zorba/updates/recursive.xq (+11/-0)
test/rbkt/Queries/zorba/updates/subst.xsd (+23/-0)
test/rbkt/Queries/zorba/updates/undo10.xq (+34/-0)
test/rbkt/Queries/zorba/updates/undo11.xq (+54/-0)
test/rbkt/Queries/zorba/updates/undo8.xq (+54/-0)
test/rbkt/Queries/zorba/updates/undo9.xq (+54/-0)
test/rbkt/Queries/zorba/updates/utils.xqlib (+30/-0)
test/rbkt/Queries/zorba/uris/decode_01.xq (+3/-0)
test/rbkt/Queries/zorba/uris/decode_02.spec (+1/-0)
test/rbkt/Queries/zorba/uris/decode_02.xq (+3/-0)
test/rbkt/Queries/zorba/uris/decode_03.xq (+4/-0)
test/rbkt/Queries/zorba/uris/decode_04.xq (+3/-0)
test/rbkt/Queries/zorba/versioning/import-chain1.xq (+1/-1)
test/rbkt/Queries/zorba/versioning/import-chain2.xq (+1/-1)
test/rbkt/Queries/zorba/versioning/import1.xq (+1/-1)
test/rbkt/Queries/zorba/versioning/import2.xq (+1/-1)
test/rbkt/Queries/zorba/versioning/import3.xq (+1/-1)
test/rbkt/Queries/zorba/versioning/import4.xq (+1/-1)
test/rbkt/Queries/zorba/versioning/import5.xq (+1/-1)
test/rbkt/Queries/zorba/versioning/import6.xq (+1/-1)
test/rbkt/Queries/zorba/versioning/import7.xq (+1/-1)
test/rbkt/Queries/zorba/windowing/q19.xq (+2/-2)
test/rbkt/Queries/zorba/windowing/sliding01.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/sliding02.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/sliding03.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/sliding04.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/sliding05.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/sliding06.xq (+6/-0)
test/rbkt/Queries/zorba/windowing/sliding07.xq (+10/-0)
test/rbkt/Queries/zorba/windowing/sliding08.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/sliding08.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/sliding09.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/sliding10.xq (+18/-0)
test/rbkt/Queries/zorba/windowing/sliding11.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/sliding12.xq (+7/-0)
test/rbkt/Queries/zorba/windowing/sliding13.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/sliding14.xq (+12/-0)
test/rbkt/Queries/zorba/windowing/tumbling01.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling02.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/tumbling04.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling05.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/tumbling06.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling07.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling08.xq (+6/-0)
test/rbkt/Queries/zorba/windowing/tumbling09.xq (+6/-0)
test/rbkt/Queries/zorba/windowing/tumbling10.xq (+10/-0)
test/rbkt/Queries/zorba/windowing/tumbling11.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling11.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling14.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling14.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling15.spec (+2/-0)
test/rbkt/Queries/zorba/windowing/tumbling15.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling16.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling16.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling17.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling17.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling18.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling18.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling19.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling19.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling20.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling20.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling21.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling21.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling22.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling22.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling24.xq (+6/-0)
test/rbkt/Queries/zorba/windowing/tumbling25.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/tumbling26.xq (+3/-0)
test/rbkt/Queries/zorba/windowing/tumbling27.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling28.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling29.xq (+17/-0)
test/rbkt/Queries/zorba/windowing/tumbling31.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling31.xq (+3/-0)
test/rbkt/Queries/zorba/windowing/tumbling32.xq (+19/-0)
test/rbkt/Queries/zorba/windowing/tumbling33.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/tumbling34.xq (+6/-0)
test/rbkt/Queries/zorba/windowing/tumbling35.xq (+8/-0)
test/rbkt/Queries/zorba/windowing/tumbling36.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/tumbling37.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling37.xq (+8/-0)
test/rbkt/Queries/zorba/windowing/tumbling38.xq (+8/-0)
test/rbkt/Queries/zorba/windowing/tumbling39.xq (+12/-0)
test/rbkt/Queries/zorba/windowing/tumbling40.xq (+27/-0)
test/rbkt/Queries/zorba/windowing/tumbling41.xq (+9/-0)
test/rbkt/Queries/zorba/windowing/tumbling42.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling42.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling43.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling43.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling44.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling44.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling45.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling46.xq (+17/-0)
test/rbkt/Queries/zorba/windowing/tumbling47.xq (+20/-0)
test/rbkt/Queries/zorba/windowing/tumbling48.xq (+18/-0)
test/rbkt/Queries/zorba/windowing/tumbling49.xq (+12/-0)
test/rbkt/Queries/zorba/windowing/windowing12.xq (+9/-0)
test/rbkt/Queries/zorba/windowing/windowing13.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/windowing13.xq (+4/-0)
test/rbkt/Queries/zorba/xdm-schema/1-to-5.xq (+11/-0)
test/rbkt/Queries/zorba/xdm-schema/empty-sequence.xq (+5/-0)
test/rbkt/Queries/zorba/xdm-schema/nodes.xq (+11/-0)
test/rbkt/Queries/zorba/xmark/q10.xq (+8/-4)
test/rbkt/Queries/zorba/xqddf/daniel/i1.xq (+1/-1)
test/rbkt/Queries/zorba/xqddf/daniel/i2.xq (+1/-1)
test/rbkt/Queries/zorba/xqddf/daniel/i3.xq (+1/-1)
test/rbkt/Queries/zorba/xqddf/daniel/i4.xq (+1/-1)
test/rbkt/Queries/zorba/xqddf/daniel/i5.xq (+2/-2)
test/rbkt/Queries/zorba/xqddf/daniel/i6.xq (+4/-4)
test/rbkt/Queries/zorba/xqddf/daniel/ric6.xq (+8/-4)
test/rbkt/Queries/zorba/xqddf/daniel/undo1.xq (+7/-3)
test/rbkt/Queries/zorba/xqddf/ic-foreignKey.xq (+10/-2)
test/rbkt/Queries/zorba/xqddf/test-node-reference.xq (+2/-0)
test/rbkt/Queries/zorba/xqdoc/moduleDocumentation.spec (+1/-3)
test/rbkt/Queries/zorba/xqdoc/moduleDocumentation.xq (+71/-65)
test/rbkt/Scripts/w3c/Readme.txt (+17/-7)
test/rbkt/Scripts/w3c/Submit_xqts.cmake (+23/-9)
test/rbkt/Scripts/w3c/generate-submission-xqftts.xq (+4/-4)
test/rbkt/Scripts/w3c/generate-submission-xqts.xq (+4/-9)
test/rbkt/Scripts/w3c/import_w3c_full_text_testsuite.sh (+2/-2)
test/rbkt/Scripts/w3c/import_w3c_testsuite.sh (+1/-1)
test/rbkt/itertest.xq.in (+58/-44)
test/rbkt/modules/CMakeLists.txt (+9/-3)
test/rbkt/modules/bad-ver.xq (+1/-1)
test/rbkt/modules/java/CMakeLists.txt (+40/-0)
test/rbkt/modules/java/Test.java (+7/-0)
test/rbkt/modules/module-A.xq (+1/-1)
test/rbkt/modules/module-B.xq (+1/-1)
test/rbkt/modules/random-file.txt (+1/-0)
test/rbkt/modules/ver.xq (+1/-1)
test/rbkt/modules/ver2.xq (+1/-1)
test/rbkt/specification.h (+1/-1)
test/rbkt/testdriver.cpp (+7/-2)
test/rbkt/testdriver_common.cpp (+17/-4)
test/rbkt/testdriver_mt.cpp (+32/-5)
test/unit/CMakeLists.txt (+40/-10)
test/unit/context_item.cpp (+193/-0)
test/unit/context_item1.xq (+4/-0)
test/unit/context_item2.xq (+6/-0)
test/unit/cxx_api_ch1.xq (+26/-0)
test/unit/cxx_api_ch2.xq (+17/-0)
test/unit/cxx_api_ch3.xq (+20/-0)
test/unit/cxx_api_ch4.xq (+19/-0)
test/unit/cxx_api_changes.cpp (+345/-0)
test/unit/datetime.cpp (+2/-0)
test/unit/ext_main2.xq (+21/-0)
test/unit/ext_main3.xq (+21/-0)
test/unit/ext_mod.xq (+4/-0)
test/unit/ext_mod2.xq (+19/-0)
test/unit/external_function.cpp (+169/-15)
test/unit/guestbook.xq (+9/-0)
test/unit/guestbook_main.xq (+1/-1)
test/unit/main_invoke.xq (+9/-0)
test/unit/mini_audit.xq (+13/-0)
test/unit/mini_http.xq (+40/-0)
test/unit/module1.xq (+1/-1)
test/unit/module2.xq (+17/-0)
test/unit/module4.xq (+6/-0)
test/unit/module5.xq (+20/-0)
test/unit/module6.xq (+38/-0)
test/unit/plan_serializer.cpp (+61/-14)
test/unit/schema1.xsd (+21/-0)
test/unit/static_context.cpp (+100/-0)
test/unit/staticcollectionmanager.cpp (+293/-19)
test/unit/testGetExtVarA.xq (+13/-0)
test/unit/testGetExtVarB.xq (+6/-0)
test/update/CMakeLists.txt (+10/-1)
test/update/Queries/zorba/store/sc3_ex3.xq (+1/-1)
test/update/Scripts/Readme.txt (+8/-5)
test/update/Scripts/XQUTS.xml (+1/-1)
test/update/Scripts/generate-submission-xquts.xq (+11/-4)
test/update/Scripts/import_w3c_update_testsuite.sh (+1/-1)
test/update/Scripts/zorba-xquts-submission.xml (+858/-0)
test/update/Scripts/zorba-xqutsx-submission.xml (+858/-0)
test/zperf/src/start.xq (+154/-100)
To merge this branch: bzr merge lp:~zorba-coders/zorba/bug-857263-build-doc
Reviewer Review Type Date Requested Status
Zorba Coders 2012-05-02 Pending
Review via email: mp+104362@code.launchpad.net

Commit message

foo

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeCompiler.txt'
2--- CMakeCompiler.txt 2011-01-19 12:48:17 +0000
3+++ CMakeCompiler.txt 2012-05-02 10:44:31 +0000
4@@ -108,6 +108,9 @@
5 IF(NOT CMAKE_CXX_FLAGS MATCHES "-Wextra")
6 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra")
7 ENDIF(NOT CMAKE_CXX_FLAGS MATCHES "-Wextra")
8+ IF(NOT CMAKE_CXX_FLAGS MATCHES "-D_FILE_OFFSET_BITS")
9+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FILE_OFFSET_BITS=64")
10+ ENDIF(NOT CMAKE_CXX_FLAGS MATCHES "-D_FILE_OFFSET_BITS")
11 IF (UNIX AND NOT APPLE)
12 IF (NOT CMAKE_SHARED_LINKER_FLAGS MATCHES "as-needed")
13 SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--as-needed")
14
15=== modified file 'CMakeConfiguration.txt'
16--- CMakeConfiguration.txt 2011-09-16 19:55:59 +0000
17+++ CMakeConfiguration.txt 2012-05-02 10:44:31 +0000
18@@ -70,10 +70,6 @@
19 SET(ZORBA_FOR_ONE_THREAD_ONLY OFF CACHE BOOL "compile zorba for single threaded use")
20 MESSAGE(STATUS "ZORBA_FOR_ONE_THREAD_ONLY: " ${ZORBA_FOR_ONE_THREAD_ONLY})
21
22-# by default the zorba command line client is deactivated until it gets to a more stable and userfriendly state
23-SET(ZORBA_WITH_DEBUGGER_CLIENT OFF CACHE BOOL "build and install zorbas command line debugger client")
24-MESSAGE(STATUS "ZORBA_WITH_DEBUGGER_CLIENT: " ${ZORBA_WITH_DEBUGGER_CLIENT})
25-
26 IF (DEFINED UNIX)
27 IF (NOT DEFINED ZORBA_HAVE_PTHREAD_H AND NOT DEFINED ZORBA_FOR_ONE_THREAD_ONLY)
28 MESSAGE(FATAL_ERROR "pthread is not available")
29@@ -139,14 +135,14 @@
30 SET (ZORBA_DEBUG_STRING ${ZORBA_DEBUG_STRING} CACHE BOOL "debug strings")
31 MESSAGE (STATUS "ZORBA_DEBUG_STRING: " ${ZORBA_DEBUG_STRING})
32
33-SET(ZORBA_NO_UNICODE OFF CACHE BOOL "disable ICU")
34-MESSAGE(STATUS "ZORBA_NO_UNICODE: " ${ZORBA_NO_UNICODE})
35+SET(ZORBA_NO_ICU OFF CACHE BOOL "disable ICU")
36+MESSAGE(STATUS "ZORBA_NO_ICU: " ${ZORBA_NO_ICU})
37
38-IF (ZORBA_NO_UNICODE)
39+IF (ZORBA_NO_ICU)
40 SET (no_full_text ON)
41-ELSE (ZORBA_NO_UNICODE)
42+ELSE (ZORBA_NO_ICU)
43 SET (no_full_text OFF)
44-ENDIF (ZORBA_NO_UNICODE)
45+ENDIF (ZORBA_NO_ICU)
46 SET (ZORBA_NO_FULL_TEXT ${no_full_text} CACHE BOOL "disable XQuery Full-Text support")
47 MESSAGE(STATUS "ZORBA_NO_FULL_TEXT: " ${ZORBA_NO_FULL_TEXT})
48
49
50=== modified file 'CMakeLists.txt'
51--- CMakeLists.txt 2011-09-08 15:09:20 +0000
52+++ CMakeLists.txt 2012-05-02 10:44:31 +0000
53@@ -123,25 +123,28 @@
54 CHECK_TYPE_SIZE("int64_t" ZORBA_HAVE_INT64_T)
55
56 CHECK_CXX_SOURCE_COMPILES ("#include <type_traits>\nint main() { std::enable_if<true,int> x; }" ZORBA_CXX_ENABLE_IF)
57-CHECK_CXX_SOURCE_COMPILES ("int main() { int *p = nullptr; }" ZORBA_CXX_NULLPTR)
58-CHECK_CXX_SOURCE_COMPILES ("int main() { static_assert(1,\"\"); }" ZORBA_CXX_STATIC_ASSERT)
59+SET(CMAKE_EXTRA_INCLUDE_FILES wchar.h)
60+CHECK_TYPE_SIZE("wchar_t" ZORBA_SIZEOF_WCHAR_T)
61+SET(CMAKE_EXTRA_INCLUDE_FILES)
62 CHECK_CXX_SOURCE_COMPILES ("#include <memory>\nint main() { std::unique_ptr<int> p; }" ZORBA_CXX_UNIQUE_PTR)
63
64+CHECK_CXX_SOURCE_COMPILES("int main() { int *p = nullptr; }" ZORBA_CXX_NULLPTR)
65+CHECK_CXX_SOURCE_COMPILES("int main() { static_assert(1,\"\"); }" ZORBA_CXX_STATIC_ASSERT)
66+
67 ################################################################################
68 # Various cmake macros
69
70-IF(WIN32)
71+SET (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules ${CMAKE_MODULE_PATH})
72+IF (WIN32)
73 # On Windows we use proxy modules that try to guess first the location
74 # of the required third party libraries. This will search in order in:
75 # 1. the path pointed by ZORBA_THIRD_PARTY_REQUIREMENTS
76 # 2. the Program Files directory available on the users computer
77 # 3. the PATH environment variable
78 # The logic is implemented by the macros in the ProxyFindModule.cmake module.
79- LIST (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake_modules/Windows")
80- INCLUDE(ProxyFindModule)
81-ENDIF(WIN32)
82-LIST (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake_modules")
83-
84+ SET (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules/Windows ${CMAKE_MODULE_PATH})
85+ INCLUDE (ProxyFindModule)
86+ENDIF (WIN32)
87
88 ################################################################################
89 # This section is used for batch script generation. Each executable
90@@ -238,11 +241,21 @@
91 MESSAGE(STATUS "Looking for LibXml2")
92 FIND_PACKAGE(LibXml2)
93 IF(LIBXML2_FOUND)
94- MESSAGE(STATUS "Found LIBXML2 library -- " ${LIBXML2_LIBRARIES})
95-
96- INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
97- SET(requiredlibs-store ${requiredlibs-store} ${LIBXML2_LIBRARIES})
98- SET(CXXFLAGS ${CXXFLAGS} ${LIBXML2_DEFINITONS})
99+ # Now check LibXml2's version
100+ FILE(STRINGS ${LIBXML2_INCLUDE_DIR}/libxml/xmlversion.h LIBXML2_VERSION_TMP REGEX
101+ "^#define[ \t]+LIBXML_DOTTED_VERSION[ \t]+\".*\"")
102+ STRING(REGEX REPLACE "^#define[ \t]+LIBXML_DOTTED_VERSION[ \t]+\"(.*)\"" "\\1"
103+ LIBXML2_VERSION ${LIBXML2_VERSION_TMP})
104+
105+ IF(LIBXML2_VERSION VERSION_EQUAL "2.7.0" OR LIBXML2_VERSION VERSION_GREATER "2.7.0")
106+ MESSAGE(STATUS "Found LIBXML2 library -- " ${LIBXML2_LIBRARIES})
107+ INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
108+ SET(requiredlibs-store ${requiredlibs-store} ${LIBXML2_LIBRARIES})
109+ SET(CXXFLAGS ${CXXFLAGS} ${LIBXML2_DEFINITONS})
110+ ELSE(LIBXML2_VERSION VERSION_EQUAL "2.7.0" OR LIBXML2_VERSION VERSION_GREATER "2.7.0")
111+ MESSAGE(FATAL_ERROR "The libxml2 library version 2.7.0 or higher is required in order to build Zorba.")
112+ ENDIF(LIBXML2_VERSION VERSION_EQUAL "2.7.0" OR LIBXML2_VERSION VERSION_GREATER "2.7.0")
113+
114 ELSE(LIBXML2_FOUND)
115 MESSAGE(FATAL_ERROR "The libxml2 library and headers are required in order to build simple store.")
116 ENDIF(LIBXML2_FOUND)
117@@ -296,6 +309,13 @@
118 MESSAGE (STATUS "")
119
120 #
121+# shlwapi
122+#
123+IF(WIN32)
124+ SET(requiredlibs ${requiredlibs} "shlwapi")
125+ENDIF(WIN32)
126+
127+#
128 # SWIG
129 #
130 IF (NOT ZORBA_SUPPRESS_SWIG)
131@@ -418,13 +438,35 @@
132
133 # zorba versioning
134 SET(ZORBA_MAJOR_NUMBER "2")
135-SET(ZORBA_MINOR_NUMBER "0")
136-SET(ZORBA_PATCH_NUMBER "1")
137+SET(ZORBA_MINOR_NUMBER "2")
138+SET(ZORBA_PATCH_NUMBER "0")
139 SET(ZORBA_VERSION ${ZORBA_MAJOR_NUMBER}.${ZORBA_MINOR_NUMBER}.${ZORBA_PATCH_NUMBER})
140 MESSAGE(STATUS "Zorba version number: ${ZORBA_VERSION}")
141-SET(ZORBA_MODULES_INSTALL_DIR "share/zorba-${ZORBA_VERSION}/modules"
142- CACHE STRING "Path (relative to installdir) to modules" FORCE)
143-MARK_AS_ADVANCED(ZORBA_MODULES_INSTALL_DIR)
144+
145+SET(ZORBA_LIB_DIRNAME "lib" CACHE STRING
146+ "directory name for libs (may want to set to 'lib64' on 64-bit Linux platforms)")
147+
148+# Directories for modules and schemas. "Core" are those which are
149+# shipped with Zorba and must be present for correct Zorba
150+# functionality. "Non-core" are developed independently of Zorba and
151+# have different version lifecycles.
152+#
153+# URI dir is for things resolved by URI - specifically modules (.xq
154+# files) and schemas (.xsd files) - which are platform-
155+# independent. Lib dir is for platform-specific files, specifically
156+# shared libraries for module external functions.
157+SET(ZORBA_NONCORE_URI_DIR "share/zorba/uris"
158+ CACHE STRING "Path (relative to installdir) to non-core modules/schemas")
159+MARK_AS_ADVANCED(ZORBA_NONCORE_URI_DIR)
160+SET(ZORBA_CORE_URI_DIR "${ZORBA_NONCORE_URI_DIR}/core/${ZORBA_VERSION}"
161+ CACHE STRING "Path (relative to installdir) to core modules/schemas")
162+MARK_AS_ADVANCED(ZORBA_CORE_URI_DIR)
163+SET(ZORBA_NONCORE_LIB_DIR "${ZORBA_LIB_DIRNAME}/zorba"
164+ CACHE STRING "Path (relative to installdir) to non-core libraries")
165+MARK_AS_ADVANCED(ZORBA_NONCORE_LIB_DIR)
166+SET(ZORBA_CORE_LIB_DIR "${ZORBA_NONCORE_LIB_DIR}/core/${ZORBA_VERSION}"
167+ CACHE STRING "Path (relative to installdir) to core libraries")
168+MARK_AS_ADVANCED(ZORBA_CORE_LIB_DIR)
169
170 # add compiler variables
171 ADD_DEFINITIONS(${DEFINITIONS})
172@@ -461,7 +503,7 @@
173 SET(ZORBA_CMAKE_DIR "cmake" CACHE STRING
174 "Relative path to CMake files in Zorba installation")
175 ELSE (WIN32)
176- SET(ZORBA_CMAKE_DIR "share/zorba-${ZORBA_VERSION}/cmake" CACHE STRING
177+ SET(ZORBA_CMAKE_DIR "share/cmake/zorba-${ZORBA_VERSION}" CACHE STRING
178 "Relative path to CMake files in Zorba installation")
179 ENDIF (WIN32)
180
181@@ -477,14 +519,15 @@
182 # Subdirectory ordering: We need to include "test" before "config" so
183 # ZorbaConfig knows about testdriver. We need to include "config"
184 # before "modules" so external modules will be able to find
185-# ZorbaConfig.cmake.
186+# ZorbaConfig.cmake. We need to include "modules" before "include" so
187+# config.h can know eg. whether we found CURL.
188
189 ADD_SUBDIRECTORY(test)
190 ADD_SUBDIRECTORY(config)
191-ADD_SUBDIRECTORY(include)
192 ADD_SUBDIRECTORY(doc)
193 ADD_SUBDIRECTORY(schemas)
194 ADD_SUBDIRECTORY(modules)
195+ADD_SUBDIRECTORY(include)
196
197 ADD_DEFINITIONS(-Dzorba_EXPORTS)
198 ADD_SUBDIRECTORY(src)
199@@ -535,4 +578,4 @@
200 # This dependency is zorba-only related, which is why it's added here
201 # and not within zorba-modules, which is for general use in other
202 # non-zorba modules.
203-ADD_DEPENDENCIES(check_uris gen_diag_modules)
204+ADD_DEPENDENCIES(check_core_uris gen_diag_modules)
205
206=== modified file 'CPackSourceConfig.cmake.in'
207--- CPackSourceConfig.cmake.in 2009-10-30 16:24:51 +0000
208+++ CPackSourceConfig.cmake.in 2012-05-02 10:44:31 +0000
209@@ -19,7 +19,7 @@
210
211 SET(CPACK_CMAKE_GENERATOR "Unix Makefiles")
212 SET(CPACK_GENERATOR "TGZ;TZ")
213-SET(CPACK_IGNORE_FILES "test/coverity/;dist/;_CPack_Packages/;build/;build./;CVS/;/\\.svn/;\\.swp$;\\.#;/#")
214+SET(CPACK_IGNORE_FILES "test/coverity/;dist/;_CPack_Packages/;build/;build./;CVS/;/\\.svn/;\\.swp$;\\.#;/#;\\.bzr/")
215 SET(CPACK_INSTALLED_DIRECTORIES "@CMAKE_SOURCE_DIR@;/")
216 SET(CPACK_INSTALL_CMAKE_PROJECTS "")
217 SET(CPACK_MODULE_PATH "")
218
219=== modified file 'ChangeLog'
220--- ChangeLog 2011-10-05 22:39:18 +0000
221+++ ChangeLog 2012-05-02 10:44:31 +0000
222@@ -1,13 +1,156 @@
223 Zorba - The XQuery Processor
224
225-version 2.x
226-
227- * Custom Full-text thesaurus.
228- * Fixed bug #3401971 (node-by-reference on dynamic collections)
229+version 2.5
230+
231+New Features:
232+ * fn:available-environment-variables
233+ * fn:environment-variables
234+ * fn:uri-collection
235+ * fn:unparsed-text
236+ * fn:unparsed-text-available
237+ * Extended API for Python, Java, PHP and Ruby.
238+ * Add jvm classpath to zorbacmd and to Zorba API. Tracked by #931816
239+ * Added full-text module.
240+ * Added support for NO_ICU (to not use ICU for unicode processing)
241+ * Added XQJ support.
242+ * Added CollectionManager and DocumentManager support for XQJ.
243+
244+Optimization:
245+
246+Bug Fixes/Other Changes:
247+ * Fixed bugs #931501 and #866987 (improved error messages for fn:format-number(). Additionally, the function now throws the FODF1310 error instead of XTDE1310, as the 3.0 spec requires)
248+ * Fixed bug 955170 (Catch clause with URILiteral-based wilcard NameTest)
249+ * Fixed bug 955135 (err:XQDY0044 not caught by try-catch expressions)
250+ * Fixed bug #986075 (encountering flwor expr with no clauses; due to common
251+ subexression being formed when inlining var in if-then-else expression)
252+ * Fixed bug #967864 (var substitution did not update theFreeVars property)
253+ * Fixed bug #891650 (context size var not always declared within path expr)
254+ * Fixed bug #948879 (--uri-path doesn't work with fetch:content())
255+ * Fixed bug in window iterator (binding the end vars in the output tuple stream)
256+ * Fixed bug #866547 (protect index-join rule from general flwor)
257+ * Fixed bug #867253 (cdml:delete-nodes should only remove root nodes)
258+ * Fixed bug #967428 (do not hoist index creation outside a try-catch)
259+ * Fixed performance problem with the findNodeSources function of the no-copy rule
260+ * Fixed bug #872234 (prevent a rewritting to take place in case of sequential expr)
261+ * Fixed bug #906494 (default compile with D_FILE_OFFSET_BITS=64)
262+ * Fixed bug #988412 (date:current-dateTime daylight saving)
263+ * Fixed bug #912586, #912593 and #912722 (assertion failures with lax validation)
264+ * Fixed bug #921458 (file:read-text-lines() blocking)
265+ * Fixed bug #981405 (do not hoist expr containing try-catch variables out of the
266+ associated try-catch expression)
267+ * Fixed bug #947627 (throw XQST0099 if more than one declarations of context item
268+ type in same module)
269+ * Fixed bug #980526 (no-copy rule bug due to global var being set in "distant" udf)
270+ * Fixed bug #949910 (has-children may be invoked on all nodes). Internally, zorba::store::Item::getChildren() now returns NULL on node classes without offspring (instead of raising an error).
271+ * Fixed Bug #933490: Error ItemFactoryImpl::createBase64Binary with istream
272+ * Fixed bug #867112 (Diagnostic Handler was not working on external APIs)
273+ * Fixed bug #857842 (Assertion failed with simple content element with comments)
274+
275+
276+version 2.2
277+
278+New Features:
279+ * Add --compile-plan (-c) and --execute-plan (-e) options to zorba command line.
280+ * Add XQuery 3.0 concat operator (http://www.w3.org/TR/xquery-30/#id-string-concat-expr)
281+ * New URI module providing percent-decoding functions.
282+ * The core parse-xml module is now able to parse input files in a streaming mode. A number of new options have also been added.
283+ * LibXml2 version 2.7.0 or higher is now required in order to build Zorba.
284+ * Added index management function to the C++ api's StaticCollectionManager.
285+ * Added createDayTimeDuration, createYearMonthDuration, createDocumentNode, createCommentNode, createPiNode to api's ItemFactory.
286+ * Fixed bug #905050 (setting and getting the context item type via the c++ api).
287+ * Added split function to the string module that allows for streamable tokenization but doesn't have regular expression
288+ * Add new XQuery interface for the PHP bindings.
289+ * Added two API methods StaticContext::getFunctions to introspect the functions of a static context
290+ * Added API method Item::getNamespaceBindings().
291+ * Added a transcoding streambuffer to the API which allows transcoding arbitrary encodings
292+ from and to UTF-8
293+ * file:read-text is able to handle arbitrary encodings (fixes bug #867159)
294+ * http:send-request is able to handle arbitrary encodings
295+ * Added API method StaticContext::getNamespaceBindings() (see bug #905035)
296+ * New version of the JSON converter module in the core of Zorba (no external dependencies anymore)
297+ * Added truncate function to the collection modules for efficient deletion of all nodes in a collection.
298+
299+
300+Optimization:
301+ * No-copy optimization: avoids copying nodes during node-constructor expressions.
302+ * Added external function annotations %ann:propagates-input-nodes and
303+ %ann:must-copy-input-nodes to be used by the no-copy optimization.
304+ * Caching of results for recursive functions with atomic parameter and return types.
305+ * Added %ann:cache and %ann:no-cache to enable or disable caching of results of functions with atomic parameter and return types.
306+ * Types-related optimizations for runtime operators (comparisons, FnBoolean, Or, And,
307+ Compare, instance-of, cast, castable, treat, promote).
308+ * More efficient implementation for base64Binary items
309+ * Preallocate and reuse temp sequence iterator for LetVarITerator
310+ and CtxVarIterator.
311+ * Enhanced push-down of positional predicate into LetVarITerator
312+ and CtxVarIterator.
313+ * Change the implementation of the free-vars annotation and got rid
314+ of the annotations map in expressions.
315+
316+Bug Fixes/Other Changes:
317+ * Fixed bug 923015 (clone() not implemented for full-text expressions)
318+ * Fixed bug 917923 (bug in copying outer var values into the eval dynamic context)
319+ * Fixed bug 867509 (Can not handle largest xs:unsignedLong values)
320+ * Fixed bug 924063 (sentence is incorrectly incremented when token characters end without sentence terminator)
321+ * Fixed bug 909126 (bug in cloning of var_expr)
322+ * Fixed bug 928631 (external builtin function were not executed in the module they
323+ were declared)
324+ * Fixed bug in destruction of exit_catcher_expr
325+ * Fixed bug #867024 (error messages)
326+ * Fixed bug #957580 (stream read failure in StringToCodepointsIteartor)
327+ * Fixed bug #911585 (management of variables during eval)
328+ * Fixed bug #866423 (fn:empty and fn:exists iterators must reset their input in
329+ case of early-out)
330+ * Fixed bug #955574 (http-client "hangs" if following a POST request)
331+ * Fixed bug #945241 (StaticCollectionManager::declaredIndexes() and temporary indexes)
332+ * Fixed bug #872288 (reset recursive flag during node rename)
333+ * Fixed bug #905041 (allow for the default element and function namespaces to be
334+ set multiple times via the c++ api).
335+ * Fixed bug #907872 (segfault when returning an input ItemSequence from an external function).
336+ * Fixed bug in codegen: do not create a materialize clause if one exists already
337+ support.
338+ * Fixed bug involving positional var and groupby
339+ * Fixed bug #867266 (do not hoist updating expressions)
340+ * Fixed bug #867022 (added location and params to some XPTY0004 errors)
341+ * zerr is not predeclared anymore to be http://www.zorba-xquery.com/errors
342+ * Fixed bug #917981 (disallow declaring same module twice).
343+ * Deprecated StaticContext:getNamespaceURIByPrefix()
344+ * Fixed bug #943788 (streamable string is not seekable)
345+ * Fixed bug #921624 (slow queries with bogus example.com schema URIs)
346+ * Fixed bug #918211 (xqueryx fulltext w3c conformance generation)
347+ * Fixed bug #918157 (Add XQFTTS to validation queue)
348+ * Fixed bug with unversioned modules with C++ external functions
349+ * Fixed bug #912579 (validate-in-place on non-root elements)
350+ * Fixed bug #891209 (validation with xsi:type returns untyped)
351+ * Fixed bug #952829 (Nondeterministic annotation doesn't seem to be checked)
352+ * Fixed bug #951772 (Comment node crashes serialization)
353+ * Fixed bug #945241 (StaticCollectionManager::declaredIndexes() and temporary indexes)
354+
355+version 2.1
356+
357+New Features:
358+ * New node-position module. This module allows to obtain a representation of a node position, which
359+ can be used to assess structural relationships with other nodes.
360+ * New node-reference module. References can be obtained for any node, and
361+ different nodes cannot have the same identifier.
362+ * Custom Full-text thesaurus using Zorba URI resolver mechanism.
363+ * Modified C++ API to add isSequential, getExternalVariables, isBoundContextItem and
364+ isBoundExternalVariable Functions
365+ * Collection allows to retrieve information about the type
366+ and the annotations of a static collection.
367+ * Implemented the probe-index-range-value for general indexes
368+ * Added ExternalFunctionParameter class to be registered in the DynamicContext
369+ * New module for compiling and executing XQueries from XQuery (xqxq)
370+ * External functions are allowed to be updating (i.e. return a pending update list)
371+
372+Optimization:
373 * Optimization for positioned sequence access (e.g. $x[$x[1]] where $x is a
374 sequence of integers)
375- * documentation improvements
376- * installer improvements
377+ * Optimization for count(collection()) expressions
378+ * Optimization of the fn:substring function in the case when its $start and $length arguments
379+ are integers
380+
381+Bug Fixes/Other Changes:
382 * Fixed bug #3403291 (build for Fedora 15)
383 * Fixed bug #3397293 (Incorrect XQueryX error message)
384 * Fixed bug #3398637 (Nested element constructors cause loss of namespace bindings)
385@@ -15,20 +158,19 @@
386 * Fixed bug #3404689 (assignment problem in flwor)
387 * Fix for bug #3404450 (testdriver_mt problem: caching and validation of docs)
388 * Fixed installation bug to not install the .so for test modules
389- * Fix for running ctest on Windows
390 * Fixed bug #3390410 (Adding a node to a collection causes out of bound in vector)
391 * Fixed bug #3406200 (node types were not being moved to new tree during node detach)
392 * Fixed bug #3406191 (Namespace bindings lost after update due to bug in node detach)
393 * Fixed bug #3290122 (ZDST0003 needs collection name)
394- * Collection allows to retrieve information about the type
395- and the annotations of a static collection.
396 * Fixed bug #3406272 (merging of adjacent text nodes must be done after all
397 updates have been applied).
398+ * Don't raise warnings for unknown annotations.
399 * Fixed bug #3409344 (during detach, if the node being detached is the root of
400 its tree, it should be detached from the tree as well; otherwise memory
401 corruption will occur)
402- * Fixed bug # (Should not destroy the parent of a node that is being detached
403- before the detach is done).
404+ * Fixed bug # (Should not destroy the parent of a node that is being detached
405+ before the detach is done).
406+ * Added const qualifier to StaticContext::getAuditEvent()
407 * Fixed bug #3408181 (available-collection() returns undeclared collections)
408 * Fixed bug #859465 (Fatal error if a PUL contains two deactivate IC primitives)
409 * Fixed bug #859467 (Fatal error if a PUL contains two activate Foreign Key primitives)
410@@ -36,11 +178,59 @@
411 * Fixed bug #859522 (Fatal error if a PUL contains two delete document primitives)
412 * Fixed bug #859968 (Using put on an attribute produces an invalid XDM instance and may cause segmentation faults)
413 * Fixed bug #855314 (should not fold a constant expr that returns an error item)
414- * Added ExternalFunctionParameter class to be registered in the DynamicContext
415+ * Fixed bug when parsing a document with a base-uri attribute.
416 * Fixed bug #863320 (Sentence is incorrectly incremented when token characters end without sentence terminator)
417 * Fixed bug #863730 (static delete-node* functions don't raise ZDDY0012)
418 * Implemented the probe-index-range-value for general indexes
419- * Fixed bug #867662 ("nullptr" warning)
420+ * Removed ZSTR0005 and ZSTR0006 error codes
421+ * Fixed bug #867662 ("nullptr" warning)
422+ * Fixed bug #868258 (Assertion failure with two delete collection)
423+ * Fixed bug #871623 and #871629 (assertion failures with insertions in dynamic collections)
424+ * Fixed bug #867262 (allow reuse of iterator over ExtFuncArgItemSequence)
425+ * Fixed bug #869024 (segmentation fault with node-reference)
426+ * Fixed bug #869025 (segmentation fault with node-reference)
427+ * New node-reference module. References can be obtained for any node, and
428+ different nodes cannot have the same identifier.
429+ * Fixed bug #872697 (segmentation fault with validation of NMTOKENS)
430+ * General index cannot be declared as unique if the type of its key is
431+ xs:anyAtomicType or xs:untypedAtomic.
432+ * Added undo for node revalidation
433+ * Optimization for count(collection()) expressions
434+ * Fixed bug #872796 (validate-in-place can interfere with other update primitives)
435+ * Fixed bug #872799 (validate-in-place can set incorrect types)
436+ * Fixed bug #855715 (Invalid escaped characters in regex not caught)
437+ * Fixed bug #868325 (fn:analyze-string fails with some recursive subgroups)
438+ * Fixed bug #872697 (segmentation fault with validation of NMTOKENS)
439+ * General index cannot be declared as unique if the type of its key is
440+ xs:anyAtomicType or xs:untypedAtomic.
441+ * Added undo for node revalidation
442+ * Optimization for count(collection()) expressions
443+ * Fixed bug #867133 (SWIG PHP build failure on Mac OSX)
444+ * Fixed bug #872796 (validate-in-place can interfere with other update primitives)
445+ * Fixed bug #872799 (validate-in-place can set incorrect types)
446+ * Fixed bug #872850 (Serialization of Tumbling Window For fails)
447+ * Fixed bug #855715 (Invalid escaped characters in regex not caught)
448+ * Fixed bug #862089 (Split binary/xq install directories for modules) by
449+ splitting "module path" into separate URI and Library paths
450+ * New node-position module. This module allows to obtain a representation of a node position, which
451+ can be used to assess structural relationships with other nodes.
452+ * Fixed bug #872502 (validation of the JSON module xqdoc fails)
453+ * Fixed bug #897619 (testdriver_mt can not run the XQueryX tests)
454+ * Fixed bug #867107 (xqdoc dependency to zorba is wrong)
455+ * Fixed bug #897616 (Fix the generation of the XQFTTS report results for
456+ W3C)
457+
458+version 2.0.3
459+ * Fixed bug #867662 ("nullptr" warning)
460+ * documentation improvements
461+
462+version 2.0.2
463+ * Fixed bug #3401971 (node-by-reference on dynamic collections)
464+ * documentation improvements
465+ * installer improvements
466+ * Fixed bug #3403291 (build for Fedora 15)
467+ * Don't install the .so for test modules
468+ * Fix for running ctest on Windows
469
470 version 2.0.1
471
472
473=== modified file 'KNOWN_ISSUES.txt'
474--- KNOWN_ISSUES.txt 2011-10-06 03:41:31 +0000
475+++ KNOWN_ISSUES.txt 2012-05-02 10:44:31 +0000
476@@ -37,7 +37,7 @@
477 * The serializer currently doesn't implement character maps as specified
478 (http://www.w3.org/TR/xslt-xquery-serialization/#character-maps)
479
480-* In the 2.0 release, setting the CMake variables ZORBA_NO_UNICODE to
481+* In the 2.0 release, setting the CMake variables ZORBA_NO_ICU to
482 ON is not supported.
483
484 * The PHP language binding is not supported on Mac OS X. For details,
485
486=== added file 'NOTICE.txt'
487--- NOTICE.txt 1970-01-01 00:00:00 +0000
488+++ NOTICE.txt 2012-05-02 10:44:31 +0000
489@@ -0,0 +1,740 @@
490+-----------
491+Zorba 2.2.0
492+-----------
493+
494+(Note: This file is generated automatically from NOTICE.xml.
495+Please do not modify this file directly.)
496+
497+
498+
499+
500+Apache 2
501+
502+ Copyright 2006-2011 The FLWOR Foundation
503+
504+ See LICENSE.txt for license information.
505+
506+ ------------------------
507+ This product includes software developed at
508+ The FLWOR Foundation (http://www.flworfound.org/).
509+
510+ ------------------------
511+ Portions of this software were developed at the Systems
512+ Group of the ETH Zurich, Switzerland.
513+
514+
515+Other files used by this project:
516+----------------------------------------------------
517+
518+src/zorbatypes/m_apm.h
519+src/zorbatypes/mapm/
520+
521+Copyright: 1999-2007 Michael C. Ring
522+Website: http://www.tc.umn.edu/~ringx004/mapm-main.html
523+
524+ This software is Freeware.
525+
526+ Permission to use, copy, and distribute this software and its
527+ documentation for any purpose with or without fee is hereby granted,
528+ provided that the above copyright notice appear in all copies and
529+ that both that copyright notice and this permission notice appear
530+ in supporting documentation.
531+
532+ Permission to modify the software is granted. Permission to distribute
533+ the modified code is granted. Modifications are to be distributed by
534+ using the file 'license.txt' as a template to modify the file header.
535+ 'license.txt' is available in the official MAPM distribution.
536+
537+ To distribute modified source code, insert the file 'license.txt'
538+ at the top of all modified source code files and edit accordingly.
539+
540+ This software is provided "as is" without express or implied warranty.
541+
542+----------------------------------------------------
543+
544+src/zorbamisc/config/stdint.h
545+
546+Copyright: 2006 Alexander Chemeris
547+
548+
549+ Redistribution and use in source and binary forms, with or without
550+ modification, are permitted provided that the following conditions are met:
551+
552+ 1. Redistributions of source code must retain the above copyright notice,
553+ this list of conditions and the following disclaimer.
554+
555+ 2. Redistributions in binary form must reproduce the above copyright
556+ notice, this list of conditions and the following disclaimer in the
557+ documentation and/or other materials provided with the distribution.
558+
559+ 3. The name of the author may be used to endorse or promote products
560+ derived from this software without specific prior written permission.
561+
562+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
563+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
564+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
565+ EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
566+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
567+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
568+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
569+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
570+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
571+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
572+
573+----------------------------------------------------
574+
575+src/zorbautils/stemmer/
576+
577+Copyright: 2001 Dr. Martin Porter
578+
579+
580+ All the software given out on this Snowball site is covered by the BSD
581+ License (see http://www.opensource.org/licenses/bsd-license.html), with
582+ Copyright (c) 2001, Dr Martin Porter, and (for the Java developments)
583+ Copyright (c) 2002, Richard Boulton.
584+
585+ Essentially, all this means is that you can do what you like with the code,
586+ except claim another Copyright for it, or claim that it is issued under a
587+ different license. The software is also issued without warranties, which
588+ means that if anyone suffers through its use, they cannot come back and sue
589+ you. You also have to alert anyone to whom you give the Snowball software to
590+ the fact that it is covered by the BSD license.
591+
592+ We have not bothered to insert the licensing arrangement into the text of
593+ the Snowball software.
594+
595+----------------------------------------------------
596+
597+src/util/less.h
598+
599+Copyright: 1998 Paul J. Lucas
600+
601+
602+ Redistribution and use in source and binary forms, with or without
603+ modification, are permitted provided that the following conditions are met:
604+
605+ o Redistributions of source code must retain the above copyright notice,
606+ this list of conditions and the following disclaimer.
607+
608+ o Redistributions in binary form must reproduce the above copyright
609+ notice, this list of conditions and the following disclaimer in the
610+ documentation and/or other materials provided with the distribution.
611+
612+ o The name of the author may not be used to endorse or promote products
613+ derived from this software without specific prior written permission.
614+
615+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
616+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
617+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
618+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
619+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
620+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
621+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
622+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
623+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
624+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
625+ POSSIBILITY OF SUCH DAMAGE.
626+
627+----------------------------------------------------
628+
629+src/util/auto_vector.h (has been modified)
630+
631+Copyright: 2003 Reliable Software
632+
633+
634+ Redistribution and use in source and binary forms, with or without
635+ modification, are permitted provided that the following conditions are met:
636+
637+ o Redistributions of source code must retain the above copyright notice,
638+ this list of conditions and the following disclaimer.
639+
640+ o Redistributions in binary form must reproduce the above copyright
641+ notice, this list of conditions and the following disclaimer in the
642+ documentation and/or other materials provided with the distribution.
643+
644+ o The name of the author may not be used to endorse or promote products
645+ derived from this software without specific prior written permission.
646+
647+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
648+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
649+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
650+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
651+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
652+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
653+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
654+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
655+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
656+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
657+ POSSIBILITY OF SUCH DAMAGE.
658+
659+----------------------------------------------------
660+
661+cmake_modules/FindBoost.cmake
662+
663+Copyright:
664+ 2006-2008 Andreas Schneider <mail@cynapses.org>
665+ 2007 Wengo
666+ 2007 Mike Jackson
667+ 2008 Andreas Pakulat <apaku@gmx.de>
668+
669+
670+
671+ Redistribution AND use is allowed according to the terms of the New BSD license.
672+ For details see the accompanying COPYING-CMAKE-SCRIPTS file.
673+
674+----------------------------------------------------
675+
676+cmake_modules/FindJNI.cmake
677+cmake_modules/FindPythonLibs.cmake
678+cmake_modules/FindSWIG.cmake
679+
680+Copyright: 2001-2009 Kitware, Inc.
681+
682+
683+ Distributed under the OSI-approved BSD License (the "License");
684+ see accompanying file Copyright.txt for details.
685+
686+ This software is distributed WITHOUT ANY WARRANTY; without even the
687+ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
688+ See the License for more information.
689+
690+ CMake - Cross Platform Makefile Generator
691+ Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
692+ All rights reserved.
693+
694+ Redistribution and use in source and binary forms, with or without
695+ modification, are permitted provided that the following conditions
696+ are met:
697+
698+ * Redistributions of source code must retain the above copyright
699+ notice, this list of conditions and the following disclaimer.
700+
701+ * Redistributions in binary form must reproduce the above copyright
702+ notice, this list of conditions and the following disclaimer in the
703+ documentation and/or other materials provided with the distribution.
704+
705+ * Neither the names of Kitware, Inc., the Insight Software Consortium,
706+ nor the names of their contributors may be used to endorse or promote
707+ products derived from this software without specific prior written
708+ permission.
709+
710+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
711+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
712+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
713+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
714+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
715+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
716+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
717+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
718+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
719+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
720+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
721+
722+ ------------------------------------------------------------------------------
723+
724+ The above copyright and license notice applies to distributions of
725+ CMake in source and binary form. Some source files contain additional
726+ notices of original copyright by their contributors; see each source
727+ for details. Third-party software packages supplied with CMake under
728+ compatible licenses provide their own copyright notices documented in
729+ corresponding subdirectories.
730+
731+ ------------------------------------------------------------------------------
732+
733+ CMake was initially developed by Kitware with the following sponsorship:
734+
735+ * National Library of Medicine at the National Institutes of Health
736+ as part of the Insight Segmentation and Registration Toolkit (ITK).
737+
738+ * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
739+ Visualization Initiative.
740+
741+ * National Alliance for Medical Image Computing (NAMIC) is funded by the
742+ National Institutes of Health through the NIH Roadmap for Medical Research,
743+ Grant U54 EB005149.
744+
745+ * Kitware, Inc.
746+
747+----------------------------------------------------
748+
749+/xml.xsd
750+
751+Copyright: 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
752+
753+
754+ 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.
755+
756+ W3C Software Notice and License
757+
758+ This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
759+
760+ License
761+
762+ 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.
763+
764+ 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:
765+ •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
766+ •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.
767+ •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.)
768+
769+ Disclaimers
770+
771+ 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.
772+
773+ COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
774+
775+ 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.
776+
777+----------------------------------------------------
778+
779+schemas/xslt-xquery-serialization.xsd
780+
781+Copyright: 2010 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
782+
783+
784+ 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.
785+
786+ W3C Software Notice and License
787+
788+ This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
789+
790+ License
791+
792+ 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.
793+
794+ 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:
795+ •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
796+ •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.
797+ •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.)
798+
799+ Disclaimers
800+
801+ 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.
802+
803+ COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
804+
805+ 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.
806+
807+----------------------------------------------------
808+
809+modules/w3c/xpath-functions.xsd
810+
811+Copyright: 2005 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
812+
813+
814+ 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.
815+
816+ W3C Software Notice and License
817+
818+ This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
819+
820+ License
821+
822+ 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.
823+
824+ 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:
825+ •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
826+ •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.
827+ •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.)
828+
829+ Disclaimers
830+
831+ 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.
832+
833+ COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
834+
835+ 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.
836+
837+----------------------------------------------------
838+
839+include/xqc.h
840+
841+Copyright: 2008, Matthias Brantner, John Snelson
842+
843+
844+ * All rights reserved.
845+ *
846+ * Redistribution and use in source and binary forms, with or without
847+ * modification, are permitted provided that the following conditions are met:
848+ *
849+ * * Redistributions of source code must retain the above copyright notice,
850+ * this list of conditions and the following disclaimer.
851+ * * Redistributions in binary form must reproduce the above copyright
852+ * notice, this list of conditions and the following disclaimer in the
853+ * documentation and/or other materials provided with the distribution.
854+ * * Neither the name of the developers nor the names of contributors may be
855+ * used to endorse or promote products derived from this software without
856+ * specific prior written permission.
857+ *
858+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
859+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
860+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
861+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
862+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
863+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
864+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
865+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
866+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
867+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
868+ * POSSIBILITY OF SUCH DAMAGE.
869+
870+----------------------------------------------------
871+
872+modules/functx/functx.xq
873+
874+Copyright: 2007 Datypic
875+
876+
877+ : This library is free software; you can redistribute it and/or
878+ : modify it under the terms of the GNU Lesser General Public
879+ : License as published by the Free Software Foundation; either
880+ : version 2.1 of the License.
881+
882+ : This library is distributed in the hope that it will be useful,
883+ : but WITHOUT ANY WARRANTY; without even the implied warranty of
884+ : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
885+ : Lesser General Public License for more details.
886+
887+ : You should have received a copy of the GNU Lesser General Public
888+ : License along with this library; if not, write to the Free Software
889+ : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
890+
891+----------------------------------------------------
892+
893+src/compiler/parser/FlexLexer.h
894+
895+Copyright: 1993 The Regents of the University of California
896+
897+
898+ // All rights reserved.
899+ //
900+ // This code is derived from software contributed to Berkeley by
901+ // Kent Williams and Tom Epperly.
902+ //
903+ // Redistribution and use in source and binary forms, with or without
904+ // modification, are permitted provided that the following conditions
905+ // are met:
906+
907+ // 1. Redistributions of source code must retain the above copyright
908+ // notice, this list of conditions and the following disclaimer.
909+ // 2. Redistributions in binary form must reproduce the above copyright
910+ // notice, this list of conditions and the following disclaimer in the
911+ // documentation and/or other materials provided with the distribution.
912+
913+ // Neither the name of the University nor the names of its contributors
914+ // may be used to endorse or promote products derived from this software
915+ // without specific prior written permission.
916+
917+ // THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
918+ // IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
919+ // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
920+ // PURPOSE.
921+
922+----------------------------------------------------
923+
924+src/diagnostics/StackWalker.cpp
925+src/diagnostics/StackWalker.h
926+
927+Copyright: 2005 Jochen Kalmbach
928+
929+
930+ Under BSD License: http://www.opensource.org/licenses/bsd-license.php
931+
932+----------------------------------------------------
933+
934+src/util/singleton.h
935+src/util/threads.h
936+
937+Copyright: 2001 Andrei Alexandrescu
938+
939+
940+ This code accompanies the book:
941+ Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design
942+ Patterns Applied". Copyright (c) 2001. Addison-Wesley.
943+ Permission to use, copy, modify, distribute and sell this software for any
944+ purpose is hereby granted without fee, provided that the above copyright
945+ notice appear in all copies and that both that copyright notice and this
946+ permission notice appear in supporting documentation.
947+ The author or Addison-Wesley Longman make no representations about the
948+ suitability of this software for any purpose. It is provided "as is"
949+ without express or implied warranty.
950+
951+
952+External libraries used by this project:
953+----------------------------------------------------
954+
955+Name: LIBXML2
956+Preferred version: 2.2.16 or higher
957+Is mandatory: true
958+Website: http://xmlsoft.org/
959+License: MIT
960+Copyright: 1998-2002 Daniel Veillard. All Rights Reserved.
961+External notice:
962+
963+ 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:
964+
965+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
966+
967+ 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.
968+
969+ Except as contained in this notice, the name of Daniel Veillard shall not
970+ be used in advertising or otherwise to promote the sale, use or other deal-
971+ ings in this Software without prior written authorization from him.
972+
973+----------------------------------------------------
974+
975+Name: LIBXSLT
976+Preferred version: 1.1.26
977+Is mandatory: false
978+Website: http://xmlsoft.org/XSLT/
979+License: MIT
980+Copyright: 2001-2002 Daniel Veillard. All Rights Reserved.
981+External notice:
982+
983+ 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:
984+
985+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
986+
987+ 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.
988+
989+
990+ 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.
991+
992+
993+----------------------------------------------------
994+
995+Name: ICU4C
996+Preferred version: 3.6 or higher
997+Is mandatory: true
998+Website: http://www.icu-project.org/
999+License: ICU License
1000+Copyright: 1995-2011 International Business Machines Corporation and others
1001+External notice:
1002+
1003+ 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.
1004+
1005+ 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.
1006+
1007+ 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.
1008+
1009+----------------------------------------------------
1010+
1011+Name: CURL
1012+Preferred version: above 7.12
1013+Is mandatory: false
1014+Website: http://curl.haxx.se/
1015+License: MIT/X derivate license
1016+Copyright: 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>.
1017+External notice:
1018+
1019+ All rights reserved.
1020+
1021+ Permission to use, copy, modify, and distribute this software for any purpose
1022+ with or without fee is hereby granted, provided that the above copyright
1023+ notice and this permission notice appear in all copies.
1024+
1025+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1026+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1027+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
1028+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
1029+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
1030+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
1031+ OR OTHER DEALINGS IN THE SOFTWARE.
1032+
1033+ Except as contained in this notice, the name of a copyright holder shall not
1034+ be used in advertising or otherwise to promote the sale, use or other dealings
1035+ in this Software without prior written authorization of the copyright holder.
1036+
1037+----------------------------------------------------
1038+
1039+Name: ICONV
1040+Preferred version: above 1.12
1041+Is mandatory: true
1042+Website: http://www.gnu.org/software/libiconv/
1043+License: LGPL
1044+Copyright: 1998, 2010 Free Software Foundation, Inc.
1045+External notice:
1046+
1047+----------------------------------------------------
1048+
1049+Name: ZLIB
1050+Preferred version: 1.2.5
1051+Is mandatory: true
1052+Website: http://www.zlib.net/
1053+Copyright: 1995-2004 Jean-loup Gailly and Mark Adler
1054+External notice:
1055+
1056+ This software is provided 'as-is', without any express or implied
1057+ warranty. In no event will the authors be held liable for any damages
1058+ arising from the use of this software.
1059+
1060+ Permission is granted to anyone to use this software for any purpose,
1061+ including commercial applications, and to alter it and redistribute it
1062+ freely, subject to the following restrictions:
1063+
1064+ 1. The origin of this software must not be misrepresented; you must not
1065+ claim that you wrote the original software. If you use this software
1066+ in a product, an acknowledgment in the product documentation would be
1067+ appreciated but is not required.
1068+ 2. Altered source versions must be plainly marked as such, and must not be
1069+ misrepresented as being the original software.
1070+ 3. This notice may not be removed or altered from any source distribution.
1071+
1072+ Jean-loup Gailly jloup@gzip.org
1073+ Mark Adler madler@alumni.caltech.edu
1074+
1075+----------------------------------------------------
1076+
1077+Name: XERCES
1078+Preferred version: 2.8.0 or higher
1079+Is mandatory: true
1080+Website: http://xerces.apache.org/xerces-c/
1081+License: Apache 2
1082+Copyright: Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.
1083+External notice:
1084+
1085+ http://www.apache.org/licenses/LICENSE-2.0
1086+
1087+----------------------------------------------------
1088+
1089+Name: BOOST (boost_filesystem)
1090+Preferred version: 1.32 or higher
1091+Is mandatory: false
1092+Website: http://www.boost.org/
1093+License: Boost Software License v1.0
1094+Copyright:
1095+ Beman Dawes, David Abrahams, 1998-2005.
1096+ Rene Rivera 2004-2007
1097+
1098+External notice:
1099+
1100+ Permission is hereby granted, free of charge, to any person or organization
1101+ obtaining a copy of the software and accompanying documentation covered by
1102+ this license (the "Software") to use, reproduce, display, distribute,
1103+ execute, and transmit the Software, and to prepare derivative works of the
1104+ Software, and to permit third-parties to whom the Software is furnished to
1105+ do so, all subject to the following:
1106+
1107+ The copyright notices in the Software and this entire statement, including
1108+ the above license grant, this restriction and the following disclaimer,
1109+ must be included in all copies of the Software, in whole or in part, and
1110+ all derivative works of the Software, unless such copies or derivative
1111+ works are solely in the form of machine-executable object code generated by
1112+ a source language processor.
1113+
1114+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1115+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1116+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
1117+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
1118+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
1119+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1120+ DEALINGS IN THE SOFTWARE.
1121+
1122+
1123+External applications used by this project:
1124+----------------------------------------------------
1125+
1126+Name: FLEX
1127+Preferred version: 2.5.33
1128+Is mandatory: false
1129+Website: http://flex.sourceforge.net/
1130+Copyright:
1131+ 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The Flex Project.
1132+ 1990, 1997 The Regents of the University of California. All rights reserved.
1133+
1134+External notice:
1135+
1136+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1137+
1138+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1139+ 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.
1140+
1141+ 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.
1142+
1143+ 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.
1144+
1145+----------------------------------------------------
1146+
1147+Name: BISON
1148+Preferred version: 2.4 or higher
1149+Is mandatory: false
1150+Website: http://www.gnu.org/software/bison/
1151+License: GPL
1152+Copyright: 1998, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1153+External notice:
1154+
1155+----------------------------------------------------
1156+
1157+Name: DOXYGEN
1158+Preferred version: v1.7.4
1159+Is mandatory: false
1160+Website: www.doxygen.org
1161+License: GPL
1162+Copyright: 1997-2011 by Dimitri van Heesch
1163+External notice:
1164+
1165+ Permission to use, copy, modify, and distribute this software and its documentation under the terms of the GNU General Public License is hereby granted.
1166+ No representations are made about the suitability of this software for any purpose.
1167+ It is provided "as is" without express or implied warranty.
1168+ See the GNU General Public License for more details.
1169+
1170+ Documents produced by doxygen are derivative works derived from the input used in their production; they are not affected by this license.
1171+
1172+----------------------------------------------------
1173+
1174+Name: CMAKE
1175+Preferred version: 2.8.4
1176+Is mandatory: true
1177+Website: http://www.cmake.org/
1178+License: Creative Commons Attribution-NoDerivs 3.0 Unported License
1179+Copyright: 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.
1180+External notice:
1181+
1182+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1183+
1184+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1185+
1186+ 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.
1187+
1188+ 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.
1189+
1190+ 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.
1191+
1192+----------------------------------------------------
1193+
1194+Name: SWIG
1195+Preferred version: 2.0.4 or above
1196+Is mandatory: false
1197+Website: http://www.swig.org/
1198+License: GPL
1199+Copyright:
1200+ 1995-2011 The SWIG Developers
1201+ 2005-2006 Arizona Board of Regents (University of Arizona).
1202+ 1998-2005 University of Chicago.
1203+ 1995-1998 The University of Utah and the Regents of the University of California
1204+
1205+External notice:
1206+
1207+ SWIG is free software: you can redistribute it and/or modify it
1208+ under the terms of the GNU General Public License as published by
1209+ the Free Software Foundation, either version 3 of the License, or
1210+ (at your option) any later version. See the LICENSE-GPL file for
1211+ the full terms of the GNU General Public license version 3.
1212+
1213+ Portions of SWIG are also licensed under the terms of the licenses
1214+ in the file LICENSE-UNIVERSITIES. You must observe the terms of
1215+ these licenses, as well as the terms of the GNU General Public License,
1216+ when you distribute SWIG.
1217+
1218+ The SWIG library and examples, under the Lib and Examples top level
1219+ directories, are distributed under the following terms:
1220+
1221+ You may copy, modify, distribute, and make derivative works based on
1222+ this software, in source code or object code form, without
1223+ restriction. If you distribute the software to others, you may do
1224+ so according to the terms of your choice. This software is offered as
1225+ is, without warranty of any kind.
1226+
1227+ See the COPYRIGHT file for a list of contributors to SWIG and their
1228+ copyright notices.
1229+
1230\ No newline at end of file
1231
1232=== removed file 'NOTICE.txt'
1233--- NOTICE.txt 2011-09-01 01:58:54 +0000
1234+++ NOTICE.txt 1970-01-01 00:00:00 +0000
1235@@ -1,740 +0,0 @@
1236------------
1237-Zorba 2.0.1
1238------------
1239-
1240-(Note: This file is generated automatically from NOTICE.xml.
1241-Please do not modify this file directly.)
1242-
1243-
1244-
1245-
1246-Apache 2
1247-
1248- Copyright 2006-2011 The FLWOR Foundation
1249-
1250- See LICENSE.txt for license information.
1251-
1252- ------------------------
1253- This product includes software developed at
1254- The FLWOR Foundation (http://www.flworfound.org/).
1255-
1256- ------------------------
1257- Portions of this software were developed at the Systems
1258- Group of the ETH Zurich, Switzerland.
1259-
1260-
1261-Other files used by this project:
1262-----------------------------------------------------
1263-
1264-src/zorbatypes/m_apm.h
1265-src/zorbatypes/mapm/
1266-
1267-Copyright: 1999-2007 Michael C. Ring
1268-Website: http://www.tc.umn.edu/~ringx004/mapm-main.html
1269-
1270- This software is Freeware.
1271-
1272- Permission to use, copy, and distribute this software and its
1273- documentation for any purpose with or without fee is hereby granted,
1274- provided that the above copyright notice appear in all copies and
1275- that both that copyright notice and this permission notice appear
1276- in supporting documentation.
1277-
1278- Permission to modify the software is granted. Permission to distribute
1279- the modified code is granted. Modifications are to be distributed by
1280- using the file 'license.txt' as a template to modify the file header.
1281- 'license.txt' is available in the official MAPM distribution.
1282-
1283- To distribute modified source code, insert the file 'license.txt'
1284- at the top of all modified source code files and edit accordingly.
1285-
1286- This software is provided "as is" without express or implied warranty.
1287-
1288-----------------------------------------------------
1289-
1290-src/zorbamisc/config/stdint.h
1291-
1292-Copyright: 2006 Alexander Chemeris
1293-
1294-
1295- Redistribution and use in source and binary forms, with or without
1296- modification, are permitted provided that the following conditions are met:
1297-
1298- 1. Redistributions of source code must retain the above copyright notice,
1299- this list of conditions and the following disclaimer.
1300-
1301- 2. Redistributions in binary form must reproduce the above copyright
1302- notice, this list of conditions and the following disclaimer in the
1303- documentation and/or other materials provided with the distribution.
1304-
1305- 3. The name of the author may be used to endorse or promote products
1306- derived from this software without specific prior written permission.
1307-
1308- THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
1309- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
1310- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
1311- EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1312- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
1313- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
1314- OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
1315- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
1316- OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
1317- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1318-
1319-----------------------------------------------------
1320-
1321-src/zorbautils/stemmer/
1322-
1323-Copyright: 2001 Dr. Martin Porter
1324-
1325-
1326- All the software given out on this Snowball site is covered by the BSD
1327- License (see http://www.opensource.org/licenses/bsd-license.html), with
1328- Copyright (c) 2001, Dr Martin Porter, and (for the Java developments)
1329- Copyright (c) 2002, Richard Boulton.
1330-
1331- Essentially, all this means is that you can do what you like with the code,
1332- except claim another Copyright for it, or claim that it is issued under a
1333- different license. The software is also issued without warranties, which
1334- means that if anyone suffers through its use, they cannot come back and sue
1335- you. You also have to alert anyone to whom you give the Snowball software to
1336- the fact that it is covered by the BSD license.
1337-
1338- We have not bothered to insert the licensing arrangement into the text of
1339- the Snowball software.
1340-
1341-----------------------------------------------------
1342-
1343-src/util/less.h
1344-
1345-Copyright: 1998 Paul J. Lucas
1346-
1347-
1348- Redistribution and use in source and binary forms, with or without
1349- modification, are permitted provided that the following conditions are met:
1350-
1351- o Redistributions of source code must retain the above copyright notice,
1352- this list of conditions and the following disclaimer.
1353-
1354- o Redistributions in binary form must reproduce the above copyright
1355- notice, this list of conditions and the following disclaimer in the
1356- documentation and/or other materials provided with the distribution.
1357-
1358- o The name of the author may not be used to endorse or promote products
1359- derived from this software without specific prior written permission.
1360-
1361- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1362- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1363- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1364- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
1365- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1366- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1367- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1368- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1369- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1370- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1371- POSSIBILITY OF SUCH DAMAGE.
1372-
1373-----------------------------------------------------
1374-
1375-src/util/auto_vector.h (has been modified)
1376-
1377-Copyright: 2003 Reliable Software
1378-
1379-
1380- Redistribution and use in source and binary forms, with or without
1381- modification, are permitted provided that the following conditions are met:
1382-
1383- o Redistributions of source code must retain the above copyright notice,
1384- this list of conditions and the following disclaimer.
1385-
1386- o Redistributions in binary form must reproduce the above copyright
1387- notice, this list of conditions and the following disclaimer in the
1388- documentation and/or other materials provided with the distribution.
1389-
1390- o The name of the author may not be used to endorse or promote products
1391- derived from this software without specific prior written permission.
1392-
1393- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1394- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1395- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1396- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
1397- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1398- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1399- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1400- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1401- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1402- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1403- POSSIBILITY OF SUCH DAMAGE.
1404-
1405-----------------------------------------------------
1406-
1407-cmake_modules/FindBoost.cmake
1408-
1409-Copyright:
1410- 2006-2008 Andreas Schneider <mail@cynapses.org>
1411- 2007 Wengo
1412- 2007 Mike Jackson
1413- 2008 Andreas Pakulat <apaku@gmx.de>
1414-
1415-
1416-
1417- Redistribution AND use is allowed according to the terms of the New BSD license.
1418- For details see the accompanying COPYING-CMAKE-SCRIPTS file.
1419-
1420-----------------------------------------------------
1421-
1422-cmake_modules/FindJNI.cmake
1423-cmake_modules/FindPythonLibs.cmake
1424-cmake_modules/FindSWIG.cmake
1425-
1426-Copyright: 2001-2009 Kitware, Inc.
1427-
1428-
1429- Distributed under the OSI-approved BSD License (the "License");
1430- see accompanying file Copyright.txt for details.
1431-
1432- This software is distributed WITHOUT ANY WARRANTY; without even the
1433- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1434- See the License for more information.
1435-
1436- CMake - Cross Platform Makefile Generator
1437- Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
1438- All rights reserved.
1439-
1440- Redistribution and use in source and binary forms, with or without
1441- modification, are permitted provided that the following conditions
1442- are met:
1443-
1444- * Redistributions of source code must retain the above copyright
1445- notice, this list of conditions and the following disclaimer.
1446-
1447- * Redistributions in binary form must reproduce the above copyright
1448- notice, this list of conditions and the following disclaimer in the
1449- documentation and/or other materials provided with the distribution.
1450-
1451- * Neither the names of Kitware, Inc., the Insight Software Consortium,
1452- nor the names of their contributors may be used to endorse or promote
1453- products derived from this software without specific prior written
1454- permission.
1455-
1456- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1457- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1458- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1459- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1460- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1461- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1462- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1463- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1464- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1465- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1466- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1467-
1468- ------------------------------------------------------------------------------
1469-
1470- The above copyright and license notice applies to distributions of
1471- CMake in source and binary form. Some source files contain additional
1472- notices of original copyright by their contributors; see each source
1473- for details. Third-party software packages supplied with CMake under
1474- compatible licenses provide their own copyright notices documented in
1475- corresponding subdirectories.
1476-
1477- ------------------------------------------------------------------------------
1478-
1479- CMake was initially developed by Kitware with the following sponsorship:
1480-
1481- * National Library of Medicine at the National Institutes of Health
1482- as part of the Insight Segmentation and Registration Toolkit (ITK).
1483-
1484- * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
1485- Visualization Initiative.
1486-
1487- * National Alliance for Medical Image Computing (NAMIC) is funded by the
1488- National Institutes of Health through the NIH Roadmap for Medical Research,
1489- Grant U54 EB005149.
1490-
1491- * Kitware, Inc.
1492-
1493-----------------------------------------------------
1494-
1495-/xml.xsd
1496-
1497-Copyright: 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
1498-
1499-
1500- 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.
1501-
1502- W3C Software Notice and License
1503-
1504- This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
1505-
1506- License
1507-
1508- 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.
1509-
1510- 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:
1511- •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
1512- •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.
1513- •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.)
1514-
1515- Disclaimers
1516-
1517- 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.
1518-
1519- COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
1520-
1521- 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.
1522-
1523-----------------------------------------------------
1524-
1525-schemas/xslt-xquery-serialization.xsd
1526-
1527-Copyright: 2010 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
1528-
1529-
1530- 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.
1531-
1532- W3C Software Notice and License
1533-
1534- This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
1535-
1536- License
1537-
1538- 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.
1539-
1540- 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:
1541- •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
1542- •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.
1543- •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.)
1544-
1545- Disclaimers
1546-
1547- 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.
1548-
1549- COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
1550-
1551- 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.
1552-
1553-----------------------------------------------------
1554-
1555-modules/w3c/xpath-functions.xsd
1556-
1557-Copyright: 2005 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University)
1558-
1559-
1560- 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.
1561-
1562- W3C Software Notice and License
1563-
1564- This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license.
1565-
1566- License
1567-
1568- 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.
1569-
1570- 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:
1571- •The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
1572- •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.
1573- •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.)
1574-
1575- Disclaimers
1576-
1577- 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.
1578-
1579- COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
1580-
1581- 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.
1582-
1583-----------------------------------------------------
1584-
1585-include/xqc.h
1586-
1587-Copyright: 2008, Matthias Brantner, John Snelson
1588-
1589-
1590- * All rights reserved.
1591- *
1592- * Redistribution and use in source and binary forms, with or without
1593- * modification, are permitted provided that the following conditions are met:
1594- *
1595- * * Redistributions of source code must retain the above copyright notice,
1596- * this list of conditions and the following disclaimer.
1597- * * Redistributions in binary form must reproduce the above copyright
1598- * notice, this list of conditions and the following disclaimer in the
1599- * documentation and/or other materials provided with the distribution.
1600- * * Neither the name of the developers nor the names of contributors may be
1601- * used to endorse or promote products derived from this software without
1602- * specific prior written permission.
1603- *
1604- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1605- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1606- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1607- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
1608- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1609- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1610- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1611- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1612- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1613- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1614- * POSSIBILITY OF SUCH DAMAGE.
1615-
1616-----------------------------------------------------
1617-
1618-modules/functx/functx.xq
1619-
1620-Copyright: 2007 Datypic
1621-
1622-
1623- : This library is free software; you can redistribute it and/or
1624- : modify it under the terms of the GNU Lesser General Public
1625- : License as published by the Free Software Foundation; either
1626- : version 2.1 of the License.
1627-
1628- : This library is distributed in the hope that it will be useful,
1629- : but WITHOUT ANY WARRANTY; without even the implied warranty of
1630- : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1631- : Lesser General Public License for more details.
1632-
1633- : You should have received a copy of the GNU Lesser General Public
1634- : License along with this library; if not, write to the Free Software
1635- : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1636-
1637-----------------------------------------------------
1638-
1639-src/compiler/parser/FlexLexer.h
1640-
1641-Copyright: 1993 The Regents of the University of California
1642-
1643-
1644- // All rights reserved.
1645- //
1646- // This code is derived from software contributed to Berkeley by
1647- // Kent Williams and Tom Epperly.
1648- //
1649- // Redistribution and use in source and binary forms, with or without
1650- // modification, are permitted provided that the following conditions
1651- // are met:
1652-
1653- // 1. Redistributions of source code must retain the above copyright
1654- // notice, this list of conditions and the following disclaimer.
1655- // 2. Redistributions in binary form must reproduce the above copyright
1656- // notice, this list of conditions and the following disclaimer in the
1657- // documentation and/or other materials provided with the distribution.
1658-
1659- // Neither the name of the University nor the names of its contributors
1660- // may be used to endorse or promote products derived from this software
1661- // without specific prior written permission.
1662-
1663- // THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
1664- // IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
1665- // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1666- // PURPOSE.
1667-
1668-----------------------------------------------------
1669-
1670-src/diagnostics/StackWalker.cpp
1671-src/diagnostics/StackWalker.h
1672-
1673-Copyright: 2005 Jochen Kalmbach
1674-
1675-
1676- Under BSD License: http://www.opensource.org/licenses/bsd-license.php
1677-
1678-----------------------------------------------------
1679-
1680-src/util/singleton.h
1681-src/util/threads.h
1682-
1683-Copyright: 2001 Andrei Alexandrescu
1684-
1685-
1686- This code accompanies the book:
1687- Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design
1688- Patterns Applied". Copyright (c) 2001. Addison-Wesley.
1689- Permission to use, copy, modify, distribute and sell this software for any
1690- purpose is hereby granted without fee, provided that the above copyright
1691- notice appear in all copies and that both that copyright notice and this
1692- permission notice appear in supporting documentation.
1693- The author or Addison-Wesley Longman make no representations about the
1694- suitability of this software for any purpose. It is provided "as is"
1695- without express or implied warranty.
1696-
1697-
1698-External libraries used by this project:
1699-----------------------------------------------------
1700-
1701-Name: LIBXML2
1702-Preferred version: 2.2.16 or higher
1703-Is mandatory: true
1704-Website: http://xmlsoft.org/
1705-License: MIT
1706-Copyright: 1998-2002 Daniel Veillard. All Rights Reserved.
1707-External notice:
1708-
1709- 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:
1710-
1711- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1712-
1713- 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.
1714-
1715- Except as contained in this notice, the name of Daniel Veillard shall not
1716- be used in advertising or otherwise to promote the sale, use or other deal-
1717- ings in this Software without prior written authorization from him.
1718-
1719-----------------------------------------------------
1720-
1721-Name: LIBXSLT
1722-Preferred version: 1.1.26
1723-Is mandatory: false
1724-Website: http://xmlsoft.org/XSLT/
1725-License: MIT
1726-Copyright: 2001-2002 Daniel Veillard. All Rights Reserved.
1727-External notice:
1728-
1729- 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:
1730-
1731- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1732-
1733- 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.
1734-
1735-
1736- 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.
1737-
1738-
1739-----------------------------------------------------
1740-
1741-Name: ICU4C
1742-Preferred version: 3.6 or higher
1743-Is mandatory: true
1744-Website: http://www.icu-project.org/
1745-License: ICU License
1746-Copyright: 1995-2011 International Business Machines Corporation and others
1747-External notice:
1748-
1749- 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.
1750-
1751- 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.
1752-
1753- 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.
1754-
1755-----------------------------------------------------
1756-
1757-Name: CURL
1758-Preferred version: above 7.12
1759-Is mandatory: false
1760-Website: http://curl.haxx.se/
1761-License: MIT/X derivate license
1762-Copyright: 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>.
1763-External notice:
1764-
1765- All rights reserved.
1766-
1767- Permission to use, copy, modify, and distribute this software for any purpose
1768- with or without fee is hereby granted, provided that the above copyright
1769- notice and this permission notice appear in all copies.
1770-
1771- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1772- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1773- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
1774- NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
1775- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
1776- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
1777- OR OTHER DEALINGS IN THE SOFTWARE.
1778-
1779- Except as contained in this notice, the name of a copyright holder shall not
1780- be used in advertising or otherwise to promote the sale, use or other dealings
1781- in this Software without prior written authorization of the copyright holder.
1782-
1783-----------------------------------------------------
1784-
1785-Name: ICONV
1786-Preferred version: above 1.12
1787-Is mandatory: true
1788-Website: http://www.gnu.org/software/libiconv/
1789-License: LGPL
1790-Copyright: 1998, 2010 Free Software Foundation, Inc.
1791-External notice:
1792-
1793-----------------------------------------------------
1794-
1795-Name: ZLIB
1796-Preferred version: 1.2.5
1797-Is mandatory: true
1798-Website: http://www.zlib.net/
1799-Copyright: 1995-2004 Jean-loup Gailly and Mark Adler
1800-External notice:
1801-
1802- This software is provided 'as-is', without any express or implied
1803- warranty. In no event will the authors be held liable for any damages
1804- arising from the use of this software.
1805-
1806- Permission is granted to anyone to use this software for any purpose,
1807- including commercial applications, and to alter it and redistribute it
1808- freely, subject to the following restrictions:
1809-
1810- 1. The origin of this software must not be misrepresented; you must not
1811- claim that you wrote the original software. If you use this software
1812- in a product, an acknowledgment in the product documentation would be
1813- appreciated but is not required.
1814- 2. Altered source versions must be plainly marked as such, and must not be
1815- misrepresented as being the original software.
1816- 3. This notice may not be removed or altered from any source distribution.
1817-
1818- Jean-loup Gailly jloup@gzip.org
1819- Mark Adler madler@alumni.caltech.edu
1820-
1821-----------------------------------------------------
1822-
1823-Name: XERCES
1824-Preferred version: 2.8.0 or higher
1825-Is mandatory: true
1826-Website: http://xerces.apache.org/xerces-c/
1827-License: Apache 2
1828-Copyright: Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.
1829-External notice:
1830-
1831- http://www.apache.org/licenses/LICENSE-2.0
1832-
1833-----------------------------------------------------
1834-
1835-Name: BOOST (boost_filesystem)
1836-Preferred version: 1.32 or higher
1837-Is mandatory: false
1838-Website: http://www.boost.org/
1839-License: Boost Software License v1.0
1840-Copyright:
1841- Beman Dawes, David Abrahams, 1998-2005.
1842- Rene Rivera 2004-2007
1843-
1844-External notice:
1845-
1846- Permission is hereby granted, free of charge, to any person or organization
1847- obtaining a copy of the software and accompanying documentation covered by
1848- this license (the "Software") to use, reproduce, display, distribute,
1849- execute, and transmit the Software, and to prepare derivative works of the
1850- Software, and to permit third-parties to whom the Software is furnished to
1851- do so, all subject to the following:
1852-
1853- The copyright notices in the Software and this entire statement, including
1854- the above license grant, this restriction and the following disclaimer,
1855- must be included in all copies of the Software, in whole or in part, and
1856- all derivative works of the Software, unless such copies or derivative
1857- works are solely in the form of machine-executable object code generated by
1858- a source language processor.
1859-
1860- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1861- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1862- FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
1863- SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
1864- FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
1865- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1866- DEALINGS IN THE SOFTWARE.
1867-
1868-
1869-External applications used by this project:
1870-----------------------------------------------------
1871-
1872-Name: FLEX
1873-Preferred version: 2.5.33
1874-Is mandatory: false
1875-Website: http://flex.sourceforge.net/
1876-Copyright:
1877- 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The Flex Project.
1878- 1990, 1997 The Regents of the University of California. All rights reserved.
1879-
1880-External notice:
1881-
1882- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1883-
1884- 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1885- 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.
1886-
1887- 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.
1888-
1889- 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.
1890-
1891-----------------------------------------------------
1892-
1893-Name: BISON
1894-Preferred version: 2.4 or higher
1895-Is mandatory: false
1896-Website: http://www.gnu.org/software/bison/
1897-License: GPL
1898-Copyright: 1998, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1899-External notice:
1900-
1901-----------------------------------------------------
1902-
1903-Name: DOXYGEN
1904-Preferred version: v1.7.4
1905-Is mandatory: false
1906-Website: www.doxygen.org
1907-License: GPL
1908-Copyright: 1997-2011 by Dimitri van Heesch
1909-External notice:
1910-
1911- Permission to use, copy, modify, and distribute this software and its documentation under the terms of the GNU General Public License is hereby granted.
1912- No representations are made about the suitability of this software for any purpose.
1913- It is provided "as is" without express or implied warranty.
1914- See the GNU General Public License for more details.
1915-
1916- Documents produced by doxygen are derivative works derived from the input used in their production; they are not affected by this license.
1917-
1918-----------------------------------------------------
1919-
1920-Name: CMAKE
1921-Preferred version: 2.8.4
1922-Is mandatory: true
1923-Website: http://www.cmake.org/
1924-License: Creative Commons Attribution-NoDerivs 3.0 Unported License
1925-Copyright: 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.
1926-External notice:
1927-
1928- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1929-
1930- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1931-
1932- 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.
1933-
1934- 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.
1935-
1936- 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.
1937-
1938-----------------------------------------------------
1939-
1940-Name: SWIG
1941-Preferred version: 2.0.4 or above
1942-Is mandatory: false
1943-Website: http://www.swig.org/
1944-License: GPL
1945-Copyright:
1946- 1995-2011 The SWIG Developers
1947- 2005-2006 Arizona Board of Regents (University of Arizona).
1948- 1998-2005 University of Chicago.
1949- 1995-1998 The University of Utah and the Regents of the University of California
1950-
1951-External notice:
1952-
1953- SWIG is free software: you can redistribute it and/or modify it
1954- under the terms of the GNU General Public License as published by
1955- the Free Software Foundation, either version 3 of the License, or
1956- (at your option) any later version. See the LICENSE-GPL file for
1957- the full terms of the GNU General Public license version 3.
1958-
1959- Portions of SWIG are also licensed under the terms of the licenses
1960- in the file LICENSE-UNIVERSITIES. You must observe the terms of
1961- these licenses, as well as the terms of the GNU General Public License,
1962- when you distribute SWIG.
1963-
1964- The SWIG library and examples, under the Lib and Examples top level
1965- directories, are distributed under the following terms:
1966-
1967- You may copy, modify, distribute, and make derivative works based on
1968- this software, in source code or object code form, without
1969- restriction. If you distribute the software to others, you may do
1970- so according to the terms of your choice. This software is offered as
1971- is, without warranty of any kind.
1972-
1973- See the COPYRIGHT file for a list of contributors to SWIG and their
1974- copyright notices.
1975-
1976\ No newline at end of file
1977
1978=== modified file 'README.txt'
1979--- README.txt 2011-10-05 07:54:00 +0000
1980+++ README.txt 2012-05-02 10:44:31 +0000
1981@@ -11,7 +11,7 @@
1982 -------------
1983
1984 The documentation is included in the doc directory, as well as
1985- on the website of the project at http://www.zorba-xquery.com/doc/zorba-latest/zorba/html/.
1986+ on the website of the project at http://www.zorba-xquery.org/html/documentation
1987
1988 Build & Installation
1989 --------------------
1990@@ -45,4 +45,4 @@
1991 https://bugs.launchpad.net/zorba.
1992
1993 o If you want to participate in actively developing Zorba or
1994- support Zorba, please write a mail to: zorba-coders@lists.inf.ethz.ch.
1995+ support Zorba, please write a mail to: zorba-dev@googlegroups.com
1996
1997=== modified file 'bin/CMakeLists.txt'
1998--- bin/CMakeLists.txt 2011-08-05 02:21:55 +0000
1999+++ bin/CMakeLists.txt 2012-05-02 10:44:31 +0000
2000@@ -15,33 +15,38 @@
2001 INCLUDE_DIRECTORIES(AFTER ${CMAKE_SOURCE_DIR}/src/)
2002 INCLUDE_DIRECTORIES(AFTER ${CMAKE_CURRENT_SOURCE_DIR})
2003
2004-IF(ZORBA_WITH_DEBUGGER_CLIENT)
2005- CONFIGURE_FILE (debug_client/event_handler_init.cpp.in debug_client/event_handler_init.cpp)
2006-
2007- SET(DEBUG_CLIENT_SRCS
2008- debug_client/tuple.h
2009- debug_client/main.cpp
2010- debug_client/debug_command.h
2011- debug_client/debug_command.cpp
2012- debug_client/command_line_handler.h
2013- debug_client/command_line_handler.cpp
2014- debug_client/lock_free_queue.h
2015- debug_client/event_handler.h
2016- debug_client/event_handler.cpp
2017- ${CMAKE_CURRENT_BINARY_DIR}/debug_client/event_handler_init.cpp
2018+IF (ZORBA_WITH_DEBUGGER)
2019+ IF (NOT WIN32)
2020+ FIND_PACKAGE (Libedit)
2021+ IF (LIBEDIT_FOUND)
2022+ INCLUDE_DIRECTORIES (${LIBEDIT_INCLUDE_DIRS})
2023+ SET (LIBEDIT_LIBS ${LIBEDIT_LIBRARIES})
2024+ SET (ZORBA_HAVE_LIBEDIT_H ${LIBEDIT_FOUND})
2025+ ENDIF (LIBEDIT_FOUND)
2026+ ENDIF (NOT WIN32)
2027+
2028+ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/debugger/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/debugger/config.h)
2029+ MESSAGE(STATUS "configured ${CMAKE_CURRENT_SOURCE_DIR}/debugger/config.h.cmake --> ${CMAKE_CURRENT_BINARY_DIR}/debugger/config.h")
2030+ INCLUDE_DIRECTORIES (BEFORE ${CMAKE_CURRENT_BINARY_DIR}/debugger)
2031+
2032+ SET (DEBUG_CLIENT_SRCS
2033+ debugger/main.cpp
2034+ debugger/xqdb_client.cpp
2035+ debugger/process_listener.cpp
2036+ debugger/command_prompt.cpp
2037+ debugger/command_line_handler.cpp
2038+ debugger/event_handler.cpp
2039 )
2040
2041- CONFIGURE_FILE (debug_client/message-handler.xq message-handler.xq)
2042-
2043- ZORBA_GENERATE_EXE("debuggercmd" "${DEBUG_CLIENT_SRCS}" "" "debugger" "bin")
2044-ENDIF(ZORBA_WITH_DEBUGGER_CLIENT)
2045+ ZORBA_GENERATE_EXE ("xqdb" "${DEBUG_CLIENT_SRCS}" "${LIBEDIT_LIBS}" "xqdb" "bin")
2046+ENDIF (ZORBA_WITH_DEBUGGER)
2047
2048 SET(SRCS
2049 zorbacmd.cpp
2050 zorbacmdproperties.cpp
2051 error_printer.cpp
2052 util.cpp
2053- module_path.cpp
2054+ path_util.cpp
2055 )
2056
2057 INCLUDE("${CMAKE_SOURCE_DIR}/cmake_modules/ZorbaGenerateExe.cmake")
2058@@ -84,3 +89,37 @@
2059 # test the --option option to set an option in the static context
2060 ZORBA_ADD_TEST(bin/zorba_option zorbacmd -q "${CMAKE_CURRENT_SOURCE_DIR}/test/option.xq" -f --option "{http://www.zorba-xquery.com}option=value")
2061 ZORBA_SET_TEST_PROPERTY(bin/zorba_option PASS_REGULAR_EXPRESSION "value")
2062+
2063+# test the --uri-path, --lib-path, and --module-path args.
2064+# Use the versioning tests as they utilize test modules already.
2065+SET (_testdir
2066+ "${CMAKE_CURRENT_SOURCE_DIR}/../test/rbkt/Queries/zorba/versioning")
2067+SET (_uridir "${CMAKE_BINARY_DIR}/TEST_URI_PATH")
2068+SET (_libdir "${CMAKE_BINARY_DIR}/TEST_LIB_PATH")
2069+ZORBA_ADD_TEST(bin/zorba_uri_path_1 zorbacmd -f -q "${_testdir}/import1.xq"
2070+ --uri-path "${_uridir}")
2071+ZORBA_SET_TEST_PROPERTY(bin/zorba_uri_path_1
2072+ PASS_REGULAR_EXPRESSION "hello, v2")
2073+
2074+ZORBA_ADD_TEST(bin/zorba_uri_path_2 zorbacmd -f -q "${_testdir}/external1.xq"
2075+ --uri-path "${_uridir}")
2076+ZORBA_SET_TEST_PROPERTY(bin/zorba_uri_path_2
2077+ PASS_REGULAR_EXPRESSION "ZXQP0008")
2078+
2079+ZORBA_ADD_TEST(bin/zorba_uri_path_3 zorbacmd -f -q "${_testdir}/external1.xq"
2080+ --uri-path "${_uridir}" --lib-path "${_libdir}")
2081+ZORBA_SET_TEST_PROPERTY(bin/zorba_uri_path_3
2082+ PASS_REGULAR_EXPRESSION "hello, v2")
2083+
2084+IF(WIN32)
2085+ SET(PATH_SEP ";")
2086+ELSE(WIN32)
2087+ SET(PATH_SEP ":")
2088+ENDIF(WIN32)
2089+ZORBA_ADD_TEST(bin/zorba_module_path_1 zorbacmd -f -q "${_testdir}/external1.xq"
2090+ --module-path "${_libdir}${PATH_SEP}${_uridir}")
2091+ZORBA_SET_TEST_PROPERTY(bin/zorba_module_path_1
2092+ PASS_REGULAR_EXPRESSION "hello, v2")
2093+
2094+# test compilation of the perf script
2095+ZORBA_ADD_TEST(bin/zorba_compilechk4 zorbacmd -q "${CMAKE_CURRENT_SOURCE_DIR}/../test/zperf/src/start.xq" -f --compile-only)
2096
2097=== removed file 'bin/debug_client/debug_command.cpp'
2098--- bin/debug_client/debug_command.cpp 2011-07-01 01:53:24 +0000
2099+++ bin/debug_client/debug_command.cpp 1970-01-01 00:00:00 +0000
2100@@ -1,99 +0,0 @@
2101-/*
2102- * Copyright 2006-2008 The FLWOR Foundation.
2103- *
2104- * Licensed under the Apache License, Version 2.0 (the "License");
2105- * you may not use this file except in compliance with the License.
2106- * You may obtain a copy of the License at
2107- *
2108- * http://www.apache.org/licenses/LICENSE-2.0
2109- *
2110- * Unless required by applicable law or agreed to in writing, software
2111- * distributed under the License is distributed on an "AS IS" BASIS,
2112- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2113- * See the License for the specific language governing permissions and
2114- * limitations under the License.
2115- */
2116-#include <iostream>
2117-#include "debug_client/debug_command.h"
2118-
2119-namespace zorba { namespace debugclient {
2120-
2121-
2122- void CommandLine::execute()
2123- {
2124- for (;;) {
2125- std::cout << "zdb>> ";
2126- std::string command;
2127- std::getline(std::cin, command);
2128- std::vector<std::string> args;
2129- args << command;
2130- std::map<std::string, UntypedCommand*>::iterator lIter = theCommands.find(args[0]);
2131- if (lIter == theCommands.end()) {
2132- std::cout << args[0] << ": Command not found" << std::endl;
2133- continue;
2134- }
2135- if (!lIter->second->execute(args))
2136- continue;
2137- return;
2138- }
2139- }
2140-
2141-
2142- CommandLine::~CommandLine()
2143- {
2144- for (std::map<std::string, UntypedCommand*>::iterator i = theCommands.begin();
2145- i != theCommands.end(); ++i)
2146- {
2147- delete i->second;
2148- }
2149- }
2150-
2151- CommandLine& CommandLine::operator<<(UntypedCommand *aCommand)
2152- {
2153- theCommands.insert(std::make_pair(aCommand->get_name(), aCommand));
2154- return *this;
2155- }
2156-}}
2157-
2158-namespace std {
2159- vector<string>& operator<< (vector<string>& vec, const string& str)
2160- {
2161- string::size_type before = 0;
2162- string::size_type pos = str.find(" ", 0);
2163- while (pos != str.npos) {
2164- std::string lSub = str.substr(before, pos - before);
2165- if (lSub[0] == '"') {
2166- std::string::size_type lBeforeCopy = before;
2167- do {
2168- lBeforeCopy = str.find("\"", lBeforeCopy + 1);
2169- } while (pos != str.npos && str.size() > pos + 1 && str[pos + 1] == '\\');
2170- pos = lBeforeCopy;
2171- lSub = str.substr(before + 1, pos - before - 1);
2172- }
2173- vec.push_back(lSub);
2174- before = pos + 1;
2175- pos = str.find(" ", before);
2176- }
2177- std::string lSub = str.substr(before);
2178- if (lSub[0] == '"') {
2179- pos = str.find("\"", before + 1);
2180- lSub = str.substr(before + 1, pos - before - 1);
2181- }
2182- vec.push_back(lSub);
2183- return vec;
2184- }
2185-
2186- set<string>& operator<< (set<string>& vec, const string& str)
2187- {
2188- string::size_type before = 0;
2189- string::size_type pos = str.find(" ", 0);
2190- while (pos != str.npos) {
2191- vec.insert(str.substr(before, pos));
2192- before = pos + 1;
2193- pos = str.find(" ", before);
2194- }
2195- vec.insert(str.substr(before));
2196- return vec;
2197- }
2198-
2199-}
2200
2201=== removed file 'bin/debug_client/event_handler_init.cpp.in'
2202--- bin/debug_client/event_handler_init.cpp.in 2011-07-01 01:53:24 +0000
2203+++ bin/debug_client/event_handler_init.cpp.in 1970-01-01 00:00:00 +0000
2204@@ -1,41 +0,0 @@
2205-/*
2206- * Copyright 2006-2008 The FLWOR Foundation.
2207- *
2208- * Licensed under the Apache License, Version 2.0 (the "License");
2209- * you may not use this file except in compliance with the License.
2210- * You may obtain a copy of the License at
2211- *
2212- * http://www.apache.org/licenses/LICENSE-2.0
2213- *
2214- * Unless required by applicable law or agreed to in writing, software
2215- * distributed under the License is distributed on an "AS IS" BASIS,
2216- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2217- * See the License for the specific language governing permissions and
2218- * limitations under the License.
2219- */
2220-#include <fstream>
2221-#include "debug_client/event_handler.h"
2222-
2223-namespace zorba { namespace debugclient {
2224-
2225- std::istream* EventHandler::getCurrentDirectory() {
2226- const char* build_dir = "@CMAKE_BINARY_DIR@/bin/message-handler.xq";
2227- const char* install_dir =
2228-#ifndef WIN32
2229- "@CMAKE_INSTALL_PREFIX@/bin/";
2230-#else
2231- "C:/Program Files/Zorba XQuery Processor @ZORBA_MAJOR_NUMBER@.@ZORBA_MINOR_NUMBER@.@ZORBA_PATCH_NUMBER@/bin/";
2232-#endif
2233- std::auto_ptr<std::ifstream> stream(new std::ifstream(build_dir));
2234- if (stream->good()) {
2235- return stream.release();
2236- }
2237- stream.reset(new std::ifstream(install_dir));
2238- if (stream->good()) {
2239- return stream.release();
2240- }
2241- return 0;
2242- }
2243-
2244-}} // end of namespace zorba::debugclient
2245-
2246
2247=== removed file 'bin/debug_client/lock_free_queue.cpp'
2248--- bin/debug_client/lock_free_queue.cpp 2011-07-01 01:53:24 +0000
2249+++ bin/debug_client/lock_free_queue.cpp 1970-01-01 00:00:00 +0000
2250@@ -1,16 +0,0 @@
2251-/*
2252- * Copyright 2006-2008 The FLWOR Foundation.
2253- *
2254- * Licensed under the Apache License, Version 2.0 (the "License");
2255- * you may not use this file except in compliance with the License.
2256- * You may obtain a copy of the License at
2257- *
2258- * http://www.apache.org/licenses/LICENSE-2.0
2259- *
2260- * Unless required by applicable law or agreed to in writing, software
2261- * distributed under the License is distributed on an "AS IS" BASIS,
2262- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2263- * See the License for the specific language governing permissions and
2264- * limitations under the License.
2265- */
2266-#include "lock_free_queue.h"
2267
2268=== removed file 'bin/debug_client/message-handler.xq'
2269--- bin/debug_client/message-handler.xq 2011-08-26 23:36:24 +0000
2270+++ bin/debug_client/message-handler.xq 1970-01-01 00:00:00 +0000
2271@@ -1,165 +0,0 @@
2272-(:
2273- : Copyright 2006-2009 The FLWOR Foundation.
2274- :
2275- : Licensed under the Apache License, Version 2.0 (the "License");
2276- : you may not use this file except in compliance with the License.
2277- : You may obtain a copy of the License at
2278- :
2279- : http://www.apache.org/licenses/LICENSE-2.0
2280- :
2281- : Unless required by applicable law or agreed to in writing, software
2282- : distributed under the License is distributed on an "AS IS" BASIS,
2283- : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2284- : See the License for the specific language governing permissions and
2285- : limitations under the License.
2286-:)
2287-
2288-import module namespace refl = 'http://www.zorba-xquery.com/modules/reflection';
2289-import module namespace sctx = "http://www.zorba-xquery.com/modules/introspection/sctx";
2290-import module namespace base64 = "http://www.zorba-xquery.com/modules/converters/base64";
2291-
2292-
2293-declare variable $local:localns as xs:string := 'http://www.w3.org/2005/xquery-local-functions';
2294-
2295-
2296-declare variable $local:endl as xs:string := '
2297-';
2298-
2299-declare function local:has-to-stop($resp as element())
2300-{
2301- fn:not(($resp/@command/data(.) eq "stop" and $resp/@reason/data(.) eq "ok")
2302- or ($resp/@status/data(.) eq "stopped")
2303- or ($resp/@status/data(.) eq "stopping"))
2304-};
2305-
2306-declare function local:status($resp as element())
2307-{
2308- fn:concat(
2309- "Status: ", $resp/@status/data(.), $local:endl,
2310- "Reason: ", $resp/@reason/data(.), $local:endl,
2311- let $msg := $resp/text()
2312- return
2313- if (fn:empty($msg) or $msg eq "") then
2314- ""
2315- else
2316- fn:concat($msg, $local:endl)
2317- )
2318-};
2319-
2320-
2321-declare function local:run($resp as element()) {
2322- if ($resp/@status/data(.) eq "starting") then
2323- "Starting query"
2324- else
2325- local:status($resp)
2326-};
2327-
2328-declare function local:stop($resp as element())
2329-{
2330- local:status($resp)
2331-};
2332-
2333-declare function local:breakpoint_set($resp as element())
2334-{
2335- if ($resp/error) then
2336- fn:concat("Error when setting a breakpoint: ", if ($resp/error/message) then $resp/error/message/text() else concat(" errcode: ", data($resp/error/@code)))
2337- else
2338- fn:concat("set breakpoint with id ", data($resp/@id), " and state ", data($resp/@state))
2339-};
2340-
2341-declare function local:breakpoint_list($resp as element())
2342-{
2343- string-join(
2344- for $b in $resp/breakpoint
2345- return concat("Breakpoint ", data($b/@id), " at ", data($b/@filename), ":", data($b/@lineno), " ", data($b/@state)),
2346- $local:endl
2347- )
2348-};
2349-
2350-declare function local:breakpoint_remove($resp as element())
2351-{
2352- "Breakpoint removed"
2353-};
2354-
2355-declare function local:stack_depth($resp as element())
2356-{
2357- concat("Depth: ", data($resp/@depth))
2358-};
2359-
2360-declare function local:stack_get($resp as element())
2361-{
2362- string-join(
2363- for $s in $resp/stack
2364- return concat("Level ", data($s/@level), " at ", data($s/@filename), ":", data($s/@lineno)),
2365- $local:endl
2366- )
2367-};
2368-
2369-
2370-declare function local:context_names($resp as element())
2371-{
2372- string-join(
2373- for $c in $resp/context
2374- return concat("Context: ", data($c/@name), " id: ", data($c/@id)),
2375- $local:endl
2376- )
2377-};
2378-
2379-declare function local:context_get($resp as element())
2380-{
2381- string-join(
2382- for $p in $resp/property
2383- return concat(data($p/@fullname), ": [", data($p/@type), "]",
2384- if ($p/text() ne "") then concat(": ", base64:decode($p/text())) else ""),
2385- $local:endl
2386- )
2387-};
2388-
2389-declare function local:eval($resp as element())
2390-{
2391- if (data($resp/@success) eq "1") then
2392- local:context_get($resp)
2393- else
2394- concat("Eval failed", ":", $resp/error/message/text())
2395-};
2396-
2397-declare function local:process-response($resp as element())
2398-{
2399- if (data($resp/@command) eq "") then
2400- (fn:true(), $resp/@transaction_id/data(.), local:status($resp))
2401- else
2402- let $fun-cont-name := fn:QName($local:localns, concat("local:", $resp/@command/data(.), "-cont"))
2403- let $fun-msg-name := fn:QName($local:localns, concat("local:", $resp/@command/data(.)))
2404- return (
2405- if (sctx:function-arguments-count($fun-cont-name) = 1) then
2406- refl:invoke($fun-cont-name, $resp)
2407- else
2408- local:has-to-stop($resp),
2409- $resp/@transaction_id/data(.),
2410- if (sctx:function-arguments-count($fun-msg-name) = 1) then
2411- refl:invoke($fun-msg-name, $resp)
2412- else
2413- "Recieved a message - command not implemented"
2414- )
2415-};
2416-
2417-declare function local:process-init($init as element())
2418-{
2419- fn:true(),
2420- 0,
2421- fn:concat(fn:string-join(
2422- ('Established connection with', $init/@language/data(.), 'client', $init/@appid/data(.)), ' '), '
2423-')
2424-};
2425-
2426-declare function local:main($response as element()) {
2427- let $process-fun as xs:QName := fn:QName($local:localns, concat("local:process-", node-name($response)))
2428- return
2429- if (sctx:function-arguments-count($process-fun) = 1) then
2430- refl:invoke($process-fun, $response)
2431- else (
2432- true(),
2433- ($response/@transaction_id, 0)[1]/data(.),
2434- "ERROR: Recieved unknown node from client"
2435- )
2436-};
2437
2438=== renamed directory 'bin/debug_client' => 'bin/debugger'
2439=== renamed file 'bin/debug_client/debug_command.h' => 'bin/debugger/command.h'
2440--- bin/debug_client/debug_command.h 2011-07-04 08:05:46 +0000
2441+++ bin/debugger/command.h 2012-05-02 10:44:31 +0000
2442@@ -14,7 +14,9 @@
2443 * limitations under the License.
2444 */
2445 #pragma once
2446-#include <zorba/config.h>
2447+#ifndef ZORBA_DEBUGGER_COMMAND_H
2448+#define ZORBA_DEBUGGER_COMMAND_H
2449+
2450 #include <string>
2451 #include <vector>
2452 #include <iostream>
2453@@ -23,151 +25,18 @@
2454 #include <sstream>
2455 #include <memory>
2456 #include <typeinfo>
2457-#include "debug_client/tuple.h"
2458-
2459-namespace zorba { namespace debugclient {
2460+
2461+#include <zorba/config.h>
2462+
2463+#include "command_arg.h"
2464+#include "tuple.h"
2465+
2466+
2467+namespace zorba { namespace debugger {
2468
2469 class DebugClientParseException : public std::exception {
2470 };
2471
2472- template<typename Tuple>
2473- class CommandArg;
2474-
2475- template<typename Tuple>
2476- class CommandArgInstance {
2477- public:
2478- virtual int get_index() const = 0;
2479- virtual const CommandArg<Tuple>* get_arg() const = 0;
2480- virtual void insertValue(Tuple& t) = 0;
2481- virtual bool isSet(Tuple& t) const = 0;
2482- };
2483-
2484- template<typename T, int Idx, typename Tuple>
2485- class TypedCommandArgInstance : public CommandArgInstance<Tuple>
2486- {
2487- public:
2488- TypedCommandArgInstance(T aValue, const CommandArg<Tuple>* aArg)
2489- : theValue(aValue), theArg(aArg) {}
2490- virtual int get_index() const { return Idx; }
2491- virtual const CommandArg<Tuple>* get_arg() const { return theArg; }
2492- virtual void insertValue(Tuple& t)
2493- {
2494- ZORBA_TR1_NS::get<Idx>(t).first = true;
2495- ZORBA_TR1_NS::get<Idx>(t).second = theValue;
2496- }
2497- virtual bool isSet(Tuple& t) const
2498- {
2499- return ZORBA_TR1_NS::get<Idx>(t).first;
2500- }
2501- private:
2502- T theValue;
2503- const CommandArg<Tuple>* theArg;
2504- };
2505-
2506- template<typename Tuple>
2507- class CommandArgType {
2508- public:
2509- virtual CommandArgInstance<Tuple>* parse(const std::string& str,
2510- const CommandArg<Tuple>* arg) = 0;
2511- virtual bool isVoid() const = 0;
2512- virtual bool isSet(Tuple& t) const = 0;
2513- virtual ~CommandArgType() {}
2514- };
2515-
2516- template<typename T, int Idx, typename Tuple>
2517- class TypedCommandArgType : public CommandArgType<Tuple> {
2518- public:
2519- typedef T Type;
2520- public: // implementation
2521- TypedCommandArgType(bool aIsVoid) : theIsVoid(aIsVoid) {}
2522- TypedCommandArgType(const T& aValue,
2523- bool aIsVoid)
2524- : theDefault(aValue), theIsVoid(aIsVoid) {}
2525- virtual CommandArgInstance<Tuple>* parse(const std::string& str,
2526- const CommandArg<Tuple>* arg)
2527- {
2528- T aValue;
2529- std::stringstream stream(str);
2530- stream >> aValue;
2531- if (stream.fail()) {
2532- std::cerr << "Could not parse argument of type "
2533- << typeid(T).name()
2534- << std::endl;
2535- return 0;
2536- }
2537- return new TypedCommandArgInstance<T, Idx, Tuple>(aValue, arg);
2538- }
2539- virtual bool isVoid() const { return theIsVoid; }
2540- virtual bool isSet(Tuple& t) const
2541- {
2542- return ZORBA_TR1_NS::get<Idx>(t).first;
2543- }
2544- private:
2545- TypedCommandArgType<T, Idx, Tuple>() {}
2546- T theDefault;
2547- bool theIsVoid;
2548- };
2549-
2550- template<typename Tuple>
2551- class CommandArg {
2552- public:
2553- CommandArg(unsigned aId,
2554- CommandArgType<Tuple>* aType,
2555- const std::set<std::string>& aFlags,
2556- const std::string& aDescription,
2557- bool aIsRequired)
2558- : theId(aId),
2559- theType(aType),
2560- theFlags(aFlags),
2561- theDescription(aDescription),
2562- theIsRequired(aIsRequired)
2563- {
2564- }
2565- ~CommandArg() { delete theType; }
2566- unsigned get_id() const { return theId; }
2567- bool canHandle(const std::string& arg) const
2568- {
2569- if (theFlags.find(arg) != theFlags.end()) {
2570- return true;
2571- }
2572- return false;
2573- }
2574- CommandArgInstance<Tuple>* parse(const std::string& str) const
2575- {
2576- return theType->parse(str, this);
2577- }
2578- bool isVoid() const {
2579- return theType->isVoid();
2580- }
2581- bool isRequired() const { return theIsRequired; }
2582- std::string get_name() const {
2583- return *(theFlags.begin());
2584- }
2585- bool isSet(Tuple& t) const
2586- {
2587- return theType->isSet(t);
2588- }
2589- private:
2590- unsigned theId;
2591- CommandArgType<Tuple>* theType;
2592- std::set<std::string> theFlags;
2593- std::string theDescription;
2594- bool theIsRequired;
2595- };
2596-}} // end namespace zorba
2597-
2598-namespace std {
2599-
2600- /**
2601- * This is a helper split function
2602- */
2603- vector<string>& operator<< (vector<string>& vec, const string& str);
2604-
2605- set<string>& operator<< (set<string>& vec, const string& str);
2606-} //end namespace std
2607-
2608-namespace zorba { namespace debugclient {
2609-
2610 template<typename Func, typename Tuple, int CommandIdx>
2611 class CommandInstance
2612 {
2613@@ -188,8 +57,11 @@
2614
2615 class UntypedCommand {
2616 public:
2617- virtual std::string get_name() const = 0;
2618- virtual std::string get_description() const = 0;
2619+ virtual ~UntypedCommand() {}
2620+ virtual std::string getName() const = 0;
2621+ virtual std::set<std::string> getAliases() const = 0;
2622+ virtual std::string getDescription() const = 0;
2623+ virtual void printHelp() const = 0;
2624 virtual bool execute(const std::vector<std::string>& args) = 0;
2625 };
2626
2627@@ -197,77 +69,141 @@
2628 class Command : public UntypedCommand {
2629 public:
2630 Command(const std::string& aName, Func& aFunction, const std::string& aDescription)
2631- : theName(aName), theFunction(aFunction), theDescription(aDescription) {}
2632+ : theName(aName), theFunction(aFunction), theDescription(aDescription)
2633+ {}
2634+
2635+ Command(const std::string& aName, const std::set<std::string> aAliases, Func& aFunction, const std::string& aDescription)
2636+ : theName(aName), theAliases(aAliases), theFunction(aFunction), theDescription(aDescription)
2637+ {}
2638+
2639 ~Command();
2640+
2641 public:
2642- Command& operator() (unsigned aId,
2643- const std::string& aFlags,
2644- CommandArgType<Tuple>* aType,
2645- const std::string& aDescription = "",
2646- bool isRequired = false);
2647- virtual std::string get_name() const { return theName; }
2648- virtual std::string get_description() const { return theDescription; }
2649+
2650+ void
2651+ addArgument(
2652+ unsigned aId,
2653+ const std::string& aFlags,
2654+ CommandArgType<Tuple>* aType,
2655+ const std::string& aDescription = "",
2656+ bool isRequired = false);
2657+
2658+ static void
2659+ splitNames(
2660+ const std::string& names,
2661+ std::set<std::string>& set);
2662+
2663+ virtual std::string
2664+ getName() const
2665+ {
2666+ return theName;
2667+ }
2668+
2669+ virtual std::set<std::string> getAliases() const
2670+ {
2671+ return theAliases;
2672+ }
2673+
2674+ virtual std::string
2675+ getDescription() const
2676+ {
2677+ return theDescription;
2678+ }
2679+
2680+ virtual void
2681+ printHelp() const;
2682+
2683 virtual bool execute(const std::vector<std::string>& args)
2684 {
2685 CommandInstance<Func, Tuple, CommandIdx> instance(theFunction, theTuple);
2686- if (instance.parseArguments(args, theArgs))
2687+ if (instance.parseArguments(args, theArgs)) {
2688 instance.execute();
2689- else
2690- return false;
2691- return true;
2692+ return true;
2693+ }
2694+ return false;
2695 }
2696 private:
2697 std::string theName;
2698+ std::set<std::string> theAliases;
2699 Func& theFunction;
2700 Tuple theTuple;
2701 std::string theDescription;
2702- std::map<std::string, CommandArg<Tuple>* > theArgs;
2703- };
2704-
2705- class CommandLine {
2706- public:
2707- ~CommandLine();
2708- public:
2709- void execute();
2710- CommandLine& operator<< (UntypedCommand* aCommand);
2711- private:
2712- std::map<std::string, UntypedCommand*> theCommands;
2713- };
2714-
2715- template<typename Func, typename Tuple, int CommandIdx>
2716- Command<Func, Tuple, CommandIdx>::~Command()
2717- {
2718- typedef std::map<std::string, CommandArg<Tuple>* > ArgType;
2719- for (typename ArgType::iterator i = theArgs.begin(); i != theArgs.end(); ++i) {
2720- delete i->second;
2721- }
2722- }
2723-
2724-
2725- template<typename Func, typename Tuple, int CommandIdx>
2726- Command<Func, Tuple, CommandIdx>&
2727- Command<Func, Tuple, CommandIdx>::operator() (unsigned aId,
2728- const std::string& aFlags,
2729- CommandArgType<Tuple>* aType,
2730- const std::string& aDescription,
2731- bool isRequired)
2732- {
2733- std::set<std::string> args;
2734- args << aFlags;
2735- for (std::set<std::string>::iterator i = args.begin(); i != args.end(); ++i) {
2736- std::string toAdd = (i->size() == 1) ? "-" + *i : "--" + *i;
2737- theArgs.insert(std::make_pair(toAdd,
2738- new CommandArg<Tuple>(aId,
2739- aType,
2740- args,
2741- aDescription,
2742- isRequired)
2743- )
2744- );
2745- }
2746- return *this;
2747- }
2748-
2749+ std::map<std::string, CommandArg<Tuple>*> theArgs;
2750+ };
2751+
2752+/*****************************************************************************/
2753+/*****************************************************************************/
2754+
2755+template<typename Func, typename Tuple, int CommandIdx>
2756+Command<Func, Tuple, CommandIdx>::~Command()
2757+{
2758+ typedef std::map<std::string, CommandArg<Tuple>*> ArgType;
2759+ for (typename ArgType::iterator i = theArgs.begin(); i != theArgs.end(); ++i) {
2760+ delete i->second;
2761+ }
2762+}
2763+
2764+template<typename Func, typename Tuple, int CommandIdx>
2765+void
2766+Command<Func, Tuple, CommandIdx>::printHelp() const
2767+{
2768+ std::cout << "Purpose: " << getDescription() << std::endl;
2769+
2770+ typename std::map<std::string, CommandArg<Tuple>*>::const_iterator lIter = theArgs.begin();
2771+ if (lIter == theArgs.end()) {
2772+ std::cout << "This command has no arguments." << std::endl;
2773+ std::cout << std::endl;
2774+ return;
2775+ }
2776+
2777+ std::cout << "Arguments:" << std::endl << std::endl;
2778+ for (; lIter != theArgs.end(); ++lIter) {
2779+ std::cout << " " << lIter->first << "\t" << lIter->second->getDescription() << std::endl;
2780+ }
2781+ std::cout << std::endl;
2782+}
2783+
2784+template<typename Func, typename Tuple, int CommandIdx>
2785+void
2786+Command<Func, Tuple, CommandIdx>::splitNames(const std::string& aNames, std::set<std::string>& aSet)
2787+{
2788+ std::string::size_type before = 0;
2789+ std::string::size_type pos = aNames.find(" ", 0);
2790+ while (pos != aNames.npos) {
2791+ std::string lName = aNames.substr(before, pos);
2792+ if (lName != "") {
2793+ aSet.insert(lName);
2794+ }
2795+ before = pos + 1;
2796+ pos = aNames.find(" ", before);
2797+ }
2798+ std::string lName = aNames.substr(before);
2799+ if (lName != "") {
2800+ aSet.insert(lName);
2801+ }
2802+}
2803+
2804+template<typename Func, typename Tuple, int CommandIdx>
2805+void
2806+Command<Func, Tuple, CommandIdx>::addArgument(
2807+ unsigned aId,
2808+ const std::string& aFlags,
2809+ CommandArgType<Tuple>* aType,
2810+ const std::string& aDescription,
2811+ bool isRequired)
2812+{
2813+ std::set<std::string> lNames;
2814+ splitNames(aFlags, lNames);
2815+
2816+ for (std::set<std::string>::iterator i = lNames.begin(); i != lNames.end(); ++i) {
2817+ std::string toAdd = (i->size() == 1) ? "-" + *i : "--" + *i;
2818+ CommandArg<Tuple>* lArg = new CommandArg<Tuple>(aId, aType, lNames, aDescription, isRequired);
2819+ theArgs.insert(std::make_pair(toAdd, lArg));
2820+ }
2821+}
2822+
2823+/*****************************************************************************/
2824+
2825 template<typename Tuple, typename T, int Idx>
2826 CommandArgType<Tuple>* createArgType(Tuple t)
2827 {
2828@@ -290,6 +226,16 @@
2829 return new Command<Func, Tuple, CommandIdx>(aName, aFunction, aDescription);
2830 }
2831
2832+ template<int CommandIdx, typename Tuple, typename Func>
2833+ Command<Func, Tuple, CommandIdx>* createCommand(Tuple t,
2834+ const std::string& aName,
2835+ const std::set<std::string>& aAliases,
2836+ Func& aFunction,
2837+ const std::string& aDescription)
2838+ {
2839+ return new Command<Func, Tuple, CommandIdx>(aName, aAliases, aFunction, aDescription);
2840+ }
2841+
2842 template<typename Func, typename Tuple, int CommandIdx>
2843 bool CommandInstance<Func, Tuple, CommandIdx>::
2844 parseArguments(const std::vector<std::string>& args,
2845@@ -301,29 +247,34 @@
2846 for (ArgType::size_type i = 1; i < size; ++i) {
2847 typename CArgType::const_iterator pos = aCommandArgs.find(args[i]);
2848 if (pos == aCommandArgs.end()) {
2849- std::cerr << "Error: Unknown Argument " << args[i] << std::endl;
2850+ std::cerr << "Error: Unknown option " << args[i] << std::endl;
2851 parseError = true;
2852 return false;
2853 }
2854 const CommandArg<Tuple>& arg = *(pos->second);
2855- if (!arg.isVoid() && args[++i][0] == '-') {
2856- std::cerr << "Did not expect parameter for option " << args[i] << std::endl;
2857- return false;
2858- }
2859 std::auto_ptr<CommandArgInstance<Tuple> > instance;
2860 if (arg.isVoid()) {
2861 instance.reset(arg.parse("1"));
2862 } else {
2863+ ++i;
2864+ if (i >= size) {
2865+ std::cerr << "Error: Missing value for argument " << args[i - 1] << std::endl;
2866+ parseError = true;
2867+ allSet = false;
2868+ return false;
2869+ }
2870 instance.reset(arg.parse(args[i]));
2871 }
2872- instance->insertValue(theTuple);
2873+ if (instance.get()) {
2874+ instance->insertValue(theTuple);
2875+ }
2876 }
2877 bool allSet = true;
2878 for (typename CArgType::const_iterator i = aCommandArgs.begin();
2879 i != aCommandArgs.end(); ++i)
2880 {
2881 if (i->second->isRequired() && !i->second->isSet(theTuple)) {
2882- std::cerr << "Error: Argument " << i->second->get_name() << " not set" << std::endl;
2883+ std::cerr << "Error: Argument -" << i->second->getName() << " not set" << std::endl;
2884 allSet = false;
2885 }
2886 }
2887@@ -336,4 +287,7 @@
2888 theFunction.template handle<CommandIdx>(this->theTuple);
2889 }
2890
2891-}} // end of namespace zorba::debugclient
2892+} // namespace zorba
2893+} // namespace debugger
2894+
2895+#endif // ZORBA_DEBUGGER_COMMAND_H
2896
2897=== added file 'bin/debugger/command_arg.h'
2898--- bin/debugger/command_arg.h 1970-01-01 00:00:00 +0000
2899+++ bin/debugger/command_arg.h 2012-05-02 10:44:31 +0000
2900@@ -0,0 +1,237 @@
2901+/*
2902+ * Copyright 2006-2008 The FLWOR Foundation.
2903+ *
2904+ * Licensed under the Apache License, Version 2.0 (the "License");
2905+ * you may not use this file except in compliance with the License.
2906+ * You may obtain a copy of the License at
2907+ *
2908+ * http://www.apache.org/licenses/LICENSE-2.0
2909+ *
2910+ * Unless required by applicable law or agreed to in writing, software
2911+ * distributed under the License is distributed on an "AS IS" BASIS,
2912+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2913+ * See the License for the specific language governing permissions and
2914+ * limitations under the License.
2915+ */
2916+#pragma once
2917+#ifndef ZORBA_DEBUGGER_COMMAND_ARG_H
2918+#define ZORBA_DEBUGGER_COMMAND_ARG_H
2919+
2920+#include <string>
2921+#include <iostream>
2922+#include <set>
2923+#include <sstream>
2924+
2925+#include "tuple.h"
2926+
2927+
2928+namespace zorba { namespace debugger {
2929+
2930+template<typename Tuple>
2931+class CommandArg;
2932+
2933+template<typename Tuple>
2934+class CommandArgInstance {
2935+ public:
2936+ virtual int get_index() const = 0;
2937+ virtual const CommandArg<Tuple>* get_arg() const = 0;
2938+ virtual void insertValue(Tuple& t) = 0;
2939+ virtual bool isSet(Tuple& t) const = 0;
2940+};
2941+
2942+template<typename T, int Idx, typename Tuple>
2943+class TypedCommandArgInstance : public CommandArgInstance<Tuple>
2944+{
2945+ public:
2946+ TypedCommandArgInstance(T aValue, const CommandArg<Tuple>* aArg)
2947+ : theValue(aValue), theArg(aArg)
2948+ {
2949+ }
2950+
2951+ virtual int
2952+ get_index() const
2953+ {
2954+ return Idx;
2955+ }
2956+
2957+ virtual const CommandArg<Tuple>*
2958+ get_arg() const
2959+ {
2960+ return theArg;
2961+ }
2962+
2963+ virtual void
2964+ insertValue(Tuple& t)
2965+ {
2966+ ZORBA_TR1_NS::get<Idx>(t).first = true;
2967+ ZORBA_TR1_NS::get<Idx>(t).second = theValue;
2968+ }
2969+
2970+ virtual bool isSet(Tuple& t) const
2971+ {
2972+ return ZORBA_TR1_NS::get<Idx>(t).first;
2973+ }
2974+
2975+ private:
2976+
2977+ T theValue;
2978+ const CommandArg<Tuple>* theArg;
2979+};
2980+
2981+template<typename Tuple>
2982+class CommandArgType
2983+{
2984+ public:
2985+ virtual CommandArgInstance<Tuple>*
2986+ parse(
2987+ const std::string& str,
2988+ const CommandArg<Tuple>* arg) = 0;
2989+
2990+ virtual bool
2991+ isVoid() const = 0;
2992+
2993+ virtual bool
2994+ isSet(Tuple& t) const = 0;
2995+
2996+ virtual ~CommandArgType() {}
2997+};
2998+
2999+ template<typename T, int Idx, typename Tuple>
3000+ class TypedCommandArgType : public CommandArgType<Tuple> {
3001+ public:
3002+ typedef T Type;
3003+ public: // implementation
3004+ TypedCommandArgType(bool aIsVoid) : theIsVoid(aIsVoid) {}
3005+ TypedCommandArgType(const T& aValue,
3006+ bool aIsVoid)
3007+ : theDefault(aValue), theIsVoid(aIsVoid) {}
3008+ virtual CommandArgInstance<Tuple>* parse(const std::string& str,
3009+ const CommandArg<Tuple>* arg)
3010+ {
3011+ T aValue;
3012+
3013+ // special treatment for strings
3014+ // this is a double hack:
3015+ // - we check the type name if this starts with: class std::basic_string
3016+ // - we use void* in readEntireString to workaround the template type T
3017+ // which would otherwise complain during compilation if types and
3018+ // operators do not match
3019+ // TOSO: probably someone can find a more elegant solution
3020+ std::string lTypeName(typeid(T).name());
3021+ if (lTypeName.find("class std::basic_string") == 0) {
3022+ readEntireString(str, &aValue);
3023+ } else {
3024+ std::stringstream stream(str);
3025+ std::stringstream out;
3026+ stream >> aValue;
3027+ if (stream.fail()) {
3028+ std::cerr << "Error: Could not parse value \"" << str << "\" as type "
3029+ << typeid(T).name()
3030+ << std::endl;
3031+ return 0;
3032+ }
3033+ }
3034+
3035+ return new TypedCommandArgInstance<T, Idx, Tuple>(aValue, arg);
3036+ }
3037+ virtual bool isVoid() const { return theIsVoid; }
3038+ virtual bool isSet(Tuple& t) const
3039+ {
3040+ return ZORBA_TR1_NS::get<Idx>(t).first;
3041+ }
3042+ private:
3043+ void readEntireString(std::string aIn, void* aValue)
3044+ {
3045+ *((std::string*)aValue) = aIn;
3046+ }
3047+
3048+ TypedCommandArgType<T, Idx, Tuple>() {}
3049+ T theDefault;
3050+ bool theIsVoid;
3051+ };
3052+
3053+ template<typename Tuple>
3054+ class CommandArg {
3055+ public:
3056+ CommandArg(unsigned aId,
3057+ CommandArgType<Tuple>* aType,
3058+ const std::set<std::string>& aNames,
3059+ const std::string& aDescription,
3060+ bool aIsRequired)
3061+ : theId(aId),
3062+ theType(aType),
3063+ theNames(aNames),
3064+ theDescription(aDescription),
3065+ theIsRequired(aIsRequired)
3066+ {
3067+ }
3068+
3069+ ~CommandArg()
3070+ {
3071+ delete theType;
3072+ }
3073+
3074+ unsigned
3075+ get_id() const
3076+ {
3077+ return theId;
3078+ }
3079+
3080+ bool
3081+ canHandle(const std::string& arg) const
3082+ {
3083+ if (theNames.find(arg) != theNames.end()) {
3084+ return true;
3085+ }
3086+ return false;
3087+ }
3088+
3089+ CommandArgInstance<Tuple>*
3090+ parse(const std::string& str) const
3091+ {
3092+ return theType->parse(str, this);
3093+ }
3094+
3095+ bool
3096+ isVoid() const
3097+ {
3098+ return theType->isVoid();
3099+ }
3100+
3101+ bool
3102+ isRequired() const
3103+ {
3104+ return theIsRequired;
3105+ }
3106+
3107+ std::string
3108+ getName() const
3109+ {
3110+ return *(theNames.begin());
3111+ }
3112+
3113+ std::string
3114+ getDescription() const
3115+ {
3116+ return theDescription;
3117+ }
3118+
3119+ bool
3120+ isSet(Tuple& t) const
3121+ {
3122+ return theType->isSet(t);
3123+ }
3124+
3125+ private:
3126+
3127+ unsigned theId;
3128+ CommandArgType<Tuple>* theType;
3129+ std::set<std::string> theNames;
3130+ std::string theDescription;
3131+ bool theIsRequired;
3132+ };
3133+
3134+} // namespace zorba
3135+} // namespace debugger
3136+
3137+#endif // ZORBA_DEBUGGER_COMMAND_ARG_H
3138
3139=== modified file 'bin/debugger/command_line_handler.cpp'
3140--- bin/debug_client/command_line_handler.cpp 2011-07-01 01:53:24 +0000
3141+++ bin/debugger/command_line_handler.cpp 2012-05-02 10:44:31 +0000
3142@@ -1,4 +1,4 @@
3143-/*
3144+ /*
3145 * Copyright 2006-2008 The FLWOR Foundation.
3146 *
3147 * Licensed under the Apache License, Version 2.0 (the "License");
3148@@ -23,225 +23,385 @@
3149 # define msleep Sleep
3150 #endif
3151
3152-namespace zorba { namespace debugclient {
3153+#include "command_prompt.h"
3154+
3155+
3156+namespace zorba { namespace debugger {
3157
3158- using namespace ::std;
3159 using namespace ::ZORBA_TR1_NS;
3160
3161- CommandLineHandler::CommandLineHandler(unsigned short port,
3162- LockFreeConsumer<std::size_t>& aConsumer,
3163- LockFreeConsumer<bool>& aContinueQueue,
3164- EventHandler& aHandler,
3165- CommandLine& aCommandLine)
3166+CommandLineHandler::CommandLineHandler(
3167+ unsigned short port,
3168+ LockFreeConsumer<std::size_t>& aConsumer,
3169+ LockFreeConsumer<bool>& aContinueQueue,
3170+ EventHandler* aHandler,
3171+ CommandPrompt* aCommandPrompt)
3172 : theConsumer(aConsumer),
3173 theContinueQueue(aContinueQueue),
3174- theClient(DebuggerClient::createDebuggerClient(&aHandler, port, "localhost")),
3175- theCommandLine(aCommandLine),
3176- theQuit(false), theContinue(false), theWaitFor(0)
3177+ theClient(DebuggerClient::createDebuggerClient(aHandler, port, "localhost")),
3178+ theCommandLine(aCommandPrompt),
3179+ theQuit(false), theTerminated(true), theContinue(false), theWaitFor(0)
3180 {
3181 addCommands();
3182 }
3183
3184- CommandLineHandler::~CommandLineHandler()
3185- {
3186- }
3187+CommandLineHandler::~CommandLineHandler()
3188+{
3189+}
3190
3191- void CommandLineHandler::execute()
3192- {
3193- theClient->accept();
3194- std::set<std::size_t> lIdList;
3195- do {
3196+void
3197+CommandLineHandler::execute()
3198+{
3199+ theClient->accept();
3200+ std::set<std::size_t> lIdList;
3201+ do {
3202+ getNextId(lIdList);
3203+ while (lIdList.find(theWaitFor) == lIdList.end()) {
3204 getNextId(lIdList);
3205- while (!theQuit && lIdList.find(theWaitFor) == lIdList.end()) {
3206- getNextId(lIdList);
3207- msleep(20);
3208- }
3209- while (!theContinueQueue.consume(theQuit)) {
3210- msleep(20);
3211- }
3212- theQuit = !theQuit;
3213- if (!theQuit) {
3214- theCommandLine.execute();
3215- while (theContinue) {
3216- theContinue = false;
3217- theCommandLine.execute();
3218- }
3219- }
3220- } while (!theQuit);
3221- }
3222-
3223- void CommandLineHandler::getNextId(std::set<std::size_t>& aIdList)
3224- {
3225- std::size_t result;
3226- if (theConsumer.consume(result)) {
3227- aIdList.insert(result);
3228- }
3229- }
3230-
3231- template<>
3232- void CommandLineHandler::handle<Status>(ZORBA_TR1_NS::tuple<> &t)
3233- {
3234- theWaitFor = theClient->status();
3235- }
3236-
3237- template<>
3238- void CommandLineHandler::handle<Quit>(ZORBA_TR1_NS::tuple<> &t)
3239- {
3240+ msleep(20);
3241+ }
3242+ bool lCanQuit;
3243+ while (!theContinueQueue.consume(lCanQuit)) {
3244+ msleep(20);
3245+ }
3246+ if (lCanQuit) {
3247+ theTerminated = true;
3248+ }
3249+ theCommandLine->execute();
3250+ while (theContinue) {
3251+ theContinue = false;
3252+ theCommandLine->execute();
3253+ }
3254+ } while (!theQuit);
3255+}
3256+
3257+void
3258+CommandLineHandler::getNextId(std::set<std::size_t>& aIdList)
3259+{
3260+ std::size_t result;
3261+ if (theConsumer.consume(result)) {
3262+ aIdList.insert(result);
3263+ }
3264+}
3265+
3266+template<>
3267+void
3268+CommandLineHandler::handle<Status>(ZORBA_TR1_NS::tuple<> &t)
3269+{
3270+ theWaitFor = theClient->status();
3271+}
3272+
3273+template<>
3274+void
3275+CommandLineHandler::handle<Variables>(ZORBA_TR1_NS::tuple<> &t)
3276+{
3277+ theWaitFor = theClient->variables();
3278+}
3279+
3280+template<>
3281+void
3282+CommandLineHandler::handle<Quit>(ZORBA_TR1_NS::tuple<> &t)
3283+{
3284+ if (!theTerminated) {
3285 bool answered = false;
3286 while (!answered) {
3287 std::cout << "Do you really want to stop debugging and exit? (y/n) ";
3288- char answer;
3289- std::cin >> answer;
3290- std::cout << std::endl;
3291- if (answer == 'y') {
3292+ std::string lAnswer;
3293+ std::getline(std::cin, lAnswer);
3294+ if (lAnswer == "y" || lAnswer == "yes") {
3295 answered = true;
3296- } else if (answered == 'n') {
3297+ } else if (lAnswer == "n" || lAnswer == "no") {
3298 theContinue = true;
3299 return;
3300 }
3301 }
3302- theWaitFor = theClient->stop();
3303- theClient->quit();
3304- }
3305-
3306- template<>
3307- void CommandLineHandler::handle<Run>(ZORBA_TR1_NS::tuple<> &t)
3308- {
3309- theWaitFor = theClient->run();
3310- }
3311-
3312- template<>
3313- void CommandLineHandler::handle<BreakpointSet>(std::tr1::tuple<bstring, bstring, bint> &t)
3314- {
3315- DebuggerClient::BreakpointType lType = DebuggerClient::Line;
3316- bool lEnabled = true;
3317- if (get<0>(t).first) {
3318- if (get<0>(t).second == "disabled") {
3319- lEnabled = false;
3320- }
3321- }
3322- theWaitFor = theClient->breakpoint_set(lType,
3323- lEnabled,
3324- get<1>(t).second,
3325- get<2>(t).second);
3326- }
3327-
3328- template<>
3329- void CommandLineHandler::handle<BreakpointGet>(tuple<bint> &aTuple)
3330- {
3331- theWaitFor = theClient->breakpoint_get(get<0>(aTuple).second);
3332- }
3333-
3334- template<>
3335- void CommandLineHandler::handle<BreakpointDel>(tuple<bint> &aTuple)
3336- {
3337- theWaitFor = theClient->breakpoint_remove(get<0>(aTuple).second);
3338- }
3339-
3340- template<>
3341- void CommandLineHandler::handle<BreakpointList>(tuple<> &t)
3342- {
3343- theWaitFor = theClient->breakpoint_list();
3344- }
3345-
3346- template<>
3347- void CommandLineHandler::handle<StackDepth>(tuple<> &t)
3348- {
3349- theWaitFor = theClient->stack_depth();
3350- }
3351-
3352- template<>
3353- void CommandLineHandler::handle<StackGet>(tuple<bint> &aTuple)
3354- {
3355- if (get<0>(aTuple).first) {
3356- theWaitFor = theClient->stack_get(get<0>(aTuple).second);
3357- } else {
3358- theWaitFor = theClient->stack_get();
3359- }
3360- }
3361-
3362- template<>
3363- void CommandLineHandler::handle<ContextNames>(tuple<>& aTuple)
3364- {
3365- theWaitFor = theClient->context_names();
3366- }
3367-
3368- template<>
3369- void CommandLineHandler::handle<ContextGet>(tuple<bint> &aTuple)
3370- {
3371- if (get<0>(aTuple).first)
3372- theWaitFor = theClient->context_get(get<0>(aTuple).second);
3373- else
3374- theWaitFor = theClient->context_get();
3375- }
3376-
3377- template<>
3378- void CommandLineHandler::handle<Eval>(tuple<bstring>& aTuple)
3379- {
3380- theWaitFor = theClient->eval(get<0>(aTuple).second);
3381- }
3382-
3383- void CommandLineHandler::addCommands()
3384- {
3385- theCommandLine << createCommand<Status>(tuple<>(), "status", *this,
3386- "Gets the status of the server");
3387- theCommandLine << createCommand<Quit>(tuple<>(), "quit", *this,
3388- "Stops debugging and quits the client");
3389- theCommandLine << createCommand<Run>(tuple<>(), "run", *this, "Run the Query");
3390- {
3391- Command<CommandLineHandler, tuple<bstring, bstring, bint>, BreakpointSet>* lCommand =
3392- createCommand<BreakpointSet>(tuple<bstring, bstring, bint>(), "break", *this, "Set a breakpoint");
3393- (*lCommand)(0, "s", createArgType<tuple<bstring, bstring, bint>, std::string, 0>(tuple<bstring, bstring, bint>()),
3394- "breakpoint state (enabled or disabled - default: enabled)", false);
3395- (*lCommand)(1, "f", createArgType<tuple<bstring, bstring, bint>, std::string, 1>(tuple<bstring, bstring, bint>()),
3396- "The name of the file where to stop", true);
3397- (*lCommand)(2, "l", createArgType<tuple<bstring, bstring, bint>, int, 2>(tuple<bstring, bstring, bint>()),
3398- "The line number", true);
3399-
3400- theCommandLine << lCommand;
3401- }
3402- {
3403- Command<CommandLineHandler, tuple<bint>, BreakpointGet>* lCommand
3404- = createCommand<BreakpointGet>(tuple<bint>(), "binfo", *this,
3405- "Get information about a given breakpoint");
3406- (*lCommand)(0, "i", createArgType<tuple<bint>, int, 0>(tuple<bint>()),
3407- "The id of the breakpoint", true);
3408-
3409- theCommandLine << lCommand;
3410- }
3411- {
3412- Command<CommandLineHandler, tuple<bint>, BreakpointDel>* lCommand
3413- = createCommand<BreakpointDel>(tuple<bint>(), "bdel", *this, "Delete a breakpoint with a given id");
3414- (*lCommand)(0, "i", createArgType<tuple<bint>, int, 0>(tuple<bint>()), "The id of the breakpoint", true);
3415-
3416- theCommandLine << lCommand;
3417- }
3418- theCommandLine << createCommand<BreakpointList>(tuple<>(), "blist", *this, "List all set breakpoints");
3419- theCommandLine << createCommand<StackDepth>(tuple<>(), "sdepth", *this, "Get the depth of the stack");
3420- {
3421- Command<CommandLineHandler, tuple<bint>, StackGet>* lCommand
3422- = createCommand<StackGet>(tuple<bint>(), "sget", *this, "Get information about one or all stack frames");
3423- (*lCommand)(0, "d", createArgType<tuple<bint>, int, 0>(tuple<bint>()), "The stack entry two show (show all if not provided)", false);
3424- theCommandLine << lCommand;
3425- }
3426- theCommandLine << createCommand<ContextNames>(tuple<>(), "cnames", *this, "Get the names of the avilable contexts");
3427- {
3428- Command<CommandLineHandler, tuple<bint>, ContextGet>* lCommand
3429- = createCommand<ContextGet>(tuple<bint>(), "cget", *this, "Get a context");
3430-
3431- (*lCommand)(0, "c", createArgType<tuple<bint>, int, 0>(tuple<bint>()), "The id of the context", false);
3432-
3433- theCommandLine << lCommand;
3434- }
3435- {
3436- Command<CommandLineHandler, tuple<bstring>, Eval>* lCommand
3437- = createCommand<Eval>(tuple<bstring>(), "eval", *this, "Evaluate a function");
3438-
3439- (*lCommand)(0, "c", createArgType<tuple<bstring>, std::string, 0>(tuple<bstring>()), "The command to evaluate", true);
3440-
3441- theCommandLine << lCommand;
3442- }
3443- }
3444-
3445-}} // namespace zorba::debugclient
3446-
3447+ }
3448+ theWaitFor = theClient->stop(true);
3449+ theClient->quit();
3450+ theQuit = true;
3451+}
3452+
3453+template<>
3454+void
3455+CommandLineHandler::handle<Run>(ZORBA_TR1_NS::tuple<> &t)
3456+{
3457+ theTerminated = false;
3458+ theWaitFor = theClient->run();
3459+}
3460+
3461+template<>
3462+void
3463+CommandLineHandler::handle<Stop>(ZORBA_TR1_NS::tuple<> &t)
3464+{
3465+ theWaitFor = theClient->stop(false);
3466+}
3467+
3468+template<>
3469+void
3470+CommandLineHandler::handle<BreakpointSet>(std::tr1::tuple<bstring, bstring, bint> &aTuple)
3471+{
3472+ DebuggerClient::BreakpointType lType = DebuggerClient::Line;
3473+ bool lEnabled = true;
3474+ if (get<0>(aTuple).first) {
3475+ if (get<0>(aTuple).second == "disabled") {
3476+ lEnabled = false;
3477+ }
3478+ }
3479+ theWaitFor = theClient->breakpoint_set(lType,
3480+ lEnabled,
3481+ get<1>(aTuple).second,
3482+ get<2>(aTuple).second);
3483+}
3484+
3485+template<>
3486+void
3487+CommandLineHandler::handle<BreakpointGet>(tuple<bint> &aTuple)
3488+{
3489+ theWaitFor = theClient->breakpoint_get(get<0>(aTuple).second);
3490+}
3491+
3492+template<>
3493+void
3494+CommandLineHandler::handle<BreakpointRemove>(tuple<bint> &aTuple)
3495+{
3496+ theWaitFor = theClient->breakpoint_remove(get<0>(aTuple).second);
3497+}
3498+
3499+template<>
3500+void
3501+CommandLineHandler::handle<BreakpointList>(tuple<> &aTuple)
3502+{
3503+ theWaitFor = theClient->breakpoint_list();
3504+}
3505+
3506+template<>
3507+void
3508+CommandLineHandler::handle<StackDepth>(tuple<> &aTuple)
3509+{
3510+ theWaitFor = theClient->stack_depth();
3511+}
3512+
3513+template<>
3514+void
3515+CommandLineHandler::handle<StackGet>(tuple<bint> &aTuple)
3516+{
3517+ if (get<0>(aTuple).first) {
3518+ theWaitFor = theClient->stack_get(get<0>(aTuple).second);
3519+ } else {
3520+ theWaitFor = theClient->stack_get();
3521+ }
3522+}
3523+
3524+template<>
3525+void
3526+CommandLineHandler::handle<ContextNames>(tuple<>& aTuple)
3527+{
3528+ theWaitFor = theClient->context_names();
3529+}
3530+
3531+template<>
3532+void CommandLineHandler::handle<ContextGet>(tuple<bint, bint> &aTuple)
3533+{
3534+ int lDepth = -1;
3535+ int lContext = -1;
3536+
3537+ if (get<0>(aTuple).first) {
3538+ lDepth = get<0>(aTuple).second;
3539+ }
3540+ if (get<1>(aTuple).first) {
3541+ lContext = get<1>(aTuple).second;
3542+ }
3543+ theWaitFor = theClient->context_get(lDepth, lContext);
3544+}
3545+
3546+template<>
3547+void CommandLineHandler::handle<Source>(tuple<bint, bint, bstring> &aTuple)
3548+{
3549+ theWaitFor = theClient->source(
3550+ get<2>(aTuple).second,
3551+ get<0>(aTuple).second,
3552+ get<1>(aTuple).second);
3553+}
3554+
3555+template<>
3556+void CommandLineHandler::handle<Eval>(tuple<bstring>& aTuple)
3557+{
3558+ theWaitFor = theClient->eval(get<0>(aTuple).second);
3559+}
3560+
3561+template<>
3562+void
3563+CommandLineHandler::handle<StepIn>(ZORBA_TR1_NS::tuple<> &t)
3564+{
3565+ theTerminated = false;
3566+ theWaitFor = theClient->step_into();
3567+}
3568+
3569+template<>
3570+void
3571+CommandLineHandler::handle<StepOut>(ZORBA_TR1_NS::tuple<> &t)
3572+{
3573+ theWaitFor = theClient->step_out();
3574+}
3575+
3576+template<>
3577+void
3578+CommandLineHandler::handle<StepOver>(ZORBA_TR1_NS::tuple<> &t)
3579+{
3580+ theTerminated = false;
3581+ theWaitFor = theClient->step_over();
3582+}
3583+
3584+void
3585+CommandLineHandler::addCommands()
3586+{
3587+ typedef tuple<> TUPLE;
3588+ typedef tuple<bint> TUPLE_INT;
3589+ typedef tuple<bstring> TUPLE_STR;
3590+ typedef tuple<bint, bint> TUPLE_INT_INT;
3591+ typedef tuple<bstring, bstring, bint> TUPLE_STR_STR_INT;
3592+ typedef tuple<bint, bint, bstring> TUPLE_INT_INT_STR;
3593+
3594+ // DBGP: status
3595+ *theCommandLine << createCommand<Status>(TUPLE(), "status", *this, "Gets the status of the server");
3596+
3597+ // ALIAS: variables (context_get -c -1)
3598+ {
3599+ std::set<std::string> lAliases;
3600+ lAliases.insert("vars");
3601+ *theCommandLine << createCommand<Variables>(TUPLE(), "variables", lAliases, *this, "Gets the variables visible in the current scope");
3602+ }
3603+
3604+ // META: quit
3605+ *theCommandLine << createCommand<Quit>(TUPLE(), "quit", *this, "Stops debugging and quits the client");
3606+
3607+ // DBGP: run
3608+ *theCommandLine << createCommand<Run>(TUPLE(), "run", *this, "Run the query");
3609+
3610+ // DBGP: stop
3611+ *theCommandLine << createCommand<Stop>(TUPLE(), "stop", *this, "Stop the query");
3612+
3613+ // DBGP: breakpoint_set
3614+ {
3615+ std::set<std::string> lAliases;
3616+ lAliases.insert("break");
3617+ Command<CommandLineHandler, TUPLE_STR_STR_INT, BreakpointSet>* lCommand =
3618+ createCommand<BreakpointSet>(TUPLE_STR_STR_INT(), "bset", lAliases, *this, "Set a breakpoint");
3619+
3620+ lCommand->addArgument(0, "s", createArgType<TUPLE_STR_STR_INT, std::string, 0>(TUPLE_STR_STR_INT()), "breakpoint state (optional, 'enabled' or 'disabled', default: enabled)", false);
3621+ lCommand->addArgument(1, "f", createArgType<TUPLE_STR_STR_INT, std::string, 1>(TUPLE_STR_STR_INT()), "name of the file where to stop", true);
3622+ lCommand->addArgument(2, "l", createArgType<TUPLE_STR_STR_INT, int, 2>(TUPLE_STR_STR_INT()), "line number", true);
3623+
3624+ *theCommandLine << lCommand;
3625+ }
3626+
3627+ // DBGP: breakpoint_get
3628+ {
3629+ Command<CommandLineHandler, TUPLE_INT, BreakpointGet>* lCommand =
3630+ createCommand<BreakpointGet>(TUPLE_INT(), "bget", *this, "Get information about a given breakpoint");
3631+
3632+ lCommand->addArgument(0, "d", createArgType<TUPLE_INT, int, 0>(TUPLE_INT()), "breakpoint ID", true);
3633+
3634+ *theCommandLine << lCommand;
3635+ }
3636+
3637+ // DBGP: breakpoint_remove
3638+ {
3639+ std::set<std::string> lAliases;
3640+ lAliases.insert("clear");
3641+ lAliases.insert("delete");
3642+ Command<CommandLineHandler, TUPLE_INT, BreakpointRemove>* lCommand =
3643+ createCommand<BreakpointRemove>(TUPLE_INT(), "bremove", lAliases, *this, "Delete a breakpoint");
3644+
3645+ lCommand->addArgument(0, "d", createArgType<TUPLE_INT, int, 0>(TUPLE_INT()), "breakpoint ID", true);
3646+
3647+ *theCommandLine << lCommand;
3648+ }
3649+
3650+ // DBGP: breakpoint_list
3651+ *theCommandLine << createCommand<BreakpointList>(TUPLE(), "blist", *this, "List all set breakpoints");
3652+
3653+ // DBGP: stack_depth
3654+ *theCommandLine << createCommand<StackDepth>(TUPLE(), "sdepth", *this, "Get the depth of the stack");
3655+
3656+ // DBGP: stack_get
3657+ {
3658+ Command<CommandLineHandler, TUPLE_INT, StackGet>* lCommand =
3659+ createCommand<StackGet>(TUPLE_INT(), "sget", *this, "Get information about one or all stack frames");
3660+
3661+ lCommand->addArgument(0, "d", createArgType<TUPLE_INT, int, 0>(TUPLE_INT()), "stack frame to show: 0 for current stack frame, N for the main module (optional, all frames are shown if not provided)", false);
3662+
3663+ *theCommandLine << lCommand;
3664+ }
3665+
3666+ // DBGP: context_names
3667+ *theCommandLine << createCommand<ContextNames>(tuple<>(), "cnames", *this, "Get the names of the avilable contexts");
3668+ // the DBGP -d arguments for this command is omitted since we always have/return: 0 - Local, 1 - Global
3669+
3670+ // DBGP: context_get
3671+ {
3672+ Command<CommandLineHandler, TUPLE_INT_INT, ContextGet>* lCommand =
3673+ createCommand<ContextGet>(TUPLE_INT_INT(), "cget", *this, "Get a context (list variables in this context)");
3674+
3675+ lCommand->addArgument(0, "d", createArgType<TUPLE_INT_INT, int, 0>(TUPLE_INT_INT()), "stack depth (optional, default: 0)", false);
3676+ lCommand->addArgument(0, "c", createArgType<TUPLE_INT_INT, int, 1>(TUPLE_INT_INT()), "context ID: 0 for Local, 1 for Global (optional, default: 0)", false);
3677+
3678+ *theCommandLine << lCommand;
3679+ }
3680+
3681+ // DBGP: source
3682+ {
3683+ std::set<std::string> lAliases;
3684+ lAliases.insert("list");
3685+ Command<CommandLineHandler, TUPLE_INT_INT_STR, Source>* lCommand =
3686+ createCommand<Source>(TUPLE_INT_INT_STR(), "source", lAliases, *this, "List source code");
3687+
3688+ lCommand->addArgument(0, "b", createArgType<TUPLE_INT_INT_STR, int, 0>(TUPLE_INT_INT_STR()), "begin line (optional, default: first line)", false);
3689+ lCommand->addArgument(1, "e", createArgType<TUPLE_INT_INT_STR, int, 1>(TUPLE_INT_INT_STR()), "end line (optional, default: last line)", false);
3690+ lCommand->addArgument(2, "f", createArgType<TUPLE_INT_INT_STR, std::string, 2>(TUPLE_INT_INT_STR()), "file URI (optional, default: the file in the top-most stack frame during execution, main module otherwise)", false);
3691+
3692+ *theCommandLine << lCommand;
3693+ }
3694+
3695+ // DBGP: eval
3696+ {
3697+ std::set<std::string> lAliases;
3698+ lAliases.insert("print");
3699+ Command<CommandLineHandler, TUPLE_STR, Eval>* lCommand =
3700+ createCommand<Eval>(TUPLE_STR(), "eval", lAliases, *this, "Evaluate an expression");
3701+
3702+ // TODO: this argument should not be here at all. Eval has the form: eval -i transaction_id -- {DATA}
3703+ // Eval should be called with a command like: eval 1 + 3
3704+ // - no need for an argument name
3705+ // - everything following the fist contiguous set of whitespaces are sent as string
3706+ lCommand->addArgument(0, "c", createArgType<TUPLE_STR, std::string, 0>(TUPLE_STR()), "expression to evaluate", true);
3707+
3708+ *theCommandLine << lCommand;
3709+ }
3710+
3711+ // DBGP: step_in
3712+ {
3713+ std::set<std::string> lAliases;
3714+ lAliases.insert("step");
3715+ lAliases.insert("s");
3716+ *theCommandLine << createCommand<StepIn>(TUPLE(), "in", lAliases, *this, "Step in");
3717+ }
3718+
3719+ // DBGP: step_out
3720+ {
3721+ std::set<std::string> lAliases;
3722+ lAliases.insert("finish");
3723+ *theCommandLine << createCommand<StepOut>(TUPLE(), "out", lAliases, *this, "Step out");
3724+ }
3725+
3726+ // DBGP: step_over
3727+ {
3728+ std::set<std::string> lAliases;
3729+ lAliases.insert("next");
3730+ lAliases.insert("n");
3731+ *theCommandLine << createCommand<StepOver>(TUPLE(), "over", lAliases, *this, "Step over");
3732+ }
3733+}
3734+
3735+} // namespace zorba
3736+} // namespace debugger
3737
3738=== modified file 'bin/debugger/command_line_handler.h'
3739--- bin/debug_client/command_line_handler.h 2011-07-01 01:53:24 +0000
3740+++ bin/debugger/command_line_handler.h 2012-05-02 10:44:31 +0000
3741@@ -14,46 +14,71 @@
3742 * limitations under the License.
3743 */
3744 #pragma once
3745+#ifndef ZORBA_DEBUGGER_COMMAND_LINE_HANDLER_H
3746+#define ZORBA_DEBUGGER_COMMAND_LINE_HANDLER_H
3747
3748 #include <set>
3749 #include <cassert>
3750+
3751 #include <zorba/debugger_client.h>
3752-#include "debug_command.h"
3753+
3754+#include "command.h"
3755 #include "event_handler.h"
3756
3757-namespace zorba { namespace debugclient {
3758-
3759+
3760+namespace zorba { namespace debugger {
3761+
3762+ class CommandPrompt;
3763+
3764 enum Commands {
3765 Status,
3766+ Variables,
3767+ Quit,
3768 Run,
3769+ Stop,
3770 BreakpointSet,
3771 BreakpointGet,
3772- BreakpointDel,
3773+ BreakpointRemove,
3774 BreakpointList,
3775 StackDepth,
3776 StackGet,
3777 ContextNames,
3778 ContextGet,
3779+ Source,
3780 Eval,
3781- Quit
3782+ StepIn,
3783+ StepOut,
3784+ StepOver
3785 };
3786
3787- class CommandLineHandler {
3788+class CommandLineHandler
3789+{
3790 private:
3791+
3792 typedef std::pair<bool, std::string> bstring;
3793 typedef std::pair<bool, int> bint;
3794+
3795 public:
3796- CommandLineHandler(unsigned short port,
3797- LockFreeConsumer<std::size_t>& aConsumer,
3798- LockFreeConsumer<bool>& aContinueQueue,
3799- EventHandler& aHandler,
3800- CommandLine& aCommandLine);
3801+
3802+ CommandLineHandler(
3803+ unsigned short port,
3804+ LockFreeConsumer<std::size_t>& aConsumer,
3805+ LockFreeConsumer<bool>& aContinueQueue,
3806+ EventHandler* aHandler,
3807+ CommandPrompt* aCommandPrompt);
3808+
3809 ~CommandLineHandler();
3810+
3811 public:
3812 void execute();
3813+
3814 public: // Handlers
3815+
3816 template<int>
3817- void handle(ZORBA_TR1_NS::tuple<>& aTuple) { assert(false); }
3818+ void handle(ZORBA_TR1_NS::tuple<>& aTuple)
3819+ {
3820+ assert(false);
3821+ }
3822
3823 template<int>
3824 void handle(ZORBA_TR1_NS::tuple<bstring, bstring, bint>& t)
3825@@ -62,63 +87,96 @@
3826 }
3827
3828 template<int>
3829+ void handle(ZORBA_TR1_NS::tuple<bint, bint, bstring>& t)
3830+ {
3831+ assert(false);
3832+ }
3833+
3834+ template<int>
3835 void handle(ZORBA_TR1_NS::tuple<bint>& aTuple)
3836 {
3837 assert(false);
3838 }
3839
3840 template<int>
3841+ void handle(ZORBA_TR1_NS::tuple<bint, bint>& aTuple)
3842+ {
3843+ assert(false);
3844+ }
3845+
3846+ template<int>
3847 void handle(ZORBA_TR1_NS::tuple<bstring>& aTuple)
3848 {
3849 assert(false);
3850 }
3851+
3852 private:
3853- LockFreeConsumer<std::size_t>& theConsumer;
3854- LockFreeConsumer<bool>& theContinueQueue;
3855- DebuggerClient* theClient;
3856- CommandLine& theCommandLine;
3857- bool theQuit;
3858- bool theContinue;
3859- std::size_t theWaitFor;
3860+ LockFreeConsumer<std::size_t>& theConsumer;
3861+ LockFreeConsumer<bool>& theContinueQueue;
3862+ DebuggerClient* theClient;
3863+ CommandPrompt* theCommandLine;
3864+ bool theQuit;
3865+ bool theTerminated;
3866+ bool theContinue;
3867+ std::size_t theWaitFor;
3868+
3869 private:
3870 void getNextId(std::set<std::size_t>& aIdList);
3871 void addCommands();
3872- };
3873-
3874- template<>
3875- void CommandLineHandler::handle<Status> (ZORBA_TR1_NS::tuple<>& t);
3876-
3877- template<>
3878- void CommandLineHandler::handle<Quit> (ZORBA_TR1_NS::tuple<>& t);
3879-
3880- template<>
3881- void CommandLineHandler::handle<Run> (ZORBA_TR1_NS::tuple<> &t);
3882-
3883- template<>
3884- void CommandLineHandler::handle<StackDepth> (ZORBA_TR1_NS::tuple<>& t);
3885-
3886- template<>
3887- void CommandLineHandler::handle<BreakpointList> (ZORBA_TR1_NS::tuple<>& aTuple);
3888-
3889- template<>
3890- void CommandLineHandler::handle<BreakpointSet> (ZORBA_TR1_NS::tuple<bstring, bstring, bint> &t);
3891-
3892- template<>
3893- void CommandLineHandler::handle<BreakpointGet> (ZORBA_TR1_NS::tuple<bint>& aTuple);
3894-
3895- template<>
3896- void CommandLineHandler::handle<BreakpointDel>(ZORBA_TR1_NS::tuple<bint> &aTuple);
3897-
3898- template<>
3899- void CommandLineHandler::handle<StackGet> (ZORBA_TR1_NS::tuple<bint>& aTuple);
3900-
3901- template<>
3902- void CommandLineHandler::handle<ContextNames>(ZORBA_TR1_NS::tuple<> &aTuple);
3903-
3904- template<>
3905- void CommandLineHandler::handle<ContextGet>(ZORBA_TR1_NS::tuple<bint> &aTuple);
3906-
3907- template<>
3908- void CommandLineHandler::handle<Eval>(ZORBA_TR1_NS::tuple<bstring>& aTuple);
3909-
3910-}} // close namespaces zorba::debugclient
3911+};
3912+
3913+template<>
3914+void CommandLineHandler::handle<Status> (ZORBA_TR1_NS::tuple<>& t);
3915+
3916+template<>
3917+void CommandLineHandler::handle<Quit> (ZORBA_TR1_NS::tuple<>& t);
3918+
3919+template<>
3920+void CommandLineHandler::handle<Run> (ZORBA_TR1_NS::tuple<> &t);
3921+
3922+template<>
3923+void CommandLineHandler::handle<Stop> (ZORBA_TR1_NS::tuple<> &t);
3924+
3925+template<>
3926+void CommandLineHandler::handle<StackDepth> (ZORBA_TR1_NS::tuple<>& t);
3927+
3928+template<>
3929+void CommandLineHandler::handle<BreakpointList> (ZORBA_TR1_NS::tuple<>& aTuple);
3930+
3931+template<>
3932+void CommandLineHandler::handle<BreakpointSet> (ZORBA_TR1_NS::tuple<bstring, bstring, bint> &t);
3933+
3934+template<>
3935+void CommandLineHandler::handle<BreakpointGet> (ZORBA_TR1_NS::tuple<bint>& aTuple);
3936+
3937+template<>
3938+void CommandLineHandler::handle<BreakpointRemove>(ZORBA_TR1_NS::tuple<bint> &aTuple);
3939+
3940+template<>
3941+void CommandLineHandler::handle<StackGet> (ZORBA_TR1_NS::tuple<bint>& aTuple);
3942+
3943+template<>
3944+void CommandLineHandler::handle<ContextNames>(ZORBA_TR1_NS::tuple<> &aTuple);
3945+
3946+template<>
3947+void CommandLineHandler::handle<ContextGet>(ZORBA_TR1_NS::tuple<bint, bint> &aTuple);
3948+
3949+template<>
3950+void CommandLineHandler::handle<Source>(ZORBA_TR1_NS::tuple<bint, bint, bstring> &aTuple);
3951+
3952+template<>
3953+void CommandLineHandler::handle<Eval>(ZORBA_TR1_NS::tuple<bstring>& aTuple);
3954+
3955+template<>
3956+void CommandLineHandler::handle<StepIn> (ZORBA_TR1_NS::tuple<> &t);
3957+
3958+template<>
3959+void CommandLineHandler::handle<StepOut> (ZORBA_TR1_NS::tuple<> &t);
3960+
3961+template<>
3962+void CommandLineHandler::handle<StepOver> (ZORBA_TR1_NS::tuple<> &t);
3963+
3964+} // namespace zorba
3965+} // namespace debugger
3966+
3967+#endif // ZORBA_DEBUGGER_COMMAND_LINE_HANDLER_H
3968
3969=== added file 'bin/debugger/command_prompt.cpp'
3970--- bin/debugger/command_prompt.cpp 1970-01-01 00:00:00 +0000
3971+++ bin/debugger/command_prompt.cpp 2012-05-02 10:44:31 +0000
3972@@ -0,0 +1,286 @@
3973+/*
3974+ * Copyright 2006-2008 The FLWOR Foundation.
3975+ *
3976+ * Licensed under the Apache License, Version 2.0 (the "License");
3977+ * you may not use this file except in compliance with the License.
3978+ * You may obtain a copy of the License at
3979+ *
3980+ * http://www.apache.org/licenses/LICENSE-2.0
3981+ *
3982+ * Unless required by applicable law or agreed to in writing, software
3983+ * distributed under the License is distributed on an "AS IS" BASIS,
3984+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3985+ * See the License for the specific language governing permissions and
3986+ * limitations under the License.
3987+ */
3988+#include "command_prompt.h"
3989+
3990+#include <string>
3991+#include <vector>
3992+#include <map>
3993+#include <iostream>
3994+
3995+#include "command.h"
3996+
3997+
3998+namespace zorba { namespace debugger {
3999+
4000+#ifdef ZORBA_HAVE_LIBEDIT_H
4001+const char*
4002+prompt(EditLine* aEl) {
4003+ return "(xqdb) ";
4004+}
4005+#endif
4006+
4007+CommandPrompt::CommandPrompt()
4008+{
4009+#ifdef ZORBA_HAVE_LIBEDIT_H
4010+ theEditLine = el_init("xqdb", stdin, stdout, stderr);
4011+ theHistory = history_init();
4012+ HistEvent lHistoryEvent;
4013+ history(theHistory, &lHistoryEvent, H_SETSIZE, 100);
4014+
4015+ el_set(theEditLine, EL_PROMPT, prompt);
4016+
4017+ el_set(theEditLine, EL_HIST, history, theHistory);
4018+ el_set(theEditLine, EL_EDITOR, "emacs");
4019+#endif
4020+}
4021+
4022+CommandPrompt::~CommandPrompt()
4023+{
4024+#ifdef ZORBA_HAVE_LIBEDIT_H
4025+ history_end(theHistory);
4026+ el_end(theEditLine);
4027+#endif
4028+
4029+ std::map<std::string, UntypedCommand*>::iterator lIter;
4030+ for (lIter = theCommands.begin(); lIter != theCommands.end(); ++lIter) {
4031+ delete lIter->second;
4032+ }
4033+}
4034+
4035+void
4036+CommandPrompt::printHelp(UntypedCommand* aCommand)
4037+{
4038+ // if no command is provided, print all the available commands
4039+ if (!aCommand) {
4040+ std::cout << "Available commands:" << std::endl;
4041+
4042+ // print the names of all commands
4043+ std::map<std::string, UntypedCommand*>::iterator lIter = theCommands.begin();
4044+ while (lIter != theCommands.end()) {
4045+ std::cout << " " << (*lIter).first;
4046+ std::set<std::string> lAliases = (*lIter).second->getAliases();
4047+ std::set<std::string>::const_iterator lAliasIter = lAliases.begin();
4048+ while (lAliasIter != lAliases.end()) {
4049+ std::cout << ", " << *lAliasIter;
4050+ lAliasIter++;
4051+ }
4052+ std::cout << std::endl;
4053+ lIter++;
4054+ }
4055+
4056+ // some hints for detailed help
4057+ std::cout << std::endl;
4058+ std::cout << "Type help <command> to get more information about one command." << std::endl;
4059+ std::cout << std::endl;
4060+ } else {
4061+ // ok, so we have a command; then print the help
4062+ aCommand->printHelp();
4063+ }
4064+}
4065+
4066+void
4067+CommandPrompt::execute()
4068+{
4069+ for (;;) {
4070+#ifdef ZORBA_HAVE_LIBEDIT_H
4071+ const char* lBuf;
4072+ int lCharsRead = -1;
4073+ lBuf = el_gets(theEditLine, &lCharsRead);
4074+ std::string lCommandLine(lBuf, lCharsRead - 1);
4075+#else
4076+ bool lWithOutput = true;
4077+ if (lWithOutput) {
4078+ std::cout << "(xqdb) ";
4079+ }
4080+ lWithOutput = true;
4081+ std::string lCommandLine;
4082+ std::getline(std::cin, lCommandLine);
4083+ if (std::cin.fail()) {
4084+ lWithOutput = false;
4085+ std::cin.clear();
4086+ continue;
4087+ }
4088+#endif
4089+
4090+ std::vector<std::string> lArgs;
4091+
4092+ // split the command into arguments
4093+ parseLine(lCommandLine, lArgs);
4094+ std::string::size_type lSize = lArgs.size();
4095+
4096+ // empty command? do nothing!
4097+ if (lSize == 0) {
4098+ lArgs = theLastArgs;
4099+ if (lArgs.size() == 0) {
4100+ continue;
4101+ }
4102+ }
4103+#ifdef ZORBA_HAVE_LIBEDIT_H
4104+ else {
4105+ HistEvent lHistoryEvent;
4106+ history(theHistory, &lHistoryEvent, H_ENTER, lCommandLine.c_str());
4107+ }
4108+#endif
4109+ theLastArgs = lArgs;
4110+
4111+ UntypedCommand* lCommand = NULL;
4112+
4113+ // help is not a command but a hook here
4114+ if (lArgs.at(0) == "h" || lArgs.at(0) == "help") {
4115+ std::string lCmd = "";
4116+
4117+ // if the user needs the help for a specific command
4118+ if (lSize > 1) {
4119+ // do nothing if we don't have a command starting with this prefix?
4120+ // findCommand will print the appropriate errors
4121+ if (!findCommand(lArgs[1], lCommand)) {
4122+ continue;
4123+ }
4124+ }
4125+ printHelp(lCommand);
4126+ continue;
4127+ }
4128+ if (findCommand(lArgs[0], lCommand) && lCommand->execute(lArgs)) {
4129+ return;
4130+ }
4131+ continue;
4132+ }
4133+}
4134+
4135+CommandPrompt&
4136+CommandPrompt::operator<<(UntypedCommand *aCommand)
4137+{
4138+ theCommands.insert(std::make_pair(aCommand->getName(), aCommand));
4139+ return *this;
4140+}
4141+
4142+bool
4143+CommandPrompt::findCommand(const std::string& aPrefix, UntypedCommand*& aCommand)
4144+{
4145+ std::vector<UntypedCommand*> lFoundCommands;
4146+
4147+ std::map<std::string, UntypedCommand*>::iterator lIter = theCommands.begin();
4148+ while (lIter != theCommands.end()) {
4149+ // if a command name is equal with the prefix, this is the command we want
4150+ if ((*lIter).first == aPrefix) {
4151+ aCommand = (*lIter).second;
4152+ return true;
4153+ }
4154+
4155+ bool lIsCandidate = false;
4156+
4157+ // add this command to candidate commands if the prefix matches
4158+ if ((*lIter).first.find(aPrefix) == 0) {
4159+ lFoundCommands.push_back((*lIter).second);
4160+ lIsCandidate = true;
4161+ }
4162+
4163+ // now process the aliases
4164+ std::set<std::string> lAliases = (*lIter).second->getAliases();
4165+ std::set<std::string>::const_iterator lAliasIter = lAliases.begin();
4166+ while (lAliasIter != lAliases.end()) {
4167+ // if a command alias is equal with the prefix, this is the command we want
4168+ if (*lAliasIter == aPrefix) {
4169+ aCommand = (*lIter).second;
4170+ return true;
4171+ }
4172+
4173+ // add this command to candidate commands if the prefix matches one alias
4174+ // and if the command is not already added
4175+ if (!lIsCandidate && (*lAliasIter).find(aPrefix) == 0) {
4176+ lFoundCommands.push_back((*lIter).second);
4177+ break;
4178+ }
4179+ lAliasIter++;
4180+ }
4181+
4182+ lIter++;
4183+ }
4184+
4185+ if (lFoundCommands.empty()) {
4186+ std::cout << "Command not found: " << aPrefix << std::endl;
4187+ return false;
4188+ }
4189+
4190+ if (lFoundCommands.size() > 1) {
4191+ std::cout << "Ambigous command: " << aPrefix << std::endl;
4192+ // show all possible commands that start with this prefix
4193+ for (std::string::size_type i = 0; i < lFoundCommands.size(); i++) {
4194+ UntypedCommand* lCommand = lFoundCommands.at(i);
4195+
4196+ // commands
4197+ if (lCommand->getName().find(aPrefix) == 0) {
4198+ std::cout << " " << lCommand->getName() << std::endl;
4199+ }
4200+
4201+ // and aliases
4202+ std::set<std::string> lAliases = lCommand->getAliases();
4203+ std::set<std::string>::const_iterator lAliasIter = lAliases.begin();
4204+ while (lAliasIter != lAliases.end()) {
4205+ if ((*lAliasIter).find(aPrefix) == 0) {
4206+ std::cout << " " << *lAliasIter << std::endl;
4207+ }
4208+ lAliasIter++;
4209+ }
4210+ }
4211+ return false;
4212+ }
4213+
4214+ aCommand = lFoundCommands[0];
4215+ return true;
4216+}
4217+
4218+void
4219+CommandPrompt::parseLine(const std::string& aLine, std::vector<std::string>& aVector)
4220+{
4221+ std::string::size_type lBefore = 0;
4222+ std::string::size_type lPos = aLine.find_first_of(" \t", 0);
4223+
4224+ while (lPos != aLine.npos) {
4225+ std::string lSub = aLine.substr(lBefore, lPos - lBefore);
4226+
4227+ // if two consecutive spaces, you get an empty string here
4228+ if (lSub != "") {
4229+ if (lSub[0] == '"') {
4230+ std::string::size_type lBeforeCopy = lBefore;
4231+ do {
4232+ lBeforeCopy = aLine.find("\"", lBeforeCopy + 1);
4233+ } while (lPos != aLine.npos && aLine.size() > lPos + 1 && aLine[lPos + 1] == '\\');
4234+ lPos = lBeforeCopy;
4235+ lSub = aLine.substr(lBefore + 1, lPos - lBefore - 1);
4236+ }
4237+ aVector.push_back(lSub);
4238+ }
4239+
4240+ lBefore = lPos + 1;
4241+ lPos = aLine.find_first_of(" \t", lBefore);
4242+ }
4243+ std::string lSub = aLine.substr(lBefore);
4244+
4245+ // catching the case when the command ends with a space
4246+ if (lSub == "") {
4247+ return;
4248+ }
4249+
4250+ if (lSub[0] == '"') {
4251+ lPos = aLine.find("\"", lBefore + 1);
4252+ lSub = aLine.substr(lBefore + 1, lPos - lBefore - 1);
4253+ }
4254+ aVector.push_back(lSub);
4255+}
4256+
4257+} // namespace zorba
4258+} // namespace debugger
4259
4260=== added file 'bin/debugger/command_prompt.h'
4261--- bin/debugger/command_prompt.h 1970-01-01 00:00:00 +0000
4262+++ bin/debugger/command_prompt.h 2012-05-02 10:44:31 +0000
4263@@ -0,0 +1,72 @@
4264+/*
4265+ * Copyright 2006-2008 The FLWOR Foundation.
4266+ *
4267+ * Licensed under the Apache License, Version 2.0 (the "License");
4268+ * you may not use this file except in compliance with the License.
4269+ * You may obtain a copy of the License at
4270+ *
4271+ * http://www.apache.org/licenses/LICENSE-2.0
4272+ *
4273+ * Unless required by applicable law or agreed to in writing, software
4274+ * distributed under the License is distributed on an "AS IS" BASIS,
4275+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4276+ * See the License for the specific language governing permissions and
4277+ * limitations under the License.
4278+ */
4279+#pragma once
4280+#ifndef ZORBA_DEBUGGER_COMMAND_PROMPT_H
4281+#define ZORBA_DEBUGGER_COMMAND_PROMPT_H
4282+
4283+#include <string>
4284+#include <map>
4285+#include <vector>
4286+
4287+#include "config.h"
4288+
4289+#ifdef ZORBA_HAVE_LIBEDIT_H
4290+# include <histedit.h>
4291+#endif
4292+
4293+
4294+namespace zorba { namespace debugger {
4295+
4296+class UntypedCommand;
4297+
4298+class CommandPrompt
4299+{
4300+ public:
4301+ CommandPrompt();
4302+ ~CommandPrompt();
4303+
4304+ public:
4305+
4306+ void execute();
4307+
4308+ CommandPrompt& operator<< (UntypedCommand* command);
4309+
4310+ private:
4311+
4312+ void
4313+ printHelp(UntypedCommand* command);
4314+
4315+ bool
4316+ findCommand(const std::string& prefix, UntypedCommand*& command);
4317+
4318+ void
4319+ parseLine(const std::string& line, std::vector<std::string>& vector);
4320+
4321+ private:
4322+ std::map<std::string, UntypedCommand*> theCommands;
4323+ std::vector<std::string> theLastArgs;
4324+
4325+#ifdef ZORBA_HAVE_LIBEDIT_H
4326+ EditLine* theEditLine;
4327+ History* theHistory;
4328+#endif
4329+};
4330+
4331+
4332+} // namespace zorba
4333+} // namespace debugger
4334+
4335+#endif // ZORBA_DEBUGGER_COMMAND_PROMPT_H
4336
4337=== added file 'bin/debugger/config.h.cmake'
4338--- bin/debugger/config.h.cmake 1970-01-01 00:00:00 +0000
4339+++ bin/debugger/config.h.cmake 2012-05-02 10:44:31 +0000
4340@@ -0,0 +1,24 @@
4341+/*
4342+ * Copyright 2006-2008 The FLWOR Foundation.
4343+ *
4344+ * Licensed under the Apache License, Version 2.0 (the "License");
4345+ * you may not use this file except in compliance with the License.
4346+ * You may obtain a copy of the License at
4347+ *
4348+ * http://www.apache.org/licenses/LICENSE-2.0
4349+ *
4350+ * Unless required by applicable law or agreed to in writing, software
4351+ * distributed under the License is distributed on an "AS IS" BASIS,
4352+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4353+ * See the License for the specific language governing permissions and
4354+ * limitations under the License.
4355+ */
4356+
4357+// This header is configured by Zorba's build process -- DO NOT EDIT!
4358+
4359+#ifndef ZORBA_DEBUGGER_CONFIG_H
4360+#define ZORBA_DEBUGGER_CONFIG_H
4361+
4362+#cmakedefine ZORBA_HAVE_LIBEDIT_H
4363+
4364+#endif /* ZORBA_DEBUGGER_CONFIG_H */
4365
4366=== modified file 'bin/debugger/event_handler.cpp'
4367--- bin/debug_client/event_handler.cpp 2011-07-01 01:53:24 +0000
4368+++ bin/debugger/event_handler.cpp 2012-05-02 10:44:31 +0000
4369@@ -13,88 +13,93 @@
4370 * See the License for the specific language governing permissions and
4371 * limitations under the License.
4372 */
4373+
4374+#include "event_handler.h"
4375+
4376+#include <sstream>
4377+
4378 #include <zorba/zorba.h>
4379 #include <zorba/store_manager.h>
4380 #include <zorba/iterator.h>
4381-#include <sstream>
4382-#include "debug_client/event_handler.h"
4383
4384-namespace zorba { namespace debugclient {
4385+namespace zorba { namespace debugger {
4386
4387- EventHandler::EventHandler(LockFreeProducer<std::size_t>& aQueue, LockFreeProducer<bool>& aContProducer)
4388+EventHandler::EventHandler(LockFreeProducer<std::size_t>& aQueue, LockFreeProducer<bool>& aContProducer)
4389 : theIdQueue(aQueue), theContinueProducer(aContProducer),
4390 theStore(StoreManager::getStore()),
4391 theZorbaInstance(Zorba::getInstance(theStore)),
4392 theStaticContext(theZorbaInstance->createStaticContext())
4393-
4394- {
4395- try {
4396- Zorba_CompilerHints_t lHints;
4397- lHints.opt_level = ZORBA_OPT_LEVEL_O1;
4398- std::auto_ptr<std::istream> stream(getCurrentDirectory());
4399- zorba::String query;
4400- char buffer[1024];
4401- std::string::size_type s;
4402- while ((s = stream->readsome(buffer, 1024))) {
4403- query.append(std::string(buffer, s));
4404- }
4405- theStaticContext->loadProlog(query, lHints);
4406- } catch (zorba::ZorbaException& e) {
4407- std::cerr << "Exception: I was not able to load the query file:" << std::endl;
4408- std::cerr << e.what() << std::endl;
4409- throw;
4410- }
4411- }
4412-
4413- EventHandler::~EventHandler()
4414- {
4415- theStaticContext = 0;
4416- theZorbaInstance->shutdown();
4417- StoreManager::shutdownStore(theStore);
4418- }
4419-
4420- void EventHandler::parseMessage(const std::string &aMessage)
4421- {
4422- try {
4423- zorba::String queryString = "local:main(";
4424- queryString += aMessage + ")";
4425- XQuery_t query = theZorbaInstance->compileQuery(queryString, theStaticContext);
4426- Iterator_t lIter = query->iterator();
4427- Item item;
4428- lIter->open();
4429- bool doContinue = false;
4430- lIter->next(item);
4431- {
4432- const std::string& continueString = item.getStringValue().str();
4433- if (continueString == "true") {
4434- doContinue = true;
4435- } else if (continueString == "false") {
4436- doContinue = false;
4437- } else {
4438- std::stringstream stream(continueString);
4439- stream >> doContinue;
4440- }
4441- }
4442- lIter->next(item);
4443- std::size_t lId;
4444- {
4445- std::stringstream stream(item.getStringValue().c_str());
4446- stream >> lId;
4447- }
4448- lIter->next(item);
4449- std::cout << item.getStringValue() << std::endl;
4450- theContinueProducer.produce(doContinue);
4451- theIdQueue.produce(lId);
4452- } catch (ZorbaException& e) {
4453- std::cerr << "FATAL: could not execute query: " << std::endl;
4454- std::cerr << e << std::endl;
4455- std::cerr << "This is a bug, please report to zorba-users@lists.sourceforge.net" << std::endl;
4456- theContinueProducer.produce(false);
4457- }
4458- }
4459-
4460- void EventHandler::error(unsigned int errcode, const std::string &msg)
4461- {
4462- std::cerr << "Error " << errcode << ": " << msg << std::endl;
4463- }
4464-}}
4465+{
4466+}
4467+
4468+EventHandler::~EventHandler()
4469+{
4470+ theStaticContext = 0;
4471+ theZorbaInstance->shutdown();
4472+ StoreManager::shutdownStore(theStore);
4473+}
4474+
4475+void
4476+EventHandler::init()
4477+{
4478+ try {
4479+ Zorba_CompilerHints_t lHints;
4480+ lHints.opt_level = ZORBA_OPT_LEVEL_O1;
4481+ zorba::String lProlog("import module namespace dmh = 'http://www.zorba-xquery.com/modules/debugger/dbgp-message-handler';");
4482+ theStaticContext->loadProlog(lProlog, lHints);
4483+ } catch (zorba::ZorbaException& e) {
4484+ std::cerr << "Exception: I was not able to load the query file:" << std::endl;
4485+ std::cerr << e.what() << std::endl;
4486+ throw;
4487+ }
4488+}
4489+
4490+void
4491+EventHandler::parseMessage(const std::string &aMessage)
4492+{
4493+ try {
4494+#ifndef NDEBUG
4495+ // uncomment this to see the raw messages received by the event handler
4496+ //std::cout << "Processing response: " << aMessage << std::endl;
4497+#endif
4498+ // the query to process the response
4499+ std::stringstream lQueryStream;
4500+ lQueryStream << "dmh:process(" << aMessage << ")";
4501+ XQuery_t lQuery = theZorbaInstance->compileQuery(lQueryStream.str(), theStaticContext);
4502+
4503+ // get the query result sequrence:
4504+ // 1. a message
4505+ Iterator_t lIter = lQuery->iterator();
4506+ Item lItem;
4507+ lIter->open();
4508+ lIter->next(lItem);
4509+ std::size_t lId;
4510+ std::stringstream lStream(lItem.getStringValue().c_str());
4511+ lStream >> lId;
4512+
4513+ // 2. an "idle" flag (to disable quit confirmation)
4514+ bool lCanQuit = false;
4515+ if (lIter->next(lItem)) {
4516+ String lMessage = lItem.getStringValue();
4517+ lCanQuit = lMessage == "idle";
4518+ std::cout << std::endl << lItem.getStringValue() << std::endl;
4519+ }
4520+ theContinueProducer.produce(lCanQuit);
4521+
4522+ // go and solve the event with this id
4523+ theIdQueue.produce(lId);
4524+ } catch (ZorbaException& e) {
4525+ std::cerr << "FATAL: could not execute query: " << std::endl;
4526+ std::cerr << e << std::endl;
4527+ std::cerr << "This is a bug, please report it at http://bugs.launchpad.net/zorba" << std::endl;
4528+ }
4529+}
4530+
4531+void
4532+EventHandler::error(unsigned int errcode, const std::string &msg)
4533+{
4534+ std::cerr << "Error " << errcode << ": " << msg << std::endl;
4535+}
4536+
4537+} // namespace zorba
4538+} // namespace debugger
4539
4540=== modified file 'bin/debugger/event_handler.h'
4541--- bin/debug_client/event_handler.h 2011-07-01 01:53:24 +0000
4542+++ bin/debugger/event_handler.h 2012-05-02 10:44:31 +0000
4543@@ -14,33 +14,46 @@
4544 * limitations under the License.
4545 */
4546 #pragma once
4547+#ifndef ZORBA_DEBUGGER_EVENT_HANDLER_H
4548+#define ZORBA_DEBUGGER_EVENT_HANDLER_H
4549+
4550 #include <string>
4551 #include <iostream>
4552+
4553 #include <zorba/debugger_event_handler.h>
4554 #include <zorba/static_context.h>
4555+
4556 #include "lock_free_queue.h"
4557
4558-namespace zorba {
4559- class Zorba;
4560-}
4561-
4562-namespace zorba { namespace debugclient {
4563-
4564- class EventHandler : public zorba::DebuggerEventHandler
4565- {
4566+
4567+namespace zorba { namespace debugger {
4568+
4569+class EventHandler : public zorba::DebuggerEventHandler
4570+{
4571 public:
4572- EventHandler(LockFreeProducer<std::size_t>& aQueue, LockFreeProducer<bool>& aContQueue);
4573+ EventHandler(
4574+ LockFreeProducer<std::size_t>& aQueue,
4575+ LockFreeProducer<bool>& aContQueue);
4576+
4577 ~EventHandler();
4578+
4579 public:
4580 virtual void parseMessage(const std::string& aMessage);
4581+
4582 virtual void error(unsigned int errcode, const std::string& msg);
4583+
4584+ virtual void init();
4585+
4586 private:
4587- static std::istream* getCurrentDirectory();
4588 LockFreeProducer<std::size_t>& theIdQueue;
4589 LockFreeProducer<bool>& theContinueProducer;
4590 void* theStore;
4591 Zorba* theZorbaInstance;
4592 StaticContext_t theStaticContext;
4593- };
4594+
4595+};
4596
4597-}} // end of namespace zorba::debugclient
4598+} // namespace zorba
4599+} // namespace debugger
4600+
4601+#endif // ZORBA_DEBUGGER_EVENT_HANDLER_H
4602
4603=== modified file 'bin/debugger/lock_free_queue.h'
4604--- bin/debug_client/lock_free_queue.h 2011-07-01 01:53:24 +0000
4605+++ bin/debugger/lock_free_queue.h 2012-05-02 10:44:31 +0000
4606@@ -14,10 +14,14 @@
4607 * limitations under the License.
4608 */
4609 #pragma once
4610+#ifndef ZORBA_DEBUGGER_LOCK_FREE_QUEUE_H
4611+#define ZORBA_DEBUGGER_LOCK_FREE_QUEUE_H
4612+
4613 #include <iostream>
4614 #include <list>
4615
4616-namespace zorba { namespace debugclient {
4617+
4618+namespace zorba { namespace debugger {
4619
4620 template<typename T>
4621 class LockFreeProducer
4622@@ -80,4 +84,8 @@
4623 }
4624 return false;
4625 }
4626-}} // namespace zorba::debugclient
4627+
4628+} // namespace zorba
4629+} // namespace debugger
4630+
4631+#endif // ZORBA_DEBUGGER_LOCK_FREE_QUEUE_H
4632
4633=== modified file 'bin/debugger/main.cpp'
4634--- bin/debug_client/main.cpp 2011-07-01 01:53:24 +0000
4635+++ bin/debugger/main.cpp 2012-05-02 10:44:31 +0000
4636@@ -13,12 +13,288 @@
4637 * See the License for the specific language governing permissions and
4638 * limitations under the License.
4639 */
4640+
4641+#ifdef WIN32
4642+# include <windows.h>
4643+# include <string.h>
4644+# include <strsafe.h>
4645+#else
4646+#include <unistd.h>
4647+#endif
4648+
4649+#include <vector>
4650+
4651 #include <zorba/config.h>
4652-#include "debug_command.h"
4653-#include "command_line_handler.h"
4654+
4655+#include "xqdb_client.h"
4656+#include "process_listener.h"
4657+
4658
4659 using namespace zorba;
4660-using namespace zorba::debugclient;
4661+using namespace zorba::debugger;
4662+
4663+
4664+std::auto_ptr<XqdbClient> theClient;
4665+
4666+// this will make sure the xqdb process will not quit when Ctrl-C is pressed
4667+#ifdef WIN32
4668+BOOL WINAPI
4669+ctrlC_Handler(DWORD aCtrlType)
4670+{
4671+ if (CTRL_C_EVENT == aCtrlType) {
4672+ return true;
4673+ }
4674+ return false;
4675+}
4676+#else
4677+void
4678+ctrlC_Handler(int lParam)
4679+{
4680+ // an empty sugnal handler on Linux should do the job
4681+}
4682+#endif
4683+
4684+
4685+// this handler function is passed the the zorba process listener and will
4686+// the client if the zorba process terminates
4687+void
4688+onExitProcess(ExitCode aExitCode) {
4689+ std::cout << std::endl << "Terminating debugger client." << std::endl;
4690+
4691+#ifndef WIN32
4692+ XqdbClient* lClient = theClient.release();
4693+ if (lClient) {
4694+ delete lClient;
4695+ }
4696+#endif
4697+
4698+ exit(aExitCode);
4699+}
4700+
4701+
4702+int
4703+startZorba(std::string& aExec, std::vector<std::string>& aArgs, std::auto_ptr<ProcessListener>& aProcessListener)
4704+{
4705+#ifdef WIN32
4706+ // **************************
4707+ // start a process on Windows
4708+
4709+ DWORD iReturnVal = 0;
4710+
4711+ std::wstring lExec;
4712+ std::wstring lArgs;
4713+
4714+ lExec.assign(aExec.begin(), aExec.end());
4715+
4716+ // the executable must be the first in the list of arguments
4717+ lArgs.append(L"\"");
4718+ lArgs.append(lExec);
4719+ lArgs.append(L"\"");
4720+
4721+ for (std::vector<std::string>::size_type j = 0; j < aArgs.size(); j++) {
4722+ std::string lArg(aArgs.at(j));
4723+ std::wstring lArgW;
4724+ lArgW.assign(lArg.begin(), lArg.end());
4725+ lArgs.append(L" ");
4726+ lArgs.append(lArgW);
4727+ }
4728+
4729+ // CreateProcessW can modify Parameters thus we allocate needed memory
4730+ wchar_t * pwszParam = new wchar_t[lArgs.size() + 1];
4731+ if (pwszParam == 0) {
4732+ return 1;
4733+ }
4734+ const wchar_t* pchrTemp = lArgs.c_str();
4735+ wcscpy_s(pwszParam, lArgs.size() + 1, pchrTemp);
4736+
4737+ // CreateProcess API initialization
4738+ STARTUPINFOW siStartupInfo;
4739+ PROCESS_INFORMATION piProcessInfo;
4740+ memset(&siStartupInfo, 0, sizeof(siStartupInfo));
4741+ memset(&piProcessInfo, 0, sizeof(piProcessInfo));
4742+ siStartupInfo.cb = sizeof(siStartupInfo);
4743+
4744+ BOOL lResult = CreateProcessW(
4745+ const_cast<LPCWSTR>(lExec.c_str()),
4746+ pwszParam, 0, 0, false,
4747+ CREATE_DEFAULT_ERROR_MODE, 0, 0,
4748+ &siStartupInfo, &piProcessInfo);
4749+
4750+ if (lResult) {
4751+ // Watch the process
4752+ aProcessListener.reset(new ProcessListener(piProcessInfo.dwProcessId, &onExitProcess));
4753+ }
4754+ else {
4755+ // CreateProcess failed
4756+ iReturnVal = GetLastError();
4757+ LPVOID lpMsgBuf;
4758+ LPVOID lpDisplayBuf;
4759+
4760+ FormatMessage(
4761+ FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
4762+ NULL,
4763+ iReturnVal,
4764+ MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
4765+ (LPTSTR) &lpMsgBuf,
4766+ 0, NULL);
4767+
4768+ // Display the error message and exit the process
4769+
4770+ lpDisplayBuf = (LPVOID)LocalAlloc(
4771+ LMEM_ZEROINIT,
4772+ (lstrlen((LPCTSTR)lpMsgBuf) + 40) * sizeof(TCHAR));
4773+
4774+ StringCchPrintf(
4775+ (LPTSTR)lpDisplayBuf,
4776+ LocalSize(lpDisplayBuf) / sizeof(TCHAR),
4777+ TEXT("Error (%d) when starting zorba: %s"),
4778+ iReturnVal,
4779+ lpMsgBuf);
4780+
4781+ std::wstring lErrorW((wchar_t*)lpDisplayBuf);
4782+ std::string lError;
4783+ lError.assign(lErrorW.begin(), lErrorW.end());
4784+ std::cout << lError << std::endl;
4785+
4786+ LocalFree(lpMsgBuf);
4787+ LocalFree(lpDisplayBuf);
4788+ }
4789+
4790+ // Free memory
4791+ delete[]pwszParam;
4792+ pwszParam = 0;
4793+
4794+ // Release handles
4795+ CloseHandle(piProcessInfo.hProcess);
4796+ CloseHandle(piProcessInfo.hThread);
4797+
4798+ return iReturnVal;
4799+
4800+#else
4801+ // ************************
4802+ // start a process on Linux
4803+
4804+ pid_t pID = fork();
4805+ if (pID == 0) {
4806+ // Code only executed by child process
4807+ std::stringstream lCommand;
4808+ lCommand << aExec;
4809+ for (std::vector<std::string>::size_type j = 0; j < aArgs.size(); j++) {
4810+ lCommand << " " << aArgs.at(j);
4811+ }
4812+
4813+ int lRes = system(lCommand.str().c_str());
4814+ exit(lRes);
4815+ }
4816+ else {
4817+ // Code only executed by parent process
4818+ if (pID < 0) {
4819+ std::cerr << "Failed to fork Zorba" << std::endl;
4820+ return pID;
4821+ }
4822+
4823+ // Watch the process
4824+ aProcessListener.reset(new ProcessListener(pID, &onExitProcess));
4825+
4826+ return 0;
4827+ }
4828+#endif
4829+}
4830+
4831+void printUsage(std::string& aProgram)
4832+{
4833+ std::cerr << "Usage:" << std::endl
4834+ << " " << aProgram << " <zorba_arguments>" << std::endl
4835+ << " this will start a debugger command line and a zorba process with the given arguments" << std::endl;
4836+}
4837+
4838+bool
4839+processArguments(
4840+ int argc,
4841+ char* argv[],
4842+ std::string& aProgram,
4843+ bool& aStandalone,
4844+ std::string& aZorba,
4845+ unsigned int& aPort,
4846+ std::vector<std::string>& aZorbaArgs)
4847+{
4848+ aPort = 28028;
4849+
4850+ // find the path to Zorba and this executable name
4851+ aProgram = argv[0];
4852+
4853+#ifdef WIN32
4854+ char lSep = '\\';
4855+#else
4856+ char lSep = '/';
4857+#endif
4858+ std::string::size_type lPos = aProgram.find_last_of(lSep);
4859+
4860+ std::stringstream lZs;
4861+
4862+ if (lPos == aProgram.npos) {
4863+ lZs << "." << lSep;
4864+ } else {
4865+ lZs << aProgram.substr(0, lPos + 1);
4866+ aProgram = aProgram.substr(lPos + 1);
4867+ }
4868+ lZs << "zorba";
4869+#ifdef WIN32
4870+ lZs << ".exe";
4871+#endif
4872+ aZorba = lZs.str();
4873+
4874+
4875+ bool lHasFileArg = false;
4876+ bool lHasQueryArg = false;
4877+ bool lHasQueryVal = false;
4878+
4879+ // find if the user asked for help or specified a specific port
4880+ for (int i = 1; i < argc; i++) {
4881+ std::string lArg = argv[i];
4882+ if (lArg == "-h" || lArg == "--help") {
4883+ return false;
4884+ }
4885+ else if (lArg == "-p" || lArg == "--debug-port") {
4886+ // if there is one more argument
4887+ if (i < argc - 1) {
4888+ // get the port value
4889+ int lPort;
4890+ std::stringstream lStream(argv[i + 1]);
4891+ lStream >> lPort;
4892+ if (!lStream.fail()) {
4893+ aPort = lPort;
4894+ }
4895+ }
4896+ }
4897+ else if (lArg == "-f") {
4898+ lHasFileArg = true;
4899+ }
4900+ else if (lArg == "-q") {
4901+ lHasQueryArg = true;
4902+ if (++i < argc) {
4903+ lHasQueryVal = true;
4904+ }
4905+ }
4906+ }
4907+
4908+ if (!lHasFileArg || !lHasQueryArg || !lHasQueryVal) {
4909+ std::cout << "Not enough arguments to start Zorba." << std::endl;
4910+ std::cout << "Running the standalone XQuery debugger client on port: " << aPort << std::endl;
4911+ return true;
4912+ }
4913+
4914+ // zorba will need the -d flag
4915+ aZorbaArgs.push_back("-d");
4916+
4917+ // gather all arguments (excepting the program name)
4918+ for (int i = 1; i < argc; i++) {
4919+ aZorbaArgs.push_back(argv[i]);
4920+ }
4921+
4922+ aStandalone = false;
4923+ return true;
4924+}
4925
4926 #ifndef _WIN32_WCE
4927 int
4928@@ -28,24 +304,72 @@
4929 _tmain(int argc, _TCHAR* argv[])
4930 #endif
4931 {
4932- int port = 28028;
4933- if (argv[1]) {
4934- std::stringstream stream(argv[1]);
4935- stream >> port;
4936- if (stream.fail() || argv[2]) {
4937- std::cerr << "Unknown argument. USAGE: " << argv[0] << " [PORT]" << std::endl;
4938- return 2;
4939+#ifdef WIN32
4940+ SetConsoleCtrlHandler(ctrlC_Handler, TRUE);
4941+#else
4942+ signal(SIGINT, ctrlC_Handler);
4943+#endif
4944+
4945+ // **************************************************************************
4946+ // processing arguments
4947+
4948+ std::string lProgram, lZorbaExec;
4949+ unsigned int lPort = 28028;
4950+ std::vector<std::string> lZorbaArgs;
4951+
4952+ bool lStandalone = true;
4953+ if (!processArguments(argc, argv, lProgram, lStandalone, lZorbaExec, lPort, lZorbaArgs)) {
4954+ printUsage(lProgram);
4955+ return 1;
4956+ }
4957+
4958+#ifndef NDEBUG
4959+ // **************************************************************************
4960+ // debug reporting
4961+
4962+ if (!lStandalone) {
4963+ std::cout << "Communication port: " << lPort << std::endl;
4964+ std::cout << "Zorba executable: " << lZorbaExec << std::endl;
4965+ std::cout << "Zorba arguments: ";
4966+ for (std::vector<std::string>::size_type j = 0; j < lZorbaArgs.size(); j++) {
4967+ std::cout << lZorbaArgs.at(j) << " ";
4968 }
4969+ std::cout << std::endl;
4970 }
4971+#endif
4972+
4973 try {
4974- LockFreeQueue<std::size_t> lQueue;
4975- LockFreeQueue<bool> lContEvent;
4976- EventHandler lHandler(lQueue, lContEvent);
4977- CommandLine cli;
4978- CommandLineHandler handler(port, lQueue, lContEvent, lHandler, cli);
4979- handler.execute();
4980+ // **************************************************************************
4981+ // start a zorba
4982+
4983+ // This is a process listener used to watch the Zorba process termination.
4984+ std::auto_ptr<ProcessListener> lProcessListener;
4985+
4986+ if (!lStandalone) {
4987+ int lResult = startZorba(lZorbaExec, lZorbaArgs, lProcessListener);
4988+ if (lResult) {
4989+ return lResult;
4990+ }
4991+ } else {
4992+ std::cout << "Listening for an incomming Zorba connection on port " << lPort << "..." << std::endl;
4993+ }
4994+
4995+ // **************************************************************************
4996+ // start the debugger command line
4997+
4998+ theClient.reset(new XqdbClient(lPort));
4999+ theClient->start();
5000+
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: