Merge lp:~zorba-coders/zorba/bug-1189996 into lp:zorba
- bug-1189996
- Merge into trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Chris Hillery | ||||
Approved revision: | 11515 | ||||
Merged at revision: | 11510 | ||||
Proposed branch: | lp:~zorba-coders/zorba/bug-1189996 | ||||
Merge into: | lp:zorba | ||||
Diff against target: |
1473 lines (+230/-210) 72 files modified
ChangeLog (+1/-0) doc/cxx/examples/binary.cpp (+4/-4) include/zorba/annotation.h (+1/-1) include/zorba/api_shared_types.h (+1/-1) include/zorba/dynamic_context.h (+3/-3) include/zorba/function.h (+1/-1) include/zorba/internal/unit_tests.h (+14/-14) include/zorba/query_location.h (+1/-1) include/zorba/static_context.h (+3/-3) include/zorba/stemmer.h (+1/-1) include/zorba/thesaurus.h (+1/-1) include/zorba/tokenizer.h (+1/-1) include/zorba/uri_resolvers.h (+4/-4) include/zorba/util/base64_util.h (+23/-19) include/zorba/util/calendar.h (+3/-3) modules/ExternalModules.conf (+26/-13) modules/com/zorba-xquery/www/modules/http-client.xq.src/http_request_handler.cpp (+6/-7) modules/com/zorba-xquery/www/modules/http-client.xq.src/http_response_parser.cpp (+3/-3) modules/org/expath/ns/file.xq.src/file.cpp (+2/-2) src/api/base64_streambuf.cpp (+1/-1) src/api/base64impl.cpp (+43/-46) src/api/serialization/serializer.cpp (+1/-1) src/api/smart_ptr.cpp (+4/-3) src/api/transcode_streambuf.cpp (+1/-1) src/compiler/expression/ftnode.cpp (+1/-1) src/compiler/expression/ftnode.h (+1/-1) src/context/dynamic_context.h (+2/-2) src/context/uri_resolver.h (+1/-1) src/debugger/debugger_clientimpl.cpp (+5/-2) src/debugger/debugger_server.cpp (+4/-4) src/diagnostics/dict.cpp (+1/-1) src/precompiled/stdafx.h (+6/-4) src/runtime/base64/base64_impl.cpp (+1/-1) src/runtime/durations_dates_times/format_dateTime.cpp (+1/-1) src/runtime/fetch/fetch_impl.cpp (+1/-1) src/runtime/full_text/apply.cpp (+1/-1) src/runtime/full_text/ft_module_impl.cpp (+1/-1) src/runtime/full_text/ft_stop_words_set.cpp (+1/-1) src/runtime/full_text/ft_stop_words_set.h (+1/-1) src/runtime/full_text/ft_thesaurus.h (+1/-1) src/runtime/full_text/ft_token_matcher.h (+1/-1) src/runtime/full_text/ft_util.cpp (+1/-1) src/runtime/full_text/ft_util.h (+1/-1) src/runtime/full_text/full_text_impl.cpp (+1/-1) src/runtime/full_text/icu_tokenizer.cpp (+1/-1) src/runtime/full_text/icu_tokenizer.h (+1/-1) src/runtime/full_text/stemmer.cpp (+1/-1) src/runtime/full_text/stemmer.h (+1/-1) src/runtime/full_text/stemmer/sb_stemmer.cpp (+1/-1) src/runtime/full_text/thesauri/iso2788.h (+1/-1) src/runtime/full_text/thesauri/wn_thesaurus.cpp (+2/-1) src/runtime/full_text/thesauri/xqftts_relationship.cpp (+1/-1) src/runtime/full_text/thesaurus.h (+1/-1) src/runtime/full_text/tokenizer.cpp (+1/-1) src/runtime/sequences/sequences_impl.cpp (+1/-1) src/runtime/uris/uris_impl.cpp (+2/-2) src/store/api/item.h (+1/-1) src/store/naive/node_items.cpp (+7/-11) src/store/naive/node_items.h (+5/-5) src/unit_tests/test_base64_streambuf.cpp (+1/-1) src/unit_tests/test_time_parse.cpp (+1/-1) src/unit_tests/unit_tests.cpp (+8/-5) src/util/CMakeLists.txt (+1/-0) src/util/locale.h (+1/-1) src/util/time_parse.cpp (+1/-1) src/util/time_parse.h (+1/-1) src/util/time_util.h (+1/-1) src/util/transcode_streambuf.h (+1/-1) src/zorbatypes/ft_token.cpp (+1/-1) src/zorbatypes/ft_token.h (+1/-1) src/zorbautils/CMakeLists.txt (+0/-1) test/unit/lib_unit_test.cpp (+3/-3) |
||||
To merge this branch: | bzr merge lp:~zorba-coders/zorba/bug-1189996 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chris Hillery | Approve | ||
Paul J. Lucas | Approve | ||
Review via email: mp+168850@code.launchpad.net |
Commit message
Relocated some headers to zorba/include/util.
Description of the change
Relocated some headers to zorba/include/util.
Paul J. Lucas (paul-lucas) : | # |
Zorba Build Bot (zorba-buildbot) wrote : | # |
Zorba Build Bot (zorba-buildbot) wrote : | # |
The attempt to merge lp:~zorba-coders/zorba/bug-1189996 into lp:zorba failed. Below is the output from the failed tests.
CMake Error at /home/ceej/
Validation queue job bug-1189996-2013-06-
final status was:
No tests were run - build or configure step must have failed.
Not commiting changes.
Error in read script: /home/ceej/
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
The attempt to merge lp:~zorba-coders/zorba/bug-1189996 into lp:zorba failed. Below is the output from the failed tests.
CMake Error at /home/ceej/
Validation queue job bug-1189996-2013-06-
final status was:
No tests were run - build or configure step must have failed.
Not commiting changes.
Error in read script: /home/ceej/
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
The attempt to merge lp:~zorba-coders/zorba/bug-1189996 into lp:zorba failed. Below is the output from the failed tests.
CMake Error at /home/ceej/
Validation queue job bug-1189996-2013-06-
final status was:
No tests were run - build or configure step must have failed.
Not commiting changes.
Error in read script: /home/ceej/
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
The attempt to merge lp:~zorba-coders/zorba/bug-1189996 into lp:zorba failed. Below is the output from the failed tests.
CMake Error at /home/ceej/
Validation queue job bug-1189996-2013-06-
final status was:
No tests were run - build or configure step must have failed.
Not commiting changes.
Error in read script: /home/ceej/
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
The attempt to merge lp:~zorba-coders/zorba/bug-1189996 into lp:zorba failed. Below is the output from the failed tests.
CMake Error at /home/ceej/
Validation queue job bug-1189996-2013-06-
final status was:
No tests were run - build or configure step must have failed.
Not commiting changes.
Error in read script: /home/ceej/
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
The attempt to merge lp:~zorba-coders/zorba/bug-1189996 into lp:zorba failed. Below is the output from the failed tests.
CMake Error at /home/ceej/
Validation queue job bug-1189996-2013-06-
final status was:
9 tests did not succeed - changes not commited.
Error in read script: /home/ceej/
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
The attempt to merge lp:~zorba-coders/zorba/bug-1189996 into lp:zorba failed. Below is the output from the failed tests.
CMake Error at /home/ceej/
Validation queue job bug-1189996-2013-06-
final status was:
1 tests did not succeed - changes not commited.
Error in read script: /home/ceej/
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue job bug-1189996-2013-06-
All tests succeeded!
Zorba Build Bot (zorba-buildbot) wrote : | # |
Voting does not meet specified criteria. Required: Approve > 1, Disapprove < 1, Needs Fixing < 1, Pending < 1, Needs Information < 1, Resubmit < 1. Got: 1 Approve.
Chris Hillery (ceejatec) : | # |
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue job bug-1189996-2013-06-
All tests succeeded!
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue job bug-1189996-2013-06-
All tests succeeded!
Preview Diff
1 | === modified file 'ChangeLog' | |||
2 | --- ChangeLog 2013-06-12 15:38:39 +0000 | |||
3 | +++ ChangeLog 2013-06-13 01:24:25 +0000 | |||
4 | @@ -33,6 +33,7 @@ | |||
5 | 33 | for user-defined types. | 33 | for user-defined types. |
6 | 34 | * jn:members function takes item()* as aparameter (instead of item()) | 34 | * jn:members function takes item()* as aparameter (instead of item()) |
7 | 35 | * jn:keys function takes item()* as aparameter (instead of item()) | 35 | * jn:keys function takes item()* as aparameter (instead of item()) |
8 | 36 | * Fixed bug #1189996 (Relocate some public API headers to util) | ||
9 | 36 | * Object/array navigation allows item()* as the type of the input sequence | 37 | * Object/array navigation allows item()* as the type of the input sequence |
10 | 37 | (doing implicit iteration over the input sequence and skipping items | 38 | (doing implicit iteration over the input sequence and skipping items |
11 | 38 | that are not objects/arrays). | 39 | that are not objects/arrays). |
12 | 39 | 40 | ||
13 | === modified file 'doc/cxx/examples/binary.cpp' | |||
14 | --- doc/cxx/examples/binary.cpp 2013-02-07 17:24:36 +0000 | |||
15 | +++ doc/cxx/examples/binary.cpp 2013-06-13 01:24:25 +0000 | |||
16 | @@ -13,18 +13,18 @@ | |||
17 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
18 | 14 | * limitations under the License. | 14 | * limitations under the License. |
19 | 15 | */ | 15 | */ |
20 | 16 | |||
21 | 16 | #include <zorba/zorba.h> | 17 | #include <zorba/zorba.h> |
23 | 17 | #include <zorba/base64.h> | 18 | #include <zorba/util/base64_util.h> |
24 | 18 | #include <iostream> | 19 | #include <iostream> |
25 | 19 | 20 | ||
26 | 20 | |||
27 | 21 | using namespace zorba; | 21 | using namespace zorba; |
28 | 22 | 22 | ||
29 | 23 | bool | 23 | bool |
30 | 24 | encode_example() | 24 | encode_example() |
31 | 25 | { | 25 | { |
32 | 26 | String lString("Hello Zorba"); | 26 | String lString("Hello Zorba"); |
34 | 27 | String lEncoded = zorba::encoding::Base64::encode(lString); | 27 | String lEncoded = zorba::base64::encode(lString); |
35 | 28 | return lEncoded == "SGVsbG8gWm9yYmE="; | 28 | return lEncoded == "SGVsbG8gWm9yYmE="; |
36 | 29 | } | 29 | } |
37 | 30 | 30 | ||
38 | @@ -32,7 +32,7 @@ | |||
39 | 32 | decode_example() | 32 | decode_example() |
40 | 33 | { | 33 | { |
41 | 34 | String lEncoded("SGVsbG8gWm9yYmE="); | 34 | String lEncoded("SGVsbG8gWm9yYmE="); |
43 | 35 | String lDecoded = zorba::encoding::Base64::decode(lEncoded); | 35 | String lDecoded = zorba::base64::decode(lEncoded); |
44 | 36 | return lDecoded == "Hello Zorba"; | 36 | return lDecoded == "Hello Zorba"; |
45 | 37 | } | 37 | } |
46 | 38 | 38 | ||
47 | 39 | 39 | ||
48 | === modified file 'include/zorba/annotation.h' | |||
49 | --- include/zorba/annotation.h 2013-02-07 17:24:36 +0000 | |||
50 | +++ include/zorba/annotation.h 2013-06-13 01:24:25 +0000 | |||
51 | @@ -18,7 +18,7 @@ | |||
52 | 18 | 18 | ||
53 | 19 | #include <zorba/config.h> | 19 | #include <zorba/config.h> |
54 | 20 | #include <zorba/api_shared_types.h> | 20 | #include <zorba/api_shared_types.h> |
56 | 21 | #include <zorba/smart_ptr.h> | 21 | #include <zorba/util/smart_ptr.h> |
57 | 22 | 22 | ||
58 | 23 | namespace zorba { | 23 | namespace zorba { |
59 | 24 | 24 | ||
60 | 25 | 25 | ||
61 | === modified file 'include/zorba/api_shared_types.h' | |||
62 | --- include/zorba/api_shared_types.h 2013-05-31 03:38:45 +0000 | |||
63 | +++ include/zorba/api_shared_types.h 2013-06-13 01:24:25 +0000 | |||
64 | @@ -17,7 +17,7 @@ | |||
65 | 17 | #define ZORBA_SHARED_TYPES_INCL_H | 17 | #define ZORBA_SHARED_TYPES_INCL_H |
66 | 18 | 18 | ||
67 | 19 | #include <zorba/config.h> | 19 | #include <zorba/config.h> |
69 | 20 | #include <zorba/smart_ptr.h> | 20 | #include <zorba/util/smart_ptr.h> |
70 | 21 | 21 | ||
71 | 22 | namespace zorba { | 22 | namespace zorba { |
72 | 23 | 23 | ||
73 | 24 | 24 | ||
74 | === modified file 'include/zorba/dynamic_context.h' | |||
75 | --- include/zorba/dynamic_context.h 2013-05-22 02:22:35 +0000 | |||
76 | +++ include/zorba/dynamic_context.h 2013-06-13 01:24:25 +0000 | |||
77 | @@ -21,12 +21,12 @@ | |||
78 | 21 | #include <memory> | 21 | #include <memory> |
79 | 22 | 22 | ||
80 | 23 | #include <zorba/config.h> | 23 | #include <zorba/config.h> |
81 | 24 | #include <zorba/locale.h> | ||
82 | 25 | #include <zorba/time.h> | ||
83 | 26 | #include <zorba/api_shared_types.h> | 24 | #include <zorba/api_shared_types.h> |
84 | 25 | #include <zorba/external_function_parameter.h> | ||
85 | 27 | #include <zorba/static_context_consts.h> | 26 | #include <zorba/static_context_consts.h> |
86 | 27 | #include <zorba/util/calendar.h> | ||
87 | 28 | #include <zorba/util/locale.h> | ||
88 | 28 | #include <zorba/xmldatamanager.h> | 29 | #include <zorba/xmldatamanager.h> |
89 | 29 | #include <zorba/external_function_parameter.h> | ||
90 | 30 | 30 | ||
91 | 31 | 31 | ||
92 | 32 | namespace zorba { | 32 | namespace zorba { |
93 | 33 | 33 | ||
94 | === modified file 'include/zorba/function.h' | |||
95 | --- include/zorba/function.h 2013-04-19 22:25:21 +0000 | |||
96 | +++ include/zorba/function.h 2013-06-13 01:24:25 +0000 | |||
97 | @@ -21,7 +21,7 @@ | |||
98 | 21 | 21 | ||
99 | 22 | #include <zorba/config.h> | 22 | #include <zorba/config.h> |
100 | 23 | #include <zorba/api_shared_types.h> | 23 | #include <zorba/api_shared_types.h> |
102 | 24 | #include <zorba/smart_ptr.h> | 24 | #include <zorba/util/smart_ptr.h> |
103 | 25 | 25 | ||
104 | 26 | namespace zorba { | 26 | namespace zorba { |
105 | 27 | 27 | ||
106 | 28 | 28 | ||
107 | === renamed file 'include/zorba/unit_tests.h' => 'include/zorba/internal/unit_tests.h' | |||
108 | --- include/zorba/unit_tests.h 2013-02-07 17:24:36 +0000 | |||
109 | +++ include/zorba/internal/unit_tests.h 2013-06-13 01:24:25 +0000 | |||
110 | @@ -13,24 +13,24 @@ | |||
111 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
112 | 14 | * limitations under the License. | 14 | * limitations under the License. |
113 | 15 | */ | 15 | */ |
116 | 16 | #ifndef ZORBA_UNIT_TESTS_H | 16 | |
117 | 17 | #define ZORBA_UNIT_TESTS_H | 17 | #ifndef ZORBA_INTERNAL_UNIT_TESTS_H |
118 | 18 | #define ZORBA_INTERNAL_UNIT_TESTS_H | ||
119 | 18 | 19 | ||
120 | 19 | #include <zorba/config.h> | 20 | #include <zorba/config.h> |
121 | 20 | 21 | ||
122 | 21 | |||
123 | 22 | namespace zorba { | 22 | namespace zorba { |
135 | 23 | 23 | namespace UnitTests { | |
136 | 24 | namespace UnitTests | 24 | |
137 | 25 | { | 25 | /////////////////////////////////////////////////////////////////////////////// |
138 | 26 | ZORBA_DLL_PUBLIC int runUnitTest(int argc, char* argv[]); | 26 | |
139 | 27 | }; | 27 | ZORBA_DLL_PUBLIC int runUnitTest(int argc, char* argv[]); |
140 | 28 | 28 | ||
141 | 29 | } | 29 | /////////////////////////////////////////////////////////////////////////////// |
142 | 30 | 30 | ||
143 | 31 | 31 | } // namespace UnitTests | |
144 | 32 | #endif | 32 | } // namespace Zorba |
145 | 33 | 33 | #endif /* ZORBA_INTERNAL_UNIT_TESTS_H */ | |
146 | 34 | /* | 34 | /* |
147 | 35 | * Local variables: | 35 | * Local variables: |
148 | 36 | * mode: c++ | 36 | * mode: c++ |
149 | 37 | 37 | ||
150 | === modified file 'include/zorba/query_location.h' | |||
151 | --- include/zorba/query_location.h 2013-02-07 17:24:36 +0000 | |||
152 | +++ include/zorba/query_location.h 2013-06-13 01:24:25 +0000 | |||
153 | @@ -18,8 +18,8 @@ | |||
154 | 18 | #define QUERYLOCATION_H | 18 | #define QUERYLOCATION_H |
155 | 19 | 19 | ||
156 | 20 | #include <zorba/config.h> | 20 | #include <zorba/config.h> |
157 | 21 | #include <zorba/smart_ptr.h> | ||
158 | 22 | #include <zorba/api_shared_types.h> | 21 | #include <zorba/api_shared_types.h> |
159 | 22 | #include <zorba/util/smart_ptr.h> | ||
160 | 23 | 23 | ||
161 | 24 | namespace zorba{ | 24 | namespace zorba{ |
162 | 25 | 25 | ||
163 | 26 | 26 | ||
164 | === modified file 'include/zorba/static_context.h' | |||
165 | --- include/zorba/static_context.h 2013-03-25 23:02:19 +0000 | |||
166 | +++ include/zorba/static_context.h 2013-06-13 01:24:25 +0000 | |||
167 | @@ -16,17 +16,17 @@ | |||
168 | 16 | #ifndef XQP_STATIC_CONTEXT_API_H | 16 | #ifndef XQP_STATIC_CONTEXT_API_H |
169 | 17 | #define XQP_STATIC_CONTEXT_API_H | 17 | #define XQP_STATIC_CONTEXT_API_H |
170 | 18 | 18 | ||
171 | 19 | #include <vector> | ||
172 | 20 | |||
173 | 19 | #include <zorba/config.h> | 21 | #include <zorba/config.h> |
174 | 20 | #include <zorba/api_shared_types.h> | 22 | #include <zorba/api_shared_types.h> |
175 | 21 | #include <zorba/zorba_string.h> | 23 | #include <zorba/zorba_string.h> |
176 | 22 | #include <zorba/typeident.h> | 24 | #include <zorba/typeident.h> |
177 | 23 | #include <zorba/static_context_consts.h> | 25 | #include <zorba/static_context_consts.h> |
178 | 24 | #include <zorba/options.h> // for compiler hints class | 26 | #include <zorba/options.h> // for compiler hints class |
179 | 25 | #include <vector> | ||
180 | 26 | #include <zorba/function.h> | 27 | #include <zorba/function.h> |
181 | 27 | #include <zorba/annotation.h> | 28 | #include <zorba/annotation.h> |
184 | 28 | #include <zorba/smart_ptr.h> | 29 | #include <zorba/util/smart_ptr.h> |
183 | 29 | #include <zorba/smart_ptr.h> | ||
185 | 30 | #ifndef ZORBA_NO_FULL_TEXT | 30 | #ifndef ZORBA_NO_FULL_TEXT |
186 | 31 | #include <zorba/thesaurus.h> | 31 | #include <zorba/thesaurus.h> |
187 | 32 | #endif /* ZORBA_NO_FULL_TEXT */ | 32 | #endif /* ZORBA_NO_FULL_TEXT */ |
188 | 33 | 33 | ||
189 | === modified file 'include/zorba/stemmer.h' | |||
190 | --- include/zorba/stemmer.h 2013-06-01 00:30:39 +0000 | |||
191 | +++ include/zorba/stemmer.h 2013-06-13 01:24:25 +0000 | |||
192 | @@ -24,7 +24,7 @@ | |||
193 | 24 | #include <zorba/internal/cxx_util.h> | 24 | #include <zorba/internal/cxx_util.h> |
194 | 25 | #include <zorba/internal/unique_ptr.h> | 25 | #include <zorba/internal/unique_ptr.h> |
195 | 26 | #include <zorba/internal/ztd.h> | 26 | #include <zorba/internal/ztd.h> |
197 | 27 | #include <zorba/locale.h> | 27 | #include <zorba/util/locale.h> |
198 | 28 | #include <zorba/zorba_string.h> | 28 | #include <zorba/zorba_string.h> |
199 | 29 | 29 | ||
200 | 30 | namespace zorba { | 30 | namespace zorba { |
201 | 31 | 31 | ||
202 | === modified file 'include/zorba/thesaurus.h' | |||
203 | --- include/zorba/thesaurus.h 2013-06-01 00:30:39 +0000 | |||
204 | +++ include/zorba/thesaurus.h 2013-06-13 01:24:25 +0000 | |||
205 | @@ -24,8 +24,8 @@ | |||
206 | 24 | #include <zorba/internal/cxx_util.h> | 24 | #include <zorba/internal/cxx_util.h> |
207 | 25 | #include <zorba/internal/unique_ptr.h> | 25 | #include <zorba/internal/unique_ptr.h> |
208 | 26 | #include <zorba/internal/ztd.h> | 26 | #include <zorba/internal/ztd.h> |
209 | 27 | #include <zorba/locale.h> | ||
210 | 28 | #include <zorba/uri_resolvers.h> | 27 | #include <zorba/uri_resolvers.h> |
211 | 28 | #include <zorba/util/locale.h> | ||
212 | 29 | #include <zorba/zorba_string.h> | 29 | #include <zorba/zorba_string.h> |
213 | 30 | 30 | ||
214 | 31 | namespace zorba { | 31 | namespace zorba { |
215 | 32 | 32 | ||
216 | === modified file 'include/zorba/tokenizer.h' | |||
217 | --- include/zorba/tokenizer.h 2013-06-01 00:30:39 +0000 | |||
218 | +++ include/zorba/tokenizer.h 2013-06-13 01:24:25 +0000 | |||
219 | @@ -24,7 +24,7 @@ | |||
220 | 24 | #include <zorba/internal/cxx_util.h> | 24 | #include <zorba/internal/cxx_util.h> |
221 | 25 | #include <zorba/internal/unique_ptr.h> | 25 | #include <zorba/internal/unique_ptr.h> |
222 | 26 | #include <zorba/internal/ztd.h> | 26 | #include <zorba/internal/ztd.h> |
224 | 27 | #include <zorba/locale.h> | 27 | #include <zorba/util/locale.h> |
225 | 28 | 28 | ||
226 | 29 | namespace zorba { | 29 | namespace zorba { |
227 | 30 | 30 | ||
228 | 31 | 31 | ||
229 | === modified file 'include/zorba/uri_resolvers.h' | |||
230 | --- include/zorba/uri_resolvers.h 2013-02-07 17:24:36 +0000 | |||
231 | +++ include/zorba/uri_resolvers.h 2013-06-13 01:24:25 +0000 | |||
232 | @@ -22,12 +22,12 @@ | |||
233 | 22 | 22 | ||
234 | 23 | #include <zorba/config.h> | 23 | #include <zorba/config.h> |
235 | 24 | #include <zorba/api_shared_types.h> | 24 | #include <zorba/api_shared_types.h> |
236 | 25 | #include <zorba/internal/unique_ptr.h> | ||
237 | 26 | #include <zorba/internal/ztd.h> | ||
238 | 25 | #include <zorba/item.h> | 27 | #include <zorba/item.h> |
239 | 28 | #include <zorba/streams.h> | ||
240 | 29 | #include <zorba/util/locale.h> | ||
241 | 26 | #include <zorba/zorba_string.h> | 30 | #include <zorba/zorba_string.h> |
242 | 27 | #include <zorba/streams.h> | ||
243 | 28 | #include <zorba/locale.h> | ||
244 | 29 | #include <zorba/internal/unique_ptr.h> | ||
245 | 30 | #include <zorba/internal/ztd.h> | ||
246 | 31 | 31 | ||
247 | 32 | /** | 32 | /** |
248 | 33 | * @file uri_resolvers.h | 33 | * @file uri_resolvers.h |
249 | 34 | 34 | ||
250 | === renamed file 'include/zorba/base64_stream.h' => 'include/zorba/util/base64_stream.h' | |||
251 | === renamed file 'include/zorba/base64.h' => 'include/zorba/util/base64_util.h' | |||
252 | --- include/zorba/base64.h 2013-02-07 17:24:36 +0000 | |||
253 | +++ include/zorba/util/base64_util.h 2013-06-13 01:24:25 +0000 | |||
254 | @@ -13,33 +13,37 @@ | |||
255 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
256 | 14 | * limitations under the License. | 14 | * limitations under the License. |
257 | 15 | */ | 15 | */ |
258 | 16 | |||
259 | 16 | #ifndef ZORBA_BASE64_API_H | 17 | #ifndef ZORBA_BASE64_API_H |
260 | 17 | #define ZORBA_BASE64_API_H | 18 | #define ZORBA_BASE64_API_H |
261 | 18 | 19 | ||
263 | 19 | #include <string> | 20 | // standard |
264 | 21 | #include <iostream> | ||
265 | 20 | 22 | ||
266 | 23 | // zorba | ||
267 | 21 | #include <zorba/config.h> | 24 | #include <zorba/config.h> |
268 | 22 | #include <zorba/zorba_string.h> | 25 | #include <zorba/zorba_string.h> |
269 | 23 | 26 | ||
270 | 24 | namespace zorba { | 27 | namespace zorba { |
289 | 25 | namespace encoding { | 28 | namespace base64 { |
290 | 26 | 29 | ||
291 | 27 | struct ZORBA_DLL_PUBLIC Base64 | 30 | /////////////////////////////////////////////////////////////////////////////// |
292 | 28 | { | 31 | |
293 | 29 | static String | 32 | ZORBA_DLL_PUBLIC |
294 | 30 | encode(const String& aString); | 33 | String encode( String const &aString ); |
295 | 31 | 34 | ||
296 | 32 | static String | 35 | ZORBA_DLL_PUBLIC |
297 | 33 | encode(std::istream& aStream); | 36 | String encode( std::istream &aStream ); |
298 | 34 | 37 | ||
299 | 35 | static String | 38 | ZORBA_DLL_PUBLIC |
300 | 36 | decode(const String& aString); | 39 | String decode( String const &aString ); |
301 | 37 | 40 | ||
302 | 38 | static String | 41 | ZORBA_DLL_PUBLIC |
303 | 39 | decode(std::istream& aStream); | 42 | String decode( std::istream &aStream ); |
304 | 40 | }; | 43 | |
305 | 41 | 44 | /////////////////////////////////////////////////////////////////////////////// | |
306 | 42 | } // namespace encoding | 45 | |
307 | 46 | } // namespace base64 | ||
308 | 43 | } // namespace zorba | 47 | } // namespace zorba |
309 | 44 | 48 | ||
310 | 45 | #endif /* ZORBA_BASE64_API_H */ | 49 | #endif /* ZORBA_BASE64_API_H */ |
311 | 46 | 50 | ||
312 | === renamed file 'include/zorba/time.h' => 'include/zorba/util/calendar.h' | |||
313 | --- include/zorba/time.h 2013-05-24 23:08:13 +0000 | |||
314 | +++ include/zorba/util/calendar.h 2013-06-13 01:24:25 +0000 | |||
315 | @@ -14,8 +14,8 @@ | |||
316 | 14 | * limitations under the License. | 14 | * limitations under the License. |
317 | 15 | */ | 15 | */ |
318 | 16 | 16 | ||
321 | 17 | #ifndef ZORBA_TIME_API_H | 17 | #ifndef ZORBA_CALENDAR_API_H |
322 | 18 | #define ZORBA_TIME_API_H | 18 | #define ZORBA_CALENDAR_API_H |
323 | 19 | 19 | ||
324 | 20 | namespace zorba { | 20 | namespace zorba { |
325 | 21 | namespace time { | 21 | namespace time { |
326 | @@ -63,5 +63,5 @@ | |||
327 | 63 | 63 | ||
328 | 64 | } // namespace time | 64 | } // namespace time |
329 | 65 | } // namespace zorba | 65 | } // namespace zorba |
331 | 66 | #endif /* ZORBA_TIME_API_H */ | 66 | #endif /* ZORBA_CALENDAR_API_H */ |
332 | 67 | /* vim:set et sw=2 ts=2: */ | 67 | /* vim:set et sw=2 ts=2: */ |
333 | 68 | 68 | ||
334 | === renamed file 'include/zorba/locale.h' => 'include/zorba/util/locale.h' | |||
335 | === renamed file 'include/zorba/smart_ptr.h' => 'include/zorba/util/smart_ptr.h' | |||
336 | === renamed file 'include/zorba/transcode_stream.h' => 'include/zorba/util/transcode_stream.h' | |||
337 | === modified file 'modules/ExternalModules.conf' | |||
338 | --- modules/ExternalModules.conf 2013-06-11 23:54:50 +0000 | |||
339 | +++ modules/ExternalModules.conf 2013-06-13 01:24:25 +0000 | |||
340 | @@ -26,10 +26,13 @@ | |||
341 | 26 | # "tag" is the VCS tag to check out (optional - defaults to HEAD; | 26 | # "tag" is the VCS tag to check out (optional - defaults to HEAD; |
342 | 27 | # currently only works for bzr, since svn tags are just different URLS) | 27 | # currently only works for bzr, since svn tags are just different URLS) |
343 | 28 | 28 | ||
346 | 29 | archive bzr lp:zorba/archive-module zorba-2.9 | 29 | #archive bzr lp:zorba/archive-module |
347 | 30 | csv bzr lp:zorba/csv-module | 30 | archive bzr lp:~zorba-coders/zorba/bug-1189996-archive |
348 | 31 | #csv bzr lp:zorba/csv-module | ||
349 | 32 | csv bzr lp:~zorba-coders/zorba/bug-1189996-csv | ||
350 | 31 | data-cleaning bzr lp:zorba/data-cleaning-module | 33 | data-cleaning bzr lp:zorba/data-cleaning-module |
352 | 32 | data-formatting bzr lp:zorba/data-formatting-module | 34 | #data-formatting bzr lp:zorba/data-formatting-module |
353 | 35 | data-formatting bzr lp:~zorba-coders/zorba/bug-1189996-data-formatting | ||
354 | 33 | excel bzr lp:zorba/excel-module zorba-2.9 | 36 | excel bzr lp:zorba/excel-module zorba-2.9 |
355 | 34 | info-extraction bzr lp:zorba/info-extraction-module zorba-2.9 | 37 | info-extraction bzr lp:zorba/info-extraction-module zorba-2.9 |
356 | 35 | geo bzr lp:zorba/geo-module zorba-2.9 | 38 | geo bzr lp:zorba/geo-module zorba-2.9 |
357 | @@ -37,19 +40,29 @@ | |||
358 | 37 | graphviz bzr lp:zorba/graphviz-module zorba-2.9 | 40 | graphviz bzr lp:zorba/graphviz-module zorba-2.9 |
359 | 38 | html bzr lp:zorba/html-module zorba-2.9 | 41 | html bzr lp:zorba/html-module zorba-2.9 |
360 | 39 | http-client bzr lp:zorba/http-client-module zorba-2.9 | 42 | http-client bzr lp:zorba/http-client-module zorba-2.9 |
363 | 40 | image bzr lp:zorba/image-module zorba-2.9 | 43 | #image bzr lp:zorba/image-module zorba-2.9 |
364 | 41 | jdbc bzr lp:zorba/jdbc-module | 44 | image bzr lp:~zorba-coders/zorba/bug-1189996-image |
365 | 45 | #jdbc bzr lp:zorba/jdbc-module | ||
366 | 46 | jdbc bzr lp:~zorba-coders/zorba/bug-1189996-jdbc | ||
367 | 42 | languages bzr lp:zorba/languages-module zorba-2.9 | 47 | languages bzr lp:zorba/languages-module zorba-2.9 |
369 | 43 | oracle-nosql-db bzr lp:zorba/oracle-nosql-db-module | 48 | #oracle-nosql-db bzr lp:zorba/oracle-nosql-db-module |
370 | 49 | oracle-nosql-db bzr lp:~zorba-coders/zorba/bug-1189996-oracle-nosql-db | ||
371 | 44 | oauth bzr lp:zorba/oauth-module zorba-2.9 | 50 | oauth bzr lp:zorba/oauth-module zorba-2.9 |
372 | 45 | process bzr lp:zorba/process-module | 51 | process bzr lp:zorba/process-module |
375 | 46 | read-pdf bzr lp:zorba/read-pdf-module | 52 | #read-pdf bzr lp:zorba/read-pdf-module |
376 | 47 | security bzr lp:zorba/security-module zorba-2.9 | 53 | read-pdf bzr lp:~zorba-coders/zorba/bug-1189996-read-pdf |
377 | 54 | #security bzr lp:zorba/security-module zorba-2.9 | ||
378 | 55 | security bzr lp:~zorba-coders/zorba/bug-1189996-security | ||
379 | 48 | system bzr lp:zorba/system-module zorba-2.9 | 56 | system bzr lp:zorba/system-module zorba-2.9 |
383 | 49 | email bzr lp:zorba/email-module zorba-2.9 | 57 | #email bzr lp:zorba/email-module zorba-2.9 |
384 | 50 | util-jvm bzr lp:zorba/util-jvm-module | 58 | email bzr lp:~zorba-coders/zorba/bug-1189996-email |
385 | 51 | schema-tools bzr lp:zorba/schema-tools-module | 59 | #util-jvm bzr lp:zorba/util-jvm-module |
386 | 60 | util-jvm bzr lp:~zorba-coders/zorba/bug-1189996-util-jvm | ||
387 | 61 | #schema-tools bzr lp:zorba/schema-tools-module | ||
388 | 62 | schema-tools bzr lp:~zorba-coders/zorba/bug-1189996-schema-tools | ||
389 | 52 | stack bzr lp:zorba/stack-module zorba-2.9 | 63 | stack bzr lp:zorba/stack-module zorba-2.9 |
390 | 53 | queue bzr lp:zorba/queue-module zorba-2.9 | 64 | queue bzr lp:zorba/queue-module zorba-2.9 |
393 | 54 | couchbase bzr lp:zorba/couchbase-module zorba-2.9 | 65 | #couchbase bzr lp:zorba/couchbase-module zorba-2.9 |
394 | 55 | sqlite bzr lp:zorba/sqlite-module zorba-2.9 | 66 | couchbase bzr lp:~zorba-coders/zorba/bug-1189996-couchbase |
395 | 67 | #sqlite bzr lp:zorba/sqlite-module zorba-2.9 | ||
396 | 68 | sqlite bzr lp:~zorba-coders/zorba/bug-1189996-sqlite | ||
397 | 56 | 69 | ||
398 | === modified file 'modules/com/zorba-xquery/www/modules/http-client.xq.src/http_request_handler.cpp' | |||
399 | --- modules/com/zorba-xquery/www/modules/http-client.xq.src/http_request_handler.cpp 2013-02-07 17:24:36 +0000 | |||
400 | +++ modules/com/zorba-xquery/www/modules/http-client.xq.src/http_request_handler.cpp 2013-06-13 01:24:25 +0000 | |||
401 | @@ -16,14 +16,13 @@ | |||
402 | 16 | 16 | ||
403 | 17 | #include <iostream> | 17 | #include <iostream> |
404 | 18 | 18 | ||
405 | 19 | #include <zorba/api_shared_types.h> | ||
406 | 20 | #include <zorba/serializer.h> | ||
407 | 21 | #include <zorba/singleton_item_sequence.h> | ||
408 | 22 | #include <zorba/util/base64_util.h> | ||
409 | 23 | #include <zorba/xquery_functions.h> | ||
410 | 19 | #include <zorba/zorba.h> | 24 | #include <zorba/zorba.h> |
411 | 20 | #include <zorba/singleton_item_sequence.h> | ||
412 | 21 | #include <zorba/serializer.h> | ||
413 | 22 | #include <zorba/api_shared_types.h> | ||
414 | 23 | #include <zorba/xquery_functions.h> | ||
415 | 24 | #include <zorba/zorba_functions.h> | 25 | #include <zorba/zorba_functions.h> |
416 | 25 | #include <zorba/base64.h> | ||
417 | 26 | #include <zorba/xquery_functions.h> | ||
418 | 27 | 26 | ||
419 | 28 | #include "http_request_handler.h" | 27 | #include "http_request_handler.h" |
420 | 29 | 28 | ||
421 | @@ -117,7 +116,7 @@ | |||
422 | 117 | if (lAuthMethod == "basic") { | 116 | if (lAuthMethod == "basic") { |
423 | 118 | String lAuthString = aUsername + ":" + aPassword; | 117 | String lAuthString = aUsername + ":" + aPassword; |
424 | 119 | String lAuth = "Authorization: Basic "; | 118 | String lAuth = "Authorization: Basic "; |
426 | 120 | lAuth += encoding::Base64::encode(lAuthString); | 119 | lAuth += base64::encode(lAuthString); |
427 | 121 | theAuthMethod = lAuth.c_str(); | 120 | theAuthMethod = lAuth.c_str(); |
428 | 122 | theHeaderLists[0] = curl_slist_append(theHeaderLists[0], theAuthMethod.c_str()); | 121 | theHeaderLists[0] = curl_slist_append(theHeaderLists[0], theAuthMethod.c_str()); |
429 | 123 | } else if (lAuthMethod == "digest") { | 122 | } else if (lAuthMethod == "digest") { |
430 | 124 | 123 | ||
431 | === modified file 'modules/com/zorba-xquery/www/modules/http-client.xq.src/http_response_parser.cpp' | |||
432 | --- modules/com/zorba-xquery/www/modules/http-client.xq.src/http_response_parser.cpp 2013-04-10 05:17:20 +0000 | |||
433 | +++ modules/com/zorba-xquery/www/modules/http-client.xq.src/http_response_parser.cpp 2013-06-13 01:24:25 +0000 | |||
434 | @@ -21,13 +21,13 @@ | |||
435 | 21 | #include <stdexcept> | 21 | #include <stdexcept> |
436 | 22 | #include <string> | 22 | #include <string> |
437 | 23 | 23 | ||
438 | 24 | #include <zorba/base64.h> | ||
439 | 25 | #include <zorba/config.h> | 24 | #include <zorba/config.h> |
440 | 26 | #include <zorba/diagnostic_list.h> | 25 | #include <zorba/diagnostic_list.h> |
441 | 27 | #include <zorba/error.h> | 26 | #include <zorba/error.h> |
442 | 28 | #include <zorba/item.h> | 27 | #include <zorba/item.h> |
443 | 29 | #include <zorba/item_factory.h> | 28 | #include <zorba/item_factory.h> |
445 | 30 | #include <zorba/transcode_stream.h> | 29 | #include <zorba/util/base64_util.h> |
446 | 30 | #include <zorba/util/transcode_stream.h> | ||
447 | 31 | #include <zorba/xmldatamanager.h> | 31 | #include <zorba/xmldatamanager.h> |
448 | 32 | #include <zorba/xquery_exception.h> | 32 | #include <zorba/xquery_exception.h> |
449 | 33 | #include <zorba/xquery_exception.h> | 33 | #include <zorba/xquery_exception.h> |
450 | @@ -328,7 +328,7 @@ | |||
451 | 328 | // TODO: once a proper streaming implementation is in place this can be | 328 | // TODO: once a proper streaming implementation is in place this can be |
452 | 329 | // changed. This required a Base64 encoding stream since the item factory | 329 | // changed. This required a Base64 encoding stream since the item factory |
453 | 330 | // work only builds base64binary and assumes the data is already encoded. | 330 | // work only builds base64binary and assumes the data is already encoded. |
455 | 331 | String lEncoded = encoding::Base64::encode(aStream); | 331 | String lEncoded = base64::encode(aStream); |
456 | 332 | return lFactory->createBase64Binary(lEncoded.data(), lEncoded.size()); | 332 | return lFactory->createBase64Binary(lEncoded.data(), lEncoded.size()); |
457 | 333 | } | 333 | } |
458 | 334 | 334 | ||
459 | 335 | 335 | ||
460 | === modified file 'modules/org/expath/ns/file.xq.src/file.cpp' | |||
461 | --- modules/org/expath/ns/file.xq.src/file.cpp 2013-06-12 23:54:27 +0000 | |||
462 | +++ modules/org/expath/ns/file.xq.src/file.cpp 2013-06-13 01:24:25 +0000 | |||
463 | @@ -23,15 +23,15 @@ | |||
464 | 23 | #include <stdexcept> | 23 | #include <stdexcept> |
465 | 24 | 24 | ||
466 | 25 | // Zorba | 25 | // Zorba |
467 | 26 | #include <zorba/base64.h> | ||
468 | 27 | #include <zorba/diagnostic_list.h> | 26 | #include <zorba/diagnostic_list.h> |
469 | 28 | #include <zorba/empty_sequence.h> | 27 | #include <zorba/empty_sequence.h> |
470 | 29 | #include <zorba/serializer.h> | 28 | #include <zorba/serializer.h> |
471 | 30 | #include <zorba/singleton_item_sequence.h> | 29 | #include <zorba/singleton_item_sequence.h> |
472 | 31 | #include <zorba/transcode_stream.h> | ||
473 | 32 | #include <zorba/user_exception.h> | 30 | #include <zorba/user_exception.h> |
474 | 31 | #include <zorba/util/base64_util.h> | ||
475 | 33 | #include <zorba/util/fs_util.h> | 32 | #include <zorba/util/fs_util.h> |
476 | 34 | #include <zorba/util/stream_util.h> | 33 | #include <zorba/util/stream_util.h> |
477 | 34 | #include <zorba/util/transcode_stream.h> | ||
478 | 35 | 35 | ||
479 | 36 | // local | 36 | // local |
480 | 37 | #include "file_module.h" | 37 | #include "file_module.h" |
481 | 38 | 38 | ||
482 | === modified file 'src/api/base64_streambuf.cpp' | |||
483 | --- src/api/base64_streambuf.cpp 2013-04-16 22:12:03 +0000 | |||
484 | +++ src/api/base64_streambuf.cpp 2013-06-13 01:24:25 +0000 | |||
485 | @@ -23,7 +23,7 @@ | |||
486 | 23 | # include <stdio.h> | 23 | # include <stdio.h> |
487 | 24 | #endif | 24 | #endif |
488 | 25 | 25 | ||
490 | 26 | #include <zorba/base64_stream.h> | 26 | #include <zorba/util/base64_stream.h> |
491 | 27 | 27 | ||
492 | 28 | #include "util/base64_util.h" | 28 | #include "util/base64_util.h" |
493 | 29 | 29 | ||
494 | 30 | 30 | ||
495 | === modified file 'src/api/base64impl.cpp' | |||
496 | --- src/api/base64impl.cpp 2013-02-07 17:24:36 +0000 | |||
497 | +++ src/api/base64impl.cpp 2013-06-13 01:24:25 +0000 | |||
498 | @@ -16,8 +16,8 @@ | |||
499 | 16 | #include "stdafx.h" | 16 | #include "stdafx.h" |
500 | 17 | 17 | ||
501 | 18 | #include <sstream> | 18 | #include <sstream> |
502 | 19 | #include <zorba/base64.h> | ||
503 | 20 | #include <zorba/diagnostic_list.h> | 19 | #include <zorba/diagnostic_list.h> |
504 | 20 | #include <zorba/util/base64_util.h> | ||
505 | 21 | 21 | ||
506 | 22 | #include <zorba/config.h> | 22 | #include <zorba/config.h> |
507 | 23 | #include <zorba/zorba_string.h> | 23 | #include <zorba/zorba_string.h> |
508 | @@ -27,61 +27,58 @@ | |||
509 | 27 | #include "util/base64_util.h" | 27 | #include "util/base64_util.h" |
510 | 28 | 28 | ||
511 | 29 | #define CATCH_BASE64_EXCEPTION() \ | 29 | #define CATCH_BASE64_EXCEPTION() \ |
513 | 30 | catch (const base64::exception& e) \ | 30 | catch (base64::exception const &e) \ |
514 | 31 | { \ | 31 | { \ |
515 | 32 | throw XQUERY_EXCEPTION(err::FORG0001, \ | 32 | throw XQUERY_EXCEPTION(err::FORG0001, \ |
516 | 33 | ERROR_PARAMS(ZED(FORG0001_Base64BadChar_2), e.invalid_char())); \ | 33 | ERROR_PARAMS(ZED(FORG0001_Base64BadChar_2), e.invalid_char())); \ |
517 | 34 | } \ | 34 | } \ |
519 | 35 | catch (const std::invalid_argument&) \ | 35 | catch (std::invalid_argument const&) \ |
520 | 36 | { \ | 36 | { \ |
521 | 37 | throw XQUERY_EXCEPTION(err::FORG0001, \ | 37 | throw XQUERY_EXCEPTION(err::FORG0001, \ |
522 | 38 | ERROR_PARAMS(ZED(FORG0001_Base64Multiple4))); \ | 38 | ERROR_PARAMS(ZED(FORG0001_Base64Multiple4))); \ |
523 | 39 | } | 39 | } |
524 | 40 | 40 | ||
525 | 41 | using namespace std; | ||
526 | 41 | 42 | ||
527 | 42 | namespace zorba { | 43 | namespace zorba { |
571 | 43 | namespace encoding { | 44 | namespace base64 { |
572 | 44 | 45 | ||
573 | 45 | String Base64::encode(const String& aString) | 46 | /////////////////////////////////////////////////////////////////////////////// |
574 | 46 | { | 47 | |
575 | 47 | String result; | 48 | String encode(String const &aString ) { |
576 | 48 | base64::encode( aString.data(), aString.size(), &result ); | 49 | String result; |
577 | 49 | return result; | 50 | encode( aString.data(), aString.size(), &result ); |
578 | 50 | } | 51 | return result; |
579 | 51 | 52 | } | |
580 | 52 | 53 | ||
581 | 53 | String Base64::encode(std::istream& aStream) | 54 | String encode( istream& aStream ) { |
582 | 54 | { | 55 | String result; |
583 | 55 | String result; | 56 | encode( aStream, &result ); |
584 | 56 | base64::encode( aStream, &result ); | 57 | return result; |
585 | 57 | return result; | 58 | } |
586 | 58 | } | 59 | |
587 | 59 | 60 | ||
588 | 60 | 61 | String decode( String const &aString ) { | |
589 | 61 | String Base64::decode(const String& aString) | 62 | try { |
590 | 62 | { | 63 | String result; |
591 | 63 | try { | 64 | decode( aString.data(), aString.size(), &result, dopt_ignore_ws ); |
592 | 64 | String result; | 65 | return result; |
593 | 65 | base64::decode( | 66 | } |
594 | 66 | aString.data(), aString.size(), &result, base64::dopt_ignore_ws | 67 | CATCH_BASE64_EXCEPTION() |
595 | 67 | ); | 68 | } |
596 | 68 | return result; | 69 | |
597 | 69 | } | 70 | |
598 | 70 | CATCH_BASE64_EXCEPTION() | 71 | String decode( istream &aStream ) { |
599 | 71 | } | 72 | try { |
600 | 72 | 73 | String result; | |
601 | 73 | 74 | decode( aStream, &result, dopt_ignore_ws ); | |
602 | 74 | String Base64::decode(std::istream& aStream) | 75 | return result; |
603 | 75 | { | 76 | } |
604 | 76 | try { | 77 | CATCH_BASE64_EXCEPTION() |
605 | 77 | String result; | 78 | } |
606 | 78 | base64::decode( aStream, &result, base64::dopt_ignore_ws ); | 79 | |
607 | 79 | return result; | 80 | /////////////////////////////////////////////////////////////////////////////// |
608 | 80 | } | 81 | |
609 | 81 | CATCH_BASE64_EXCEPTION() | 82 | } // namespace base64 |
567 | 82 | } | ||
568 | 83 | |||
569 | 84 | |||
570 | 85 | } // namespace encoding | ||
610 | 86 | } // namespace zorba | 83 | } // namespace zorba |
611 | 87 | /* vim:set et sw=2 ts=2: */ | 84 | /* vim:set et sw=2 ts=2: */ |
612 | 88 | 85 | ||
613 | === modified file 'src/api/serialization/serializer.cpp' | |||
614 | --- src/api/serialization/serializer.cpp 2013-06-05 00:37:35 +0000 | |||
615 | +++ src/api/serialization/serializer.cpp 2013-06-13 01:24:25 +0000 | |||
616 | @@ -19,7 +19,7 @@ | |||
617 | 19 | #include <iomanip> | 19 | #include <iomanip> |
618 | 20 | 20 | ||
619 | 21 | #include <zorba/zorba_string.h> | 21 | #include <zorba/zorba_string.h> |
621 | 22 | #include <zorba/transcode_stream.h> | 22 | #include <zorba/util/transcode_stream.h> |
622 | 23 | 23 | ||
623 | 24 | #include "diagnostics/xquery_diagnostics.h" | 24 | #include "diagnostics/xquery_diagnostics.h" |
624 | 25 | #include "diagnostics/assert.h" | 25 | #include "diagnostics/assert.h" |
625 | 26 | 26 | ||
626 | === modified file 'src/api/smart_ptr.cpp' | |||
627 | --- src/api/smart_ptr.cpp 2013-02-07 17:24:36 +0000 | |||
628 | +++ src/api/smart_ptr.cpp 2013-06-13 01:24:25 +0000 | |||
629 | @@ -13,9 +13,10 @@ | |||
630 | 13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
631 | 14 | * limitations under the License. | 14 | * limitations under the License. |
632 | 15 | */ | 15 | */ |
636 | 16 | #include "stdafx.h" | 16 | |
637 | 17 | #include <zorba/smart_ptr.h> | 17 | #include "stdafx.h" |
638 | 18 | #include "stdafx.h" | 18 | |
639 | 19 | #include <zorba/util/smart_ptr.h> | ||
640 | 19 | 20 | ||
641 | 20 | namespace zorba { | 21 | namespace zorba { |
642 | 21 | 22 | ||
643 | 22 | 23 | ||
644 | === modified file 'src/api/transcode_streambuf.cpp' | |||
645 | --- src/api/transcode_streambuf.cpp 2013-02-07 17:24:36 +0000 | |||
646 | +++ src/api/transcode_streambuf.cpp 2013-06-13 01:24:25 +0000 | |||
647 | @@ -15,7 +15,7 @@ | |||
648 | 15 | */ | 15 | */ |
649 | 16 | 16 | ||
650 | 17 | #include "stdafx.h" | 17 | #include "stdafx.h" |
652 | 18 | #include <zorba/transcode_stream.h> | 18 | #include <zorba/util/transcode_stream.h> |
653 | 19 | 19 | ||
654 | 20 | #include "util/transcode_streambuf.h" | 20 | #include "util/transcode_streambuf.h" |
655 | 21 | 21 | ||
656 | 22 | 22 | ||
657 | === modified file 'src/compiler/expression/ftnode.cpp' | |||
658 | --- src/compiler/expression/ftnode.cpp 2013-06-01 00:30:39 +0000 | |||
659 | +++ src/compiler/expression/ftnode.cpp 2013-06-13 01:24:25 +0000 | |||
660 | @@ -22,8 +22,8 @@ | |||
661 | 22 | #include "types/casting.h" | 22 | #include "types/casting.h" |
662 | 23 | #include "util/ascii_util.h" | 23 | #include "util/ascii_util.h" |
663 | 24 | #include "util/indent.h" | 24 | #include "util/indent.h" |
664 | 25 | #include "util/locale.h" | ||
665 | 25 | #include "util/stl_util.h" | 26 | #include "util/stl_util.h" |
666 | 26 | #include "zorbautils/locale.h" | ||
667 | 27 | 27 | ||
668 | 28 | #include "expr_visitor.h" | 28 | #include "expr_visitor.h" |
669 | 29 | #include "ftnode.h" | 29 | #include "ftnode.h" |
670 | 30 | 30 | ||
671 | === modified file 'src/compiler/expression/ftnode.h' | |||
672 | --- src/compiler/expression/ftnode.h 2013-06-01 00:30:39 +0000 | |||
673 | +++ src/compiler/expression/ftnode.h 2013-06-13 01:24:25 +0000 | |||
674 | @@ -17,8 +17,8 @@ | |||
675 | 17 | #ifndef ZORBA_COMPILER_FTNODE_H | 17 | #ifndef ZORBA_COMPILER_FTNODE_H |
676 | 18 | #define ZORBA_COMPILER_FTNODE_H | 18 | #define ZORBA_COMPILER_FTNODE_H |
677 | 19 | 19 | ||
678 | 20 | #include <zorba/locale.h> | ||
679 | 21 | #include <zorba/internal/cxx_util.h> | 20 | #include <zorba/internal/cxx_util.h> |
680 | 21 | #include <zorba/util/locale.h> | ||
681 | 22 | 22 | ||
682 | 23 | #include "common/shared_types.h" | 23 | #include "common/shared_types.h" |
683 | 24 | 24 | ||
684 | 25 | 25 | ||
685 | === modified file 'src/context/dynamic_context.h' | |||
686 | --- src/context/dynamic_context.h 2013-05-08 08:01:05 +0000 | |||
687 | +++ src/context/dynamic_context.h 2013-06-13 01:24:25 +0000 | |||
688 | @@ -18,11 +18,11 @@ | |||
689 | 18 | #define ZORBA_DYNAMIC_CONTEXT_H | 18 | #define ZORBA_DYNAMIC_CONTEXT_H |
690 | 19 | 19 | ||
691 | 20 | #include <zorba/external_function_parameter.h> | 20 | #include <zorba/external_function_parameter.h> |
693 | 21 | #include <zorba/time.h> | 21 | #include <zorba/util/calendar.h> |
694 | 22 | 22 | ||
695 | 23 | #include "util/locale.h" | ||
696 | 23 | #include "zorbautils/hashmap_zstring.h" | 24 | #include "zorbautils/hashmap_zstring.h" |
697 | 24 | #include "zorbautils/hashmap_itemp.h" | 25 | #include "zorbautils/hashmap_itemp.h" |
698 | 25 | #include "zorbautils/locale.h" | ||
699 | 26 | 26 | ||
700 | 27 | #include "common/shared_types.h" | 27 | #include "common/shared_types.h" |
701 | 28 | 28 | ||
702 | 29 | 29 | ||
703 | === modified file 'src/context/uri_resolver.h' | |||
704 | --- src/context/uri_resolver.h 2013-02-07 17:24:36 +0000 | |||
705 | +++ src/context/uri_resolver.h 2013-06-13 01:24:25 +0000 | |||
706 | @@ -34,7 +34,7 @@ | |||
707 | 34 | #include <util/auto_vector.h> | 34 | #include <util/auto_vector.h> |
708 | 35 | #include <store/api/shared_types.h> | 35 | #include <store/api/shared_types.h> |
709 | 36 | #include <zorba/streams.h> | 36 | #include <zorba/streams.h> |
711 | 37 | #include <zorba/locale.h> | 37 | #include <zorba/util/locale.h> |
712 | 38 | 38 | ||
713 | 39 | namespace zorba { | 39 | namespace zorba { |
714 | 40 | 40 | ||
715 | 41 | 41 | ||
716 | === modified file 'src/debugger/debugger_clientimpl.cpp' | |||
717 | --- src/debugger/debugger_clientimpl.cpp 2013-02-07 17:24:36 +0000 | |||
718 | +++ src/debugger/debugger_clientimpl.cpp 2013-06-13 01:24:25 +0000 | |||
719 | @@ -14,11 +14,14 @@ | |||
720 | 14 | * limitations under the License. | 14 | * limitations under the License. |
721 | 15 | */ | 15 | */ |
722 | 16 | #include "stdafx.h" | 16 | #include "stdafx.h" |
723 | 17 | |||
724 | 17 | #include <iostream> | 18 | #include <iostream> |
725 | 18 | #include <sstream> | 19 | #include <sstream> |
726 | 19 | #include <cassert> | 20 | #include <cassert> |
727 | 21 | |||
728 | 20 | #include <zorba/debugger_event_handler.h> | 22 | #include <zorba/debugger_event_handler.h> |
730 | 21 | #include <zorba/base64.h> | 23 | #include <zorba/util/base64_util.h> |
731 | 24 | |||
732 | 22 | #include "debugger/debugger_clientimpl.h" | 25 | #include "debugger/debugger_clientimpl.h" |
733 | 23 | #include "debugger/socket_streambuf.h" | 26 | #include "debugger/socket_streambuf.h" |
734 | 24 | 27 | ||
735 | @@ -566,7 +569,7 @@ | |||
736 | 566 | DebuggerClientImpl::eval(std::string const &aExpr) | 569 | DebuggerClientImpl::eval(std::string const &aExpr) |
737 | 567 | { | 570 | { |
738 | 568 | std::size_t id = ++theLastId; | 571 | std::size_t id = ++theLastId; |
740 | 569 | *theOutStream << "eval -i " << id << " -- " << encoding::Base64::encode(aExpr.c_str()) << '\0'; | 572 | *theOutStream << "eval -i " << id << " -- " << base64::encode(aExpr.c_str()) << '\0'; |
741 | 570 | theOutStream->flush(); | 573 | theOutStream->flush(); |
742 | 571 | return id; | 574 | return id; |
743 | 572 | } | 575 | } |
744 | 573 | 576 | ||
745 | === modified file 'src/debugger/debugger_server.cpp' | |||
746 | --- src/debugger/debugger_server.cpp 2013-02-07 17:24:36 +0000 | |||
747 | +++ src/debugger/debugger_server.cpp 2013-06-13 01:24:25 +0000 | |||
748 | @@ -22,7 +22,7 @@ | |||
749 | 22 | # include <signal.h> | 22 | # include <signal.h> |
750 | 23 | #endif | 23 | #endif |
751 | 24 | 24 | ||
753 | 25 | #include <zorba/base64.h> | 25 | #include <zorba/util/base64_util.h> |
754 | 26 | #include <zorba/util/uri.h> | 26 | #include <zorba/util/uri.h> |
755 | 27 | 27 | ||
756 | 28 | #include "api/xqueryimpl.h" | 28 | #include "api/xqueryimpl.h" |
757 | @@ -401,7 +401,7 @@ | |||
758 | 401 | try { | 401 | try { |
759 | 402 | 402 | ||
760 | 403 | String lEncodedData(aCommand.getData()); | 403 | String lEncodedData(aCommand.getData()); |
762 | 404 | String lDecodedData = encoding::Base64::decode(lEncodedData); | 404 | String lDecodedData = base64::decode(lEncodedData); |
763 | 405 | 405 | ||
764 | 406 | zstring lVar(lDecodedData.c_str()); | 406 | zstring lVar(lDecodedData.c_str()); |
765 | 407 | std::list<std::pair<zstring, zstring> > lResults = theRuntime->eval(lVar); | 407 | std::list<std::pair<zstring, zstring> > lResults = theRuntime->eval(lVar); |
766 | @@ -734,7 +734,7 @@ | |||
767 | 734 | buildChildProperties(aName, lResults, aStream); | 734 | buildChildProperties(aName, lResults, aStream); |
768 | 735 | } else if (lResults.size() == 1) { | 735 | } else if (lResults.size() == 1) { |
769 | 736 | String lValue(lResults.front().first.c_str()); | 736 | String lValue(lResults.front().first.c_str()); |
771 | 737 | aStream << encoding::Base64::encode(lValue); | 737 | aStream << base64::encode(lValue); |
772 | 738 | } | 738 | } |
773 | 739 | 739 | ||
774 | 740 | aStream << "</property>"; | 740 | aStream << "</property>"; |
775 | @@ -761,7 +761,7 @@ | |||
776 | 761 | << "encoding=\"base64\" " | 761 | << "encoding=\"base64\" " |
777 | 762 | << "constant=\"1\" " | 762 | << "constant=\"1\" " |
778 | 763 | << "children=\"0\" " | 763 | << "children=\"0\" " |
780 | 764 | << ">" << encoding::Base64::encode(lValue) | 764 | << ">" << base64::encode(lValue) |
781 | 765 | << "</property>"; | 765 | << "</property>"; |
782 | 766 | } | 766 | } |
783 | 767 | } | 767 | } |
784 | 768 | 768 | ||
785 | === modified file 'src/diagnostics/dict.cpp' | |||
786 | --- src/diagnostics/dict.cpp 2013-02-07 17:24:36 +0000 | |||
787 | +++ src/diagnostics/dict.cpp 2013-06-13 01:24:25 +0000 | |||
788 | @@ -20,7 +20,7 @@ | |||
789 | 20 | #include <utility> /* for pair */ | 20 | #include <utility> /* for pair */ |
790 | 21 | #include <cassert> | 21 | #include <cassert> |
791 | 22 | 22 | ||
793 | 23 | #include "zorbautils/locale.h" | 23 | #include "util/locale.h" |
794 | 24 | 24 | ||
795 | 25 | #include "dict.h" | 25 | #include "dict.h" |
796 | 26 | #include "dict_impl.h" | 26 | #include "dict_impl.h" |
797 | 27 | 27 | ||
798 | === modified file 'src/precompiled/stdafx.h' | |||
799 | --- src/precompiled/stdafx.h 2013-06-01 00:30:39 +0000 | |||
800 | +++ src/precompiled/stdafx.h 2013-06-13 01:24:25 +0000 | |||
801 | @@ -49,16 +49,19 @@ | |||
802 | 49 | #include <zorba/store_manager.h> | 49 | #include <zorba/store_manager.h> |
803 | 50 | #include <zorba/xquery.h> | 50 | #include <zorba/xquery.h> |
804 | 51 | #include <zorba/xquery_exception.h> | 51 | #include <zorba/xquery_exception.h> |
805 | 52 | |||
806 | 52 | #include "diagnostics/assert.h" | 53 | #include "diagnostics/assert.h" |
809 | 53 | #include "zorbatypes/mapm/m_apm_lc.h" | 54 | #include "util/cxx_util.h" |
810 | 54 | #include "zorbatypes/datetime/parse.h" | 55 | #include "util/locale.h" |
811 | 55 | #include "zorbatypes/chartype.h" | 56 | #include "zorbatypes/chartype.h" |
812 | 56 | #include "zorbatypes/collation_manager.h" | 57 | #include "zorbatypes/collation_manager.h" |
813 | 58 | #include "zorbatypes/datetime/parse.h" | ||
814 | 57 | #include "zorbatypes/ft_token.h" | 59 | #include "zorbatypes/ft_token.h" |
815 | 58 | #include "zorbatypes/m_apm.h" | 60 | #include "zorbatypes/m_apm.h" |
816 | 61 | #include "zorbatypes/mapm/m_apm_lc.h" | ||
817 | 59 | #include "zorbatypes/rclock.h" | 62 | #include "zorbatypes/rclock.h" |
818 | 60 | #include "zorbatypes/schema_types.h" | 63 | #include "zorbatypes/schema_types.h" |
820 | 61 | // | 64 | |
821 | 62 | #include "zorbatypes/timezone.h" | 65 | #include "zorbatypes/timezone.h" |
822 | 63 | #include "zorbatypes/URI.h" | 66 | #include "zorbatypes/URI.h" |
823 | 64 | #include "zorbatypes/xerces_xmlcharray.h" | 67 | #include "zorbatypes/xerces_xmlcharray.h" |
824 | @@ -72,7 +75,6 @@ | |||
825 | 72 | #include "zorbautils/hashset.h" | 75 | #include "zorbautils/hashset.h" |
826 | 73 | 76 | ||
827 | 74 | #include "zorbautils/latch.h" | 77 | #include "zorbautils/latch.h" |
828 | 75 | #include "zorbautils/locale.h" | ||
829 | 76 | #include "zorbautils/lock.h" | 78 | #include "zorbautils/lock.h" |
830 | 77 | #include "zorbautils/mutex.h" | 79 | #include "zorbautils/mutex.h" |
831 | 78 | #include "zorbautils/runnable.h" | 80 | #include "zorbautils/runnable.h" |
832 | 79 | 81 | ||
833 | === modified file 'src/runtime/base64/base64_impl.cpp' | |||
834 | --- src/runtime/base64/base64_impl.cpp 2013-04-16 21:12:12 +0000 | |||
835 | +++ src/runtime/base64/base64_impl.cpp 2013-06-13 01:24:25 +0000 | |||
836 | @@ -16,7 +16,7 @@ | |||
837 | 16 | #include "stdafx.h" | 16 | #include "stdafx.h" |
838 | 17 | 17 | ||
839 | 18 | #include <sstream> | 18 | #include <sstream> |
841 | 19 | #include <zorba/transcode_stream.h> | 19 | #include <zorba/util/transcode_stream.h> |
842 | 20 | 20 | ||
843 | 21 | #include "system/globalenv.h" | 21 | #include "system/globalenv.h" |
844 | 22 | 22 | ||
845 | 23 | 23 | ||
846 | === modified file 'src/runtime/durations_dates_times/format_dateTime.cpp' | |||
847 | --- src/runtime/durations_dates_times/format_dateTime.cpp 2013-05-22 02:22:35 +0000 | |||
848 | +++ src/runtime/durations_dates_times/format_dateTime.cpp 2013-06-13 01:24:25 +0000 | |||
849 | @@ -32,13 +32,13 @@ | |||
850 | 32 | #include "store/api/store.h" | 32 | #include "store/api/store.h" |
851 | 33 | #include "system/globalenv.h" | 33 | #include "system/globalenv.h" |
852 | 34 | #include "util/ascii_util.h" | 34 | #include "util/ascii_util.h" |
853 | 35 | #include "util/locale.h" | ||
854 | 35 | #include "util/stream_util.h" | 36 | #include "util/stream_util.h" |
855 | 36 | #include "util/string_util.h" | 37 | #include "util/string_util.h" |
856 | 37 | #include "util/time_util.h" | 38 | #include "util/time_util.h" |
857 | 38 | #include "util/utf8_util.h" | 39 | #include "util/utf8_util.h" |
858 | 39 | #include "zorbatypes/datetime.h" | 40 | #include "zorbatypes/datetime.h" |
859 | 40 | #include "zorbatypes/zstring.h" | 41 | #include "zorbatypes/zstring.h" |
860 | 41 | #include "zorbautils/locale.h" | ||
861 | 42 | 42 | ||
862 | 43 | // local | 43 | // local |
863 | 44 | #include "format_dateTime.h" | 44 | #include "format_dateTime.h" |
864 | 45 | 45 | ||
865 | === modified file 'src/runtime/fetch/fetch_impl.cpp' | |||
866 | --- src/runtime/fetch/fetch_impl.cpp 2013-02-26 04:12:43 +0000 | |||
867 | +++ src/runtime/fetch/fetch_impl.cpp 2013-06-13 01:24:25 +0000 | |||
868 | @@ -15,7 +15,7 @@ | |||
869 | 15 | */ | 15 | */ |
870 | 16 | #include "stdafx.h" | 16 | #include "stdafx.h" |
871 | 17 | 17 | ||
873 | 18 | #include <zorba/transcode_stream.h> | 18 | #include <zorba/util/transcode_stream.h> |
874 | 19 | 19 | ||
875 | 20 | #include "diagnostics/assert.h" | 20 | #include "diagnostics/assert.h" |
876 | 21 | #include "diagnostics/xquery_diagnostics.h" | 21 | #include "diagnostics/xquery_diagnostics.h" |
877 | 22 | 22 | ||
878 | === modified file 'src/runtime/full_text/apply.cpp' | |||
879 | --- src/runtime/full_text/apply.cpp 2013-06-07 22:04:25 +0000 | |||
880 | +++ src/runtime/full_text/apply.cpp 2013-06-13 01:24:25 +0000 | |||
881 | @@ -31,9 +31,9 @@ | |||
882 | 31 | #include "store/api/store.h" | 31 | #include "store/api/store.h" |
883 | 32 | #include "system/globalenv.h" | 32 | #include "system/globalenv.h" |
884 | 33 | #include "util/indent.h" | 33 | #include "util/indent.h" |
885 | 34 | #include "util/locale.h" | ||
886 | 34 | #include "util/stl_util.h" | 35 | #include "util/stl_util.h" |
887 | 35 | #include "zorbamisc/ns_consts.h" | 36 | #include "zorbamisc/ns_consts.h" |
888 | 36 | #include "zorbautils/locale.h" | ||
889 | 37 | 37 | ||
890 | 38 | #ifndef NDEBUG | 38 | #ifndef NDEBUG |
891 | 39 | # include "system/properties.h" | 39 | # include "system/properties.h" |
892 | 40 | 40 | ||
893 | === modified file 'src/runtime/full_text/ft_module_impl.cpp' | |||
894 | --- src/runtime/full_text/ft_module_impl.cpp 2013-05-30 21:22:57 +0000 | |||
895 | +++ src/runtime/full_text/ft_module_impl.cpp 2013-06-13 01:24:25 +0000 | |||
896 | @@ -44,11 +44,11 @@ | |||
897 | 44 | #include "types/casting.h" | 44 | #include "types/casting.h" |
898 | 45 | #include "types/typeimpl.h" | 45 | #include "types/typeimpl.h" |
899 | 46 | #include "types/typeops.h" | 46 | #include "types/typeops.h" |
900 | 47 | #include "util/locale.h" | ||
901 | 47 | #include "util/stl_util.h" | 48 | #include "util/stl_util.h" |
902 | 48 | #include "util/utf8_util.h" | 49 | #include "util/utf8_util.h" |
903 | 49 | #include "zorbatypes/integer.h" | 50 | #include "zorbatypes/integer.h" |
904 | 50 | #include "zorbatypes/URI.h" | 51 | #include "zorbatypes/URI.h" |
905 | 51 | #include "zorbautils/locale.h" | ||
906 | 52 | 52 | ||
907 | 53 | #include "ft_module_util.h" | 53 | #include "ft_module_util.h" |
908 | 54 | #include "ft_stop_words_set.h" | 54 | #include "ft_stop_words_set.h" |
909 | 55 | 55 | ||
910 | === modified file 'src/runtime/full_text/ft_stop_words_set.cpp' | |||
911 | --- src/runtime/full_text/ft_stop_words_set.cpp 2013-06-01 00:30:39 +0000 | |||
912 | +++ src/runtime/full_text/ft_stop_words_set.cpp 2013-06-13 01:24:25 +0000 | |||
913 | @@ -21,10 +21,10 @@ | |||
914 | 21 | #include "context/static_context.h" | 21 | #include "context/static_context.h" |
915 | 22 | #include "context/uri_resolver.h" | 22 | #include "context/uri_resolver.h" |
916 | 23 | #include "util/ascii_util.h" | 23 | #include "util/ascii_util.h" |
917 | 24 | #include "util/locale.h" | ||
918 | 24 | #include "util/mmap_file.h" | 25 | #include "util/mmap_file.h" |
919 | 25 | #include "util/stl_util.h" | 26 | #include "util/stl_util.h" |
920 | 26 | #include "util/uri_util.h" | 27 | #include "util/uri_util.h" |
921 | 27 | #include "zorbautils/locale.h" | ||
922 | 28 | 28 | ||
923 | 29 | #include "ft_stop_words_set.h" | 29 | #include "ft_stop_words_set.h" |
924 | 30 | 30 | ||
925 | 31 | 31 | ||
926 | === modified file 'src/runtime/full_text/ft_stop_words_set.h' | |||
927 | --- src/runtime/full_text/ft_stop_words_set.h 2013-02-07 17:24:36 +0000 | |||
928 | +++ src/runtime/full_text/ft_stop_words_set.h 2013-06-13 01:24:25 +0000 | |||
929 | @@ -19,8 +19,8 @@ | |||
930 | 19 | 19 | ||
931 | 20 | #include <set> | 20 | #include <set> |
932 | 21 | 21 | ||
933 | 22 | #include <zorba/locale.h> | ||
934 | 23 | #include <zorba/internal/unique_ptr.h> | 22 | #include <zorba/internal/unique_ptr.h> |
935 | 23 | #include <zorba/util/locale.h> | ||
936 | 24 | 24 | ||
937 | 25 | #include "compiler/expression/ftnode.h" | 25 | #include "compiler/expression/ftnode.h" |
938 | 26 | #include "zorbatypes/zstring.h" | 26 | #include "zorbatypes/zstring.h" |
939 | 27 | 27 | ||
940 | === modified file 'src/runtime/full_text/ft_thesaurus.h' | |||
941 | --- src/runtime/full_text/ft_thesaurus.h 2013-02-07 17:24:36 +0000 | |||
942 | +++ src/runtime/full_text/ft_thesaurus.h 2013-06-13 01:24:25 +0000 | |||
943 | @@ -17,8 +17,8 @@ | |||
944 | 17 | #ifndef ZORBA_FULL_TEXT_FT_THESAURUS_H | 17 | #ifndef ZORBA_FULL_TEXT_FT_THESAURUS_H |
945 | 18 | #define ZORBA_FULL_TEXT_FT_THESAURUS_H | 18 | #define ZORBA_FULL_TEXT_FT_THESAURUS_H |
946 | 19 | 19 | ||
947 | 20 | #include <zorba/locale.h> | ||
948 | 21 | #include <zorba/internal/unique_ptr.h> | 20 | #include <zorba/internal/unique_ptr.h> |
949 | 21 | #include <zorba/util/locale.h> | ||
950 | 22 | 22 | ||
951 | 23 | #include "zorbatypes/zstring.h" | 23 | #include "zorbatypes/zstring.h" |
952 | 24 | 24 | ||
953 | 25 | 25 | ||
954 | === modified file 'src/runtime/full_text/ft_token_matcher.h' | |||
955 | --- src/runtime/full_text/ft_token_matcher.h 2013-02-07 17:24:36 +0000 | |||
956 | +++ src/runtime/full_text/ft_token_matcher.h 2013-06-13 01:24:25 +0000 | |||
957 | @@ -17,7 +17,7 @@ | |||
958 | 17 | #ifndef ZORBA_FULL_TEXT_FT_TOKEN_MATCHER_H | 17 | #ifndef ZORBA_FULL_TEXT_FT_TOKEN_MATCHER_H |
959 | 18 | #define ZORBA_FULL_TEXT_FT_TOKEN_MATCHER_H | 18 | #define ZORBA_FULL_TEXT_FT_TOKEN_MATCHER_H |
960 | 19 | 19 | ||
962 | 20 | #include <zorba/locale.h> | 20 | #include <zorba/util/locale.h> |
963 | 21 | 21 | ||
964 | 22 | #include "compiler/expression/ftnode.h" | 22 | #include "compiler/expression/ftnode.h" |
965 | 23 | #include "context/static_context.h" | 23 | #include "context/static_context.h" |
966 | 24 | 24 | ||
967 | === modified file 'src/runtime/full_text/ft_util.cpp' | |||
968 | --- src/runtime/full_text/ft_util.cpp 2013-05-08 20:14:47 +0000 | |||
969 | +++ src/runtime/full_text/ft_util.cpp 2013-06-13 01:24:25 +0000 | |||
970 | @@ -19,10 +19,10 @@ | |||
971 | 19 | #include <stdexcept> | 19 | #include <stdexcept> |
972 | 20 | 20 | ||
973 | 21 | #include "diagnostics/xquery_diagnostics.h" | 21 | #include "diagnostics/xquery_diagnostics.h" |
974 | 22 | #include "util/locale.h" | ||
975 | 22 | #include "zorbamisc/ns_consts.h" | 23 | #include "zorbamisc/ns_consts.h" |
976 | 23 | #include "zorbatypes/integer.h" | 24 | #include "zorbatypes/integer.h" |
977 | 24 | #include "zorbatypes/numconversions.h" | 25 | #include "zorbatypes/numconversions.h" |
978 | 25 | #include "zorbautils/locale.h" | ||
979 | 26 | 26 | ||
980 | 27 | #include "ft_util.h" | 27 | #include "ft_util.h" |
981 | 28 | 28 | ||
982 | 29 | 29 | ||
983 | === modified file 'src/runtime/full_text/ft_util.h' | |||
984 | --- src/runtime/full_text/ft_util.h 2013-06-01 00:30:39 +0000 | |||
985 | +++ src/runtime/full_text/ft_util.h 2013-06-13 01:24:25 +0000 | |||
986 | @@ -19,7 +19,7 @@ | |||
987 | 19 | 19 | ||
988 | 20 | #include <zorba/internal/cxx_util.h> | 20 | #include <zorba/internal/cxx_util.h> |
989 | 21 | #include <zorba/item.h> | 21 | #include <zorba/item.h> |
991 | 22 | #include <zorba/locale.h> | 22 | #include <zorba/util/locale.h> |
992 | 23 | 23 | ||
993 | 24 | #include "compiler/expression/ftnode.h" | 24 | #include "compiler/expression/ftnode.h" |
994 | 25 | #include "store/api/item.h" | 25 | #include "store/api/item.h" |
995 | 26 | 26 | ||
996 | === modified file 'src/runtime/full_text/full_text_impl.cpp' | |||
997 | --- src/runtime/full_text/full_text_impl.cpp 2013-02-07 17:24:36 +0000 | |||
998 | +++ src/runtime/full_text/full_text_impl.cpp 2013-06-13 01:24:25 +0000 | |||
999 | @@ -15,7 +15,7 @@ | |||
1000 | 15 | */ | 15 | */ |
1001 | 16 | #include "stdafx.h" | 16 | #include "stdafx.h" |
1002 | 17 | 17 | ||
1004 | 18 | #include <zorba/locale.h> | 18 | #include <zorba/util/locale.h> |
1005 | 19 | 19 | ||
1006 | 20 | #include "common/common.h" | 20 | #include "common/common.h" |
1007 | 21 | #include "store/api/ft_token_iterator.h" | 21 | #include "store/api/ft_token_iterator.h" |
1008 | 22 | 22 | ||
1009 | === modified file 'src/runtime/full_text/icu_tokenizer.cpp' | |||
1010 | --- src/runtime/full_text/icu_tokenizer.cpp 2013-06-01 00:30:39 +0000 | |||
1011 | +++ src/runtime/full_text/icu_tokenizer.cpp 2013-06-13 01:24:25 +0000 | |||
1012 | @@ -33,10 +33,10 @@ | |||
1013 | 33 | #include "diagnostics/xquery_exception.h" | 33 | #include "diagnostics/xquery_exception.h" |
1014 | 34 | #include "diagnostics/zorba_exception.h" | 34 | #include "diagnostics/zorba_exception.h" |
1015 | 35 | #include "util/ascii_util.h" | 35 | #include "util/ascii_util.h" |
1016 | 36 | #include "util/locale.h" | ||
1017 | 36 | #include "util/stl_util.h" | 37 | #include "util/stl_util.h" |
1018 | 37 | #include "util/unicode_util.h" | 38 | #include "util/unicode_util.h" |
1019 | 38 | #include "util/utf8_util.h" | 39 | #include "util/utf8_util.h" |
1020 | 39 | #include "zorbautils/locale.h" | ||
1021 | 40 | #include "zorbautils/mutex.h" | 40 | #include "zorbautils/mutex.h" |
1022 | 41 | 41 | ||
1023 | 42 | #include "icu_tokenizer.h" | 42 | #include "icu_tokenizer.h" |
1024 | 43 | 43 | ||
1025 | === modified file 'src/runtime/full_text/icu_tokenizer.h' | |||
1026 | --- src/runtime/full_text/icu_tokenizer.h 2013-06-01 00:30:39 +0000 | |||
1027 | +++ src/runtime/full_text/icu_tokenizer.h 2013-06-13 01:24:25 +0000 | |||
1028 | @@ -21,8 +21,8 @@ | |||
1029 | 21 | 21 | ||
1030 | 22 | #include <zorba/internal/cxx_util.h> | 22 | #include <zorba/internal/cxx_util.h> |
1031 | 23 | #include <zorba/internal/unique_ptr.h> | 23 | #include <zorba/internal/unique_ptr.h> |
1032 | 24 | #include <zorba/locale.h> | ||
1033 | 25 | #include <zorba/tokenizer.h> | 24 | #include <zorba/tokenizer.h> |
1034 | 25 | #include <zorba/util/locale.h> | ||
1035 | 26 | 26 | ||
1036 | 27 | namespace zorba { | 27 | namespace zorba { |
1037 | 28 | 28 | ||
1038 | 29 | 29 | ||
1039 | === modified file 'src/runtime/full_text/stemmer.cpp' | |||
1040 | --- src/runtime/full_text/stemmer.cpp 2013-06-01 00:30:39 +0000 | |||
1041 | +++ src/runtime/full_text/stemmer.cpp 2013-06-13 01:24:25 +0000 | |||
1042 | @@ -17,7 +17,7 @@ | |||
1043 | 17 | 17 | ||
1044 | 18 | #include <zorba/internal/cxx_util.h> | 18 | #include <zorba/internal/cxx_util.h> |
1045 | 19 | 19 | ||
1047 | 20 | #include "zorbautils/locale.h" | 20 | #include "util/locale.h" |
1048 | 21 | #include "zorbautils/mutex.h" | 21 | #include "zorbautils/mutex.h" |
1049 | 22 | 22 | ||
1050 | 23 | #include "stemmer.h" | 23 | #include "stemmer.h" |
1051 | 24 | 24 | ||
1052 | === modified file 'src/runtime/full_text/stemmer.h' | |||
1053 | --- src/runtime/full_text/stemmer.h 2013-02-07 17:24:36 +0000 | |||
1054 | +++ src/runtime/full_text/stemmer.h 2013-06-13 01:24:25 +0000 | |||
1055 | @@ -22,7 +22,7 @@ | |||
1056 | 22 | #ifndef ZORBA_NO_FULL_TEXT | 22 | #ifndef ZORBA_NO_FULL_TEXT |
1057 | 23 | 23 | ||
1058 | 24 | #include <zorba/internal/unique_ptr.h> | 24 | #include <zorba/internal/unique_ptr.h> |
1060 | 25 | #include <zorba/locale.h> | 25 | #include <zorba/util/locale.h> |
1061 | 26 | 26 | ||
1062 | 27 | #include "util/stl_util.h" | 27 | #include "util/stl_util.h" |
1063 | 28 | #include "zorbatypes/zstring.h" | 28 | #include "zorbatypes/zstring.h" |
1064 | 29 | 29 | ||
1065 | === modified file 'src/runtime/full_text/stemmer/sb_stemmer.cpp' | |||
1066 | --- src/runtime/full_text/stemmer/sb_stemmer.cpp 2013-06-01 00:30:39 +0000 | |||
1067 | +++ src/runtime/full_text/stemmer/sb_stemmer.cpp 2013-06-13 01:24:25 +0000 | |||
1068 | @@ -17,8 +17,8 @@ | |||
1069 | 17 | 17 | ||
1070 | 18 | #include <zorba/internal/cxx_util.h> | 18 | #include <zorba/internal/cxx_util.h> |
1071 | 19 | 19 | ||
1072 | 20 | #include "util/locale.h" | ||
1073 | 20 | #include "zorbautils/fatal.h" | 21 | #include "zorbautils/fatal.h" |
1074 | 21 | #include "zorbautils/locale.h" | ||
1075 | 22 | 22 | ||
1076 | 23 | #include "sb_stemmer.h" | 23 | #include "sb_stemmer.h" |
1077 | 24 | 24 | ||
1078 | 25 | 25 | ||
1079 | === modified file 'src/runtime/full_text/thesauri/iso2788.h' | |||
1080 | --- src/runtime/full_text/thesauri/iso2788.h 2013-02-07 17:24:36 +0000 | |||
1081 | +++ src/runtime/full_text/thesauri/iso2788.h 2013-06-13 01:24:25 +0000 | |||
1082 | @@ -20,7 +20,7 @@ | |||
1083 | 20 | #include <cstdlib> /* for abs(3) */ | 20 | #include <cstdlib> /* for abs(3) */ |
1084 | 21 | #include <iostream> | 21 | #include <iostream> |
1085 | 22 | 22 | ||
1087 | 23 | #include <zorba/locale.h> | 23 | #include <zorba/util/locale.h> |
1088 | 24 | 24 | ||
1089 | 25 | namespace zorba { | 25 | namespace zorba { |
1090 | 26 | 26 | ||
1091 | 27 | 27 | ||
1092 | === modified file 'src/runtime/full_text/thesauri/wn_thesaurus.cpp' | |||
1093 | --- src/runtime/full_text/thesauri/wn_thesaurus.cpp 2013-06-01 00:30:39 +0000 | |||
1094 | +++ src/runtime/full_text/thesauri/wn_thesaurus.cpp 2013-06-13 01:24:25 +0000 | |||
1095 | @@ -30,11 +30,12 @@ | |||
1096 | 30 | #include "system/globalenv.h" | 30 | #include "system/globalenv.h" |
1097 | 31 | #include "util/fs_util.h" | 31 | #include "util/fs_util.h" |
1098 | 32 | #include "util/less.h" | 32 | #include "util/less.h" |
1099 | 33 | #include "util/locale.h" | ||
1100 | 33 | #if DEBUG_FT_THESAURUS | 34 | #if DEBUG_FT_THESAURUS |
1101 | 34 | # include "util/oseparator.h" | 35 | # include "util/oseparator.h" |
1102 | 35 | #endif | 36 | #endif |
1103 | 36 | #include "util/utf8_util.h" | 37 | #include "util/utf8_util.h" |
1105 | 37 | #include "zorbautils/locale.h" | 38 | #include "system/globalenv.h" |
1106 | 38 | 39 | ||
1107 | 39 | #include "decode_base128.h" | 40 | #include "decode_base128.h" |
1108 | 40 | #include "wn_db_segment.h" | 41 | #include "wn_db_segment.h" |
1109 | 41 | 42 | ||
1110 | === modified file 'src/runtime/full_text/thesauri/xqftts_relationship.cpp' | |||
1111 | --- src/runtime/full_text/thesauri/xqftts_relationship.cpp 2013-02-07 17:24:36 +0000 | |||
1112 | +++ src/runtime/full_text/thesauri/xqftts_relationship.cpp 2013-06-13 01:24:25 +0000 | |||
1113 | @@ -15,7 +15,7 @@ | |||
1114 | 15 | */ | 15 | */ |
1115 | 16 | #include "stdafx.h" | 16 | #include "stdafx.h" |
1116 | 17 | 17 | ||
1118 | 18 | #include <zorba/locale.h> | 18 | #include <zorba/util/locale.h> |
1119 | 19 | 19 | ||
1120 | 20 | #include "util/utf8_util.h" | 20 | #include "util/utf8_util.h" |
1121 | 21 | 21 | ||
1122 | 22 | 22 | ||
1123 | === modified file 'src/runtime/full_text/thesaurus.h' | |||
1124 | --- src/runtime/full_text/thesaurus.h 2013-02-07 17:24:36 +0000 | |||
1125 | +++ src/runtime/full_text/thesaurus.h 2013-06-13 01:24:25 +0000 | |||
1126 | @@ -17,8 +17,8 @@ | |||
1127 | 17 | #ifndef ZORBA_THESAURUS_H | 17 | #ifndef ZORBA_THESAURUS_H |
1128 | 18 | #define ZORBA_THESAURUS_H | 18 | #define ZORBA_THESAURUS_H |
1129 | 19 | 19 | ||
1130 | 20 | #include <zorba/locale.h> | ||
1131 | 21 | #include <zorba/internal/unique_ptr.h> | 20 | #include <zorba/internal/unique_ptr.h> |
1132 | 21 | #include <zorba/util/locale.h> | ||
1133 | 22 | 22 | ||
1134 | 23 | #include "context/uri_resolver.h" | 23 | #include "context/uri_resolver.h" |
1135 | 24 | #include "util/stl_util.h" | 24 | #include "util/stl_util.h" |
1136 | 25 | 25 | ||
1137 | === modified file 'src/runtime/full_text/tokenizer.cpp' | |||
1138 | --- src/runtime/full_text/tokenizer.cpp 2013-02-07 17:24:36 +0000 | |||
1139 | +++ src/runtime/full_text/tokenizer.cpp 2013-06-13 01:24:25 +0000 | |||
1140 | @@ -25,8 +25,8 @@ | |||
1141 | 25 | #include "diagnostics/assert.h" | 25 | #include "diagnostics/assert.h" |
1142 | 26 | #include "store/api/store.h" | 26 | #include "store/api/store.h" |
1143 | 27 | #include "system/globalenv.h" | 27 | #include "system/globalenv.h" |
1144 | 28 | #include "util/locale.h" | ||
1145 | 28 | #include "zorbamisc/ns_consts.h" | 29 | #include "zorbamisc/ns_consts.h" |
1146 | 29 | #include "zorbautils/locale.h" | ||
1147 | 30 | 30 | ||
1148 | 31 | #include "ft_util.h" | 31 | #include "ft_util.h" |
1149 | 32 | 32 | ||
1150 | 33 | 33 | ||
1151 | === modified file 'src/runtime/sequences/sequences_impl.cpp' | |||
1152 | --- src/runtime/sequences/sequences_impl.cpp 2013-06-11 05:40:04 +0000 | |||
1153 | +++ src/runtime/sequences/sequences_impl.cpp 2013-06-13 01:24:25 +0000 | |||
1154 | @@ -31,7 +31,7 @@ | |||
1155 | 31 | // For timing | 31 | // For timing |
1156 | 32 | #include <zorba/util/time.h> | 32 | #include <zorba/util/time.h> |
1157 | 33 | 33 | ||
1159 | 34 | #include <zorba/transcode_stream.h> | 34 | #include <zorba/util/transcode_stream.h> |
1160 | 35 | 35 | ||
1161 | 36 | #include <util/fs_util.h> | 36 | #include <util/fs_util.h> |
1162 | 37 | #include <util/uri_util.h> | 37 | #include <util/uri_util.h> |
1163 | 38 | 38 | ||
1164 | === modified file 'src/runtime/uris/uris_impl.cpp' | |||
1165 | --- src/runtime/uris/uris_impl.cpp 2013-06-05 00:37:35 +0000 | |||
1166 | +++ src/runtime/uris/uris_impl.cpp 2013-06-13 01:24:25 +0000 | |||
1167 | @@ -17,6 +17,8 @@ | |||
1168 | 17 | 17 | ||
1169 | 18 | #include <algorithm> | 18 | #include <algorithm> |
1170 | 19 | 19 | ||
1171 | 20 | #include <zorba/util/transcode_stream.h> | ||
1172 | 21 | |||
1173 | 20 | #include "common/common.h" | 22 | #include "common/common.h" |
1174 | 21 | 23 | ||
1175 | 22 | #include "diagnostics/assert.h" | 24 | #include "diagnostics/assert.h" |
1176 | @@ -28,8 +30,6 @@ | |||
1177 | 28 | #include "system/globalenv.h" | 30 | #include "system/globalenv.h" |
1178 | 29 | #include "store/api/item_factory.h" | 31 | #include "store/api/item_factory.h" |
1179 | 30 | 32 | ||
1180 | 31 | #include "zorba/transcode_stream.h" | ||
1181 | 32 | |||
1182 | 33 | #include "util/uri_util.h" | 33 | #include "util/uri_util.h" |
1183 | 34 | 34 | ||
1184 | 35 | #include "zorbatypes/URI.h" | 35 | #include "zorbatypes/URI.h" |
1185 | 36 | 36 | ||
1186 | === modified file 'src/store/api/item.h' | |||
1187 | --- src/store/api/item.h 2013-06-05 00:37:35 +0000 | |||
1188 | +++ src/store/api/item.h 2013-06-13 01:24:25 +0000 | |||
1189 | @@ -32,8 +32,8 @@ | |||
1190 | 32 | #include "diagnostics/xquery_diagnostics.h" | 32 | #include "diagnostics/xquery_diagnostics.h" |
1191 | 33 | 33 | ||
1192 | 34 | #ifndef ZORBA_NO_FULL_TEXT | 34 | #ifndef ZORBA_NO_FULL_TEXT |
1193 | 35 | #include <zorba/locale.h> | ||
1194 | 36 | #include <zorba/tokenizer.h> | 35 | #include <zorba/tokenizer.h> |
1195 | 36 | #include <zorba/util/locale.h> | ||
1196 | 37 | #include "store/api/ft_token_iterator.h" | 37 | #include "store/api/ft_token_iterator.h" |
1197 | 38 | #endif /* ZORBA_NO_FULL_TEXT */ | 38 | #endif /* ZORBA_NO_FULL_TEXT */ |
1198 | 39 | 39 | ||
1199 | 40 | 40 | ||
1200 | === modified file 'src/store/naive/node_items.cpp' | |||
1201 | --- src/store/naive/node_items.cpp 2013-04-23 10:58:29 +0000 | |||
1202 | +++ src/store/naive/node_items.cpp 2013-06-13 01:24:25 +0000 | |||
1203 | @@ -22,17 +22,17 @@ | |||
1204 | 22 | #include <zorba/item.h> | 22 | #include <zorba/item.h> |
1205 | 23 | 23 | ||
1206 | 24 | #include "api/unmarshaller.h" | 24 | #include "api/unmarshaller.h" |
1207 | 25 | |||
1208 | 26 | #include "diagnostics/assert.h" | 25 | #include "diagnostics/assert.h" |
1209 | 27 | #include "diagnostics/util_macros.h" | 26 | #include "diagnostics/util_macros.h" |
1210 | 28 | #include "diagnostics/xquery_diagnostics.h" | 27 | #include "diagnostics/xquery_diagnostics.h" |
1212 | 29 | 28 | #ifndef ZORBA_NO_FULL_TEXT | |
1213 | 29 | #include "util/locale.h" | ||
1214 | 30 | #endif /* ZORBA_NO_FULL_TEXT */ | ||
1215 | 31 | #include "util/mem_sizeof.h" | ||
1216 | 32 | #include "util/stl_util.h" | ||
1217 | 33 | #include "util/string_util.h" | ||
1218 | 34 | #include "zorbamisc/ns_consts.h" | ||
1219 | 30 | #include "zorbatypes/URI.h" | 35 | #include "zorbatypes/URI.h" |
1220 | 31 | #ifndef ZORBA_NO_FULL_TEXT | ||
1221 | 32 | #include "zorbautils/locale.h" | ||
1222 | 33 | #endif /* ZORBA_NO_FULL_TEXT */ | ||
1223 | 34 | |||
1224 | 35 | #include "zorbamisc/ns_consts.h" | ||
1225 | 36 | 36 | ||
1226 | 37 | #include "store/api/copymode.h" | 37 | #include "store/api/copymode.h" |
1227 | 38 | #include "atomic_items.h" | 38 | #include "atomic_items.h" |
1228 | @@ -48,10 +48,6 @@ | |||
1229 | 48 | #include "dataguide.h" | 48 | #include "dataguide.h" |
1230 | 49 | #include "node_factory.h" | 49 | #include "node_factory.h" |
1231 | 50 | 50 | ||
1232 | 51 | #include "util/mem_sizeof.h" | ||
1233 | 52 | #include "util/stl_util.h" | ||
1234 | 53 | #include "util/string_util.h" | ||
1235 | 54 | |||
1236 | 55 | #ifndef ZORBA_NO_FULL_TEXT | 51 | #ifndef ZORBA_NO_FULL_TEXT |
1237 | 56 | using namespace zorba::locale; | 52 | using namespace zorba::locale; |
1238 | 57 | #endif /* ZORBA_NO_FULL_TEXT */ | 53 | #endif /* ZORBA_NO_FULL_TEXT */ |
1239 | 58 | 54 | ||
1240 | === modified file 'src/store/naive/node_items.h' | |||
1241 | --- src/store/naive/node_items.h 2013-05-21 21:44:25 +0000 | |||
1242 | +++ src/store/naive/node_items.h 2013-06-13 01:24:25 +0000 | |||
1243 | @@ -22,16 +22,16 @@ | |||
1244 | 22 | 22 | ||
1245 | 23 | #include <store/api/item.h> | 23 | #include <store/api/item.h> |
1246 | 24 | 24 | ||
1247 | 25 | #include <diagnostics/assert.h> | ||
1248 | 26 | #include <zorba/config.h> | 25 | #include <zorba/config.h> |
1249 | 27 | #include <zorba/error.h> | 26 | #include <zorba/error.h> |
1250 | 28 | #ifndef ZORBA_NO_FULL_TEXT | 27 | #ifndef ZORBA_NO_FULL_TEXT |
1251 | 29 | #include <zorba/locale.h> | ||
1252 | 30 | #include <zorba/tokenizer.h> | 28 | #include <zorba/tokenizer.h> |
1253 | 29 | #include <zorba/util/locale.h> | ||
1254 | 31 | #endif /* ZORBA_NO_FULL_TEXT */ | 30 | #endif /* ZORBA_NO_FULL_TEXT */ |
1258 | 32 | #include <zorbatypes/zstring.h> | 31 | #include "diagnostics/assert.h" |
1259 | 33 | #include <zorbautils/fatal.h> | 32 | #include "zorbatypes/zstring.h" |
1260 | 34 | #include <zorbautils/hashfun.h> | 33 | #include "zorbautils/fatal.h" |
1261 | 34 | #include "zorbautils/hashfun.h" | ||
1262 | 35 | 35 | ||
1263 | 36 | #ifndef ZORBA_NO_FULL_TEXT | 36 | #ifndef ZORBA_NO_FULL_TEXT |
1264 | 37 | #include "ft_token_store.h" | 37 | #include "ft_token_store.h" |
1265 | 38 | 38 | ||
1266 | === modified file 'src/unit_tests/test_base64_streambuf.cpp' | |||
1267 | --- src/unit_tests/test_base64_streambuf.cpp 2013-04-16 22:12:03 +0000 | |||
1268 | +++ src/unit_tests/test_base64_streambuf.cpp 2013-06-13 01:24:25 +0000 | |||
1269 | @@ -19,7 +19,7 @@ | |||
1270 | 19 | #include <iostream> | 19 | #include <iostream> |
1271 | 20 | #include <sstream> | 20 | #include <sstream> |
1272 | 21 | 21 | ||
1274 | 22 | #include <zorba/base64_stream.h> | 22 | #include <zorba/util/base64_stream.h> |
1275 | 23 | 23 | ||
1276 | 24 | using namespace std; | 24 | using namespace std; |
1277 | 25 | using namespace zorba; | 25 | using namespace zorba; |
1278 | 26 | 26 | ||
1279 | === modified file 'src/unit_tests/test_time_parse.cpp' | |||
1280 | --- src/unit_tests/test_time_parse.cpp 2013-03-12 03:46:25 +0000 | |||
1281 | +++ src/unit_tests/test_time_parse.cpp 2013-06-13 01:24:25 +0000 | |||
1282 | @@ -23,10 +23,10 @@ | |||
1283 | 23 | #include <string> | 23 | #include <string> |
1284 | 24 | 24 | ||
1285 | 25 | #include "util/ascii_util.h" | 25 | #include "util/ascii_util.h" |
1286 | 26 | #include "util/locale.h" | ||
1287 | 26 | #include "util/stl_util.h" | 27 | #include "util/stl_util.h" |
1288 | 27 | #include "util/time_parse.h" | 28 | #include "util/time_parse.h" |
1289 | 28 | #include "zorbatypes/zstring.h" | 29 | #include "zorbatypes/zstring.h" |
1290 | 29 | #include "zorbautils/locale.h" | ||
1291 | 30 | 30 | ||
1292 | 31 | using namespace std; | 31 | using namespace std; |
1293 | 32 | using namespace zorba; | 32 | using namespace zorba; |
1294 | 33 | 33 | ||
1295 | === modified file 'src/unit_tests/unit_tests.cpp' | |||
1296 | --- src/unit_tests/unit_tests.cpp 2013-05-31 03:38:45 +0000 | |||
1297 | +++ src/unit_tests/unit_tests.cpp 2013-06-13 01:24:25 +0000 | |||
1298 | @@ -15,21 +15,23 @@ | |||
1299 | 15 | */ | 15 | */ |
1300 | 16 | #include "stdafx.h" | 16 | #include "stdafx.h" |
1301 | 17 | 17 | ||
1302 | 18 | #include <zorba/unit_tests.h> | ||
1303 | 19 | #include "unit_test_list.h" | ||
1304 | 20 | |||
1305 | 21 | #include <map> | 18 | #include <map> |
1306 | 22 | #include <string> | 19 | #include <string> |
1307 | 23 | #include <iostream> | 20 | #include <iostream> |
1308 | 24 | 21 | ||
1311 | 25 | 22 | #include <zorba/internal/unit_tests.h> | |
1312 | 26 | typedef int (*libunittestfunc)(int , char*[]); | 23 | |
1313 | 24 | #include "unit_test_list.h" | ||
1314 | 25 | |||
1315 | 26 | typedef int (*libunittestfunc)(int,char*[]); | ||
1316 | 27 | 27 | ||
1317 | 28 | using namespace std; | 28 | using namespace std; |
1318 | 29 | 29 | ||
1319 | 30 | namespace zorba { | 30 | namespace zorba { |
1320 | 31 | namespace UnitTests { | 31 | namespace UnitTests { |
1321 | 32 | 32 | ||
1322 | 33 | /////////////////////////////////////////////////////////////////////////////// | ||
1323 | 34 | |||
1324 | 33 | map<string,libunittestfunc> libunittests; | 35 | map<string,libunittestfunc> libunittests; |
1325 | 34 | 36 | ||
1326 | 35 | /** | 37 | /** |
1327 | @@ -105,6 +107,7 @@ | |||
1328 | 105 | return (* iter->second)(argc, argv); | 107 | return (* iter->second)(argc, argv); |
1329 | 106 | } | 108 | } |
1330 | 107 | 109 | ||
1331 | 110 | /////////////////////////////////////////////////////////////////////////////// | ||
1332 | 108 | 111 | ||
1333 | 109 | } // namespace UnitTests | 112 | } // namespace UnitTests |
1334 | 110 | } // namespace zorba | 113 | } // namespace zorba |
1335 | 111 | 114 | ||
1336 | === modified file 'src/util/CMakeLists.txt' | |||
1337 | --- src/util/CMakeLists.txt 2013-05-31 03:38:45 +0000 | |||
1338 | +++ src/util/CMakeLists.txt 2013-06-13 01:24:25 +0000 | |||
1339 | @@ -22,6 +22,7 @@ | |||
1340 | 22 | indent.cpp | 22 | indent.cpp |
1341 | 23 | json_parser.cpp | 23 | json_parser.cpp |
1342 | 24 | json_util.cpp | 24 | json_util.cpp |
1343 | 25 | locale.cpp | ||
1344 | 25 | mem_streambuf.cpp | 26 | mem_streambuf.cpp |
1345 | 26 | stream_util.cpp | 27 | stream_util.cpp |
1346 | 27 | string_util.cpp | 28 | string_util.cpp |
1347 | 28 | 29 | ||
1348 | === renamed file 'src/zorbautils/locale.cpp' => 'src/util/locale.cpp' | |||
1349 | === renamed file 'src/zorbautils/locale.h' => 'src/util/locale.h' | |||
1350 | --- src/zorbautils/locale.h 2013-05-08 01:05:04 +0000 | |||
1351 | +++ src/util/locale.h 2013-06-13 01:24:25 +0000 | |||
1352 | @@ -19,7 +19,7 @@ | |||
1353 | 19 | 19 | ||
1354 | 20 | #include <iostream> | 20 | #include <iostream> |
1355 | 21 | 21 | ||
1357 | 22 | #include <zorba/locale.h> | 22 | #include <zorba/util/locale.h> |
1358 | 23 | 23 | ||
1359 | 24 | #include "util/string_util.h" | 24 | #include "util/string_util.h" |
1360 | 25 | #include "zorbatypes/zstring.h" | 25 | #include "zorbatypes/zstring.h" |
1361 | 26 | 26 | ||
1362 | === modified file 'src/util/time_parse.cpp' | |||
1363 | --- src/util/time_parse.cpp 2013-06-01 00:30:39 +0000 | |||
1364 | +++ src/util/time_parse.cpp 2013-06-13 01:24:25 +0000 | |||
1365 | @@ -24,8 +24,8 @@ | |||
1366 | 24 | #include <zorba/internal/cxx_util.h> | 24 | #include <zorba/internal/cxx_util.h> |
1367 | 25 | #include "ascii_util.h" | 25 | #include "ascii_util.h" |
1368 | 26 | #include "string_util.h" | 26 | #include "string_util.h" |
1369 | 27 | #include "util/locale.h" | ||
1370 | 27 | #include "zorbatypes/zstring.h" | 28 | #include "zorbatypes/zstring.h" |
1371 | 28 | #include "zorbautils/locale.h" | ||
1372 | 29 | 29 | ||
1373 | 30 | // local | 30 | // local |
1374 | 31 | #include "time_parse.h" | 31 | #include "time_parse.h" |
1375 | 32 | 32 | ||
1376 | === modified file 'src/util/time_parse.h' | |||
1377 | --- src/util/time_parse.h 2013-06-01 00:30:39 +0000 | |||
1378 | +++ src/util/time_parse.h 2013-06-13 01:24:25 +0000 | |||
1379 | @@ -25,7 +25,7 @@ | |||
1380 | 25 | #include <zorba/internal/cxx_util.h> | 25 | #include <zorba/internal/cxx_util.h> |
1381 | 26 | #include "string_util.h" | 26 | #include "string_util.h" |
1382 | 27 | #include "time_util.h" | 27 | #include "time_util.h" |
1384 | 28 | #include "zorbautils/locale.h" | 28 | #include "util/locale.h" |
1385 | 29 | 29 | ||
1386 | 30 | namespace zorba { | 30 | namespace zorba { |
1387 | 31 | namespace time { | 31 | namespace time { |
1388 | 32 | 32 | ||
1389 | === modified file 'src/util/time_util.h' | |||
1390 | --- src/util/time_util.h 2013-06-12 04:51:35 +0000 | |||
1391 | +++ src/util/time_util.h 2013-06-13 01:24:25 +0000 | |||
1392 | @@ -26,7 +26,7 @@ | |||
1393 | 26 | // Zorba | 26 | // Zorba |
1394 | 27 | #include <zorba/config.h> | 27 | #include <zorba/config.h> |
1395 | 28 | #include <zorba/internal/cxx_util.h> | 28 | #include <zorba/internal/cxx_util.h> |
1397 | 29 | #include <zorba/time.h> | 29 | #include <zorba/util/calendar.h> |
1398 | 30 | #include "string_util.h" | 30 | #include "string_util.h" |
1399 | 31 | 31 | ||
1400 | 32 | #ifndef TM_YEAR_BASE | 32 | #ifndef TM_YEAR_BASE |
1401 | 33 | 33 | ||
1402 | === modified file 'src/util/transcode_streambuf.h' | |||
1403 | --- src/util/transcode_streambuf.h 2013-02-07 17:24:36 +0000 | |||
1404 | +++ src/util/transcode_streambuf.h 2013-06-13 01:24:25 +0000 | |||
1405 | @@ -18,7 +18,7 @@ | |||
1406 | 18 | #define ZORBA_TRANSCODE_STREAMBUF_H | 18 | #define ZORBA_TRANSCODE_STREAMBUF_H |
1407 | 19 | 19 | ||
1408 | 20 | #include <zorba/config.h> | 20 | #include <zorba/config.h> |
1410 | 21 | #include <zorba/transcode_stream.h> | 21 | #include <zorba/util/transcode_stream.h> |
1411 | 22 | 22 | ||
1412 | 23 | /////////////////////////////////////////////////////////////////////////////// | 23 | /////////////////////////////////////////////////////////////////////////////// |
1413 | 24 | 24 | ||
1414 | 25 | 25 | ||
1415 | === modified file 'src/zorbatypes/ft_token.cpp' | |||
1416 | --- src/zorbatypes/ft_token.cpp 2013-06-01 00:30:39 +0000 | |||
1417 | +++ src/zorbatypes/ft_token.cpp 2013-06-13 01:24:25 +0000 | |||
1418 | @@ -22,10 +22,10 @@ | |||
1419 | 22 | #include "diagnostics/assert.h" | 22 | #include "diagnostics/assert.h" |
1420 | 23 | #include "runtime/full_text/ft_wildcard.h" | 23 | #include "runtime/full_text/ft_wildcard.h" |
1421 | 24 | #include "runtime/full_text/stemmer.h" | 24 | #include "runtime/full_text/stemmer.h" |
1422 | 25 | #include "util/locale.h" | ||
1423 | 25 | #include "util/stl_util.h" | 26 | #include "util/stl_util.h" |
1424 | 26 | #include "util/unicode_util.h" | 27 | #include "util/unicode_util.h" |
1425 | 27 | #include "util/utf8_util.h" | 28 | #include "util/utf8_util.h" |
1426 | 28 | #include "zorbautils/locale.h" | ||
1427 | 29 | 29 | ||
1428 | 30 | #include "ft_token.h" | 30 | #include "ft_token.h" |
1429 | 31 | 31 | ||
1430 | 32 | 32 | ||
1431 | === modified file 'src/zorbatypes/ft_token.h' | |||
1432 | --- src/zorbatypes/ft_token.h 2013-06-01 00:30:39 +0000 | |||
1433 | +++ src/zorbatypes/ft_token.h 2013-06-13 01:24:25 +0000 | |||
1434 | @@ -21,7 +21,7 @@ | |||
1435 | 21 | #include <vector> | 21 | #include <vector> |
1436 | 22 | 22 | ||
1437 | 23 | #include <zorba/internal/cxx_util.h> | 23 | #include <zorba/internal/cxx_util.h> |
1439 | 24 | #include <zorba/locale.h> | 24 | #include <zorba/util/locale.h> |
1440 | 25 | 25 | ||
1441 | 26 | #include "zorbatypes/zstring.h" | 26 | #include "zorbatypes/zstring.h" |
1442 | 27 | 27 | ||
1443 | 28 | 28 | ||
1444 | === modified file 'src/zorbautils/CMakeLists.txt' | |||
1445 | --- src/zorbautils/CMakeLists.txt 2013-02-07 17:24:36 +0000 | |||
1446 | +++ src/zorbautils/CMakeLists.txt 2013-06-13 01:24:25 +0000 | |||
1447 | @@ -20,7 +20,6 @@ | |||
1448 | 20 | mutex.cpp | 20 | mutex.cpp |
1449 | 21 | condition.cpp | 21 | condition.cpp |
1450 | 22 | latch.cpp | 22 | latch.cpp |
1451 | 23 | locale.cpp | ||
1452 | 24 | lock.cpp | 23 | lock.cpp |
1453 | 25 | runnable.cpp | 24 | runnable.cpp |
1454 | 26 | synchronous_logger.cpp | 25 | synchronous_logger.cpp |
1455 | 27 | 26 | ||
1456 | === modified file 'test/unit/lib_unit_test.cpp' | |||
1457 | --- test/unit/lib_unit_test.cpp 2013-02-07 17:24:36 +0000 | |||
1458 | +++ test/unit/lib_unit_test.cpp 2013-06-13 01:24:25 +0000 | |||
1459 | @@ -17,11 +17,11 @@ | |||
1460 | 17 | 17 | ||
1461 | 18 | #include <zorba/zorba.h> | 18 | #include <zorba/zorba.h> |
1462 | 19 | #include <zorba/store_manager.h> | 19 | #include <zorba/store_manager.h> |
1464 | 20 | #include <zorba/unit_tests.h> | 20 | #include <zorba/internal/unit_tests.h> |
1465 | 21 | 21 | ||
1466 | 22 | /** | 22 | /** |
1469 | 23 | * This is the main entry point for unit tests which require a running | 23 | * This is the main entry point for unit tests that require a running |
1470 | 24 | * Zorba instance, and which execute inside of libzorba. | 24 | * Zorba instance and execute inside of libzorba. |
1471 | 25 | */ | 25 | */ |
1472 | 26 | 26 | ||
1473 | 27 | using namespace zorba; | 27 | using namespace zorba; |
Validation queue starting for merge proposal. zorbatest. lambda. nu:8080/ remotequeue/ bug-1189996- 2013-06- 12T05-27- 59.092Z/ log.html
Log at: http://