diff -dur boost_1_40_0.orig/boost/regex/icu.hpp boost_1_40_0/boost/regex/icu.hpp
old
|
new
|
|
376 | 376 | // |
377 | 377 | // Construction from ICU string type: |
378 | 378 | // |
379 | | inline u32regex make_u32regex(const UnicodeString& s, boost::regex_constants::syntax_option_type opt = boost::regex_constants::perl) |
| 379 | inline u32regex make_u32regex(const U_NAMESPACE_QUALIFIER UnicodeString& s, boost::regex_constants::syntax_option_type opt = boost::regex_constants::perl) |
380 | 380 | { |
381 | 381 | return re_detail::do_make_u32regex(s.getBuffer(), s.getBuffer() + s.length(), opt, static_cast<boost::mpl::int_<2> const*>(0)); |
382 | 382 | } |
… |
… |
|
498 | 498 | return re_detail::do_regex_match(s.begin(), s.end(), m, e, flags, static_cast<mpl::int_<sizeof(wchar_t)> const*>(0)); |
499 | 499 | } |
500 | 500 | #endif |
501 | | inline bool u32regex_match(const UnicodeString& s, |
| 501 | inline bool u32regex_match(const U_NAMESPACE_QUALIFIER UnicodeString& s, |
502 | 502 | match_results<const UChar*>& m, |
503 | 503 | const u32regex& e, |
504 | 504 | match_flag_type flags = match_default) |
… |
… |
|
562 | 562 | return re_detail::do_regex_match(s.begin(), s.end(), m, e, flags, static_cast<mpl::int_<sizeof(wchar_t)> const*>(0)); |
563 | 563 | } |
564 | 564 | #endif |
565 | | inline bool u32regex_match(const UnicodeString& s, |
| 565 | inline bool u32regex_match(const U_NAMESPACE_QUALIFIER UnicodeString& s, |
566 | 566 | const u32regex& e, |
567 | 567 | match_flag_type flags = match_default) |
568 | 568 | { |
… |
… |
|
683 | 683 | return re_detail::do_regex_search(s.begin(), s.end(), m, e, flags, s.begin(), static_cast<mpl::int_<sizeof(wchar_t)> const*>(0)); |
684 | 684 | } |
685 | 685 | #endif |
686 | | inline bool u32regex_search(const UnicodeString& s, |
| 686 | inline bool u32regex_search(const U_NAMESPACE_QUALIFIER UnicodeString& s, |
687 | 687 | match_results<const UChar*>& m, |
688 | 688 | const u32regex& e, |
689 | 689 | match_flag_type flags = match_default) |
… |
… |
|
744 | 744 | return re_detail::do_regex_search(s.begin(), s.end(), m, e, flags, s.begin(), static_cast<mpl::int_<sizeof(wchar_t)> const*>(0)); |
745 | 745 | } |
746 | 746 | #endif |
747 | | inline bool u32regex_search(const UnicodeString& s, |
| 747 | inline bool u32regex_search(const U_NAMESPACE_QUALIFIER UnicodeString& s, |
748 | 748 | const u32regex& e, |
749 | 749 | match_flag_type flags = match_default) |
750 | 750 | { |
… |
… |
|
921 | 921 | Iterator first, |
922 | 922 | Iterator last, |
923 | 923 | const u32regex& e, |
924 | | const UnicodeString& fmt, |
| 924 | const U_NAMESPACE_QUALIFIER UnicodeString& fmt, |
925 | 925 | match_flag_type flags = match_default) |
926 | 926 | { |
927 | 927 | return re_detail::extract_output_base |
… |
… |
|
966 | 966 | |
967 | 967 | class unicode_string_out_iterator |
968 | 968 | { |
969 | | UnicodeString* out; |
| 969 | U_NAMESPACE_QUALIFIER UnicodeString* out; |
970 | 970 | public: |
971 | | unicode_string_out_iterator(UnicodeString& s) : out(&s) {} |
| 971 | unicode_string_out_iterator(U_NAMESPACE_QUALIFIER UnicodeString& s) : out(&s) {} |
972 | 972 | unicode_string_out_iterator& operator++() { return *this; } |
973 | 973 | unicode_string_out_iterator& operator++(int) { return *this; } |
974 | 974 | unicode_string_out_iterator& operator*() { return *this; } |
… |
… |
|
986 | 986 | |
987 | 987 | } |
988 | 988 | |
989 | | inline UnicodeString u32regex_replace(const UnicodeString& s, |
| 989 | inline U_NAMESPACE_QUALIFIER UnicodeString u32regex_replace(const U_NAMESPACE_QUALIFIER UnicodeString& s, |
990 | 990 | const u32regex& e, |
991 | 991 | const UChar* fmt, |
992 | 992 | match_flag_type flags = match_default) |
993 | 993 | { |
994 | | UnicodeString result; |
| 994 | U_NAMESPACE_QUALIFIER UnicodeString result; |
995 | 995 | re_detail::unicode_string_out_iterator i(result); |
996 | 996 | u32regex_replace(i, s.getBuffer(), s.getBuffer()+s.length(), e, fmt, flags); |
997 | 997 | return result; |
998 | 998 | } |
999 | 999 | |
1000 | | inline UnicodeString u32regex_replace(const UnicodeString& s, |
| 1000 | inline U_NAMESPACE_QUALIFIER UnicodeString u32regex_replace(const U_NAMESPACE_QUALIFIER UnicodeString& s, |
1001 | 1001 | const u32regex& e, |
1002 | | const UnicodeString& fmt, |
| 1002 | const U_NAMESPACE_QUALIFIER UnicodeString& fmt, |
1003 | 1003 | match_flag_type flags = match_default) |
1004 | 1004 | { |
1005 | | UnicodeString result; |
| 1005 | U_NAMESPACE_QUALIFIER UnicodeString result; |
1006 | 1006 | re_detail::unicode_string_out_iterator i(result); |
1007 | 1007 | re_detail::do_regex_replace( |
1008 | 1008 | re_detail::make_utf32_out(i, static_cast<mpl::int_<2> const*>(0)), |
diff -dur boost_1_40_0.orig/boost/regex/v4/u32regex_iterator.hpp boost_1_40_0/boost/regex/v4/u32regex_iterator.hpp
old
|
new
|
|
178 | 178 | typedef typename std::basic_string<charT, Traits, Alloc>::const_iterator iter_type; |
179 | 179 | return u32regex_iterator<iter_type>(p.begin(), p.end(), e, m); |
180 | 180 | } |
181 | | inline u32regex_iterator<const UChar*> make_u32regex_iterator(const UnicodeString& s, const u32regex& e, regex_constants::match_flag_type m = regex_constants::match_default) |
| 181 | inline u32regex_iterator<const UChar*> make_u32regex_iterator(const U_NAMESPACE_QUALIFIER UnicodeString& s, const u32regex& e, regex_constants::match_flag_type m = regex_constants::match_default) |
182 | 182 | { |
183 | 183 | return u32regex_iterator<const UChar*>(s.getBuffer(), s.getBuffer() + s.length(), e, m); |
184 | 184 | } |
diff -dur boost_1_40_0.orig/boost/regex/v4/u32regex_token_iterator.hpp boost_1_40_0/boost/regex/v4/u32regex_token_iterator.hpp
old
|
new
|
|
294 | 294 | typedef typename std::basic_string<charT, Traits, Alloc>::const_iterator iter_type; |
295 | 295 | return u32regex_token_iterator<iter_type>(p.begin(), p.end(), e, m); |
296 | 296 | } |
297 | | inline u32regex_token_iterator<const UChar*> make_u32regex_token_iterator(const UnicodeString& s, const u32regex& e, int submatch = 0, regex_constants::match_flag_type m = regex_constants::match_default) |
| 297 | inline u32regex_token_iterator<const UChar*> make_u32regex_token_iterator(const U_NAMESPACE_QUALIFIER UnicodeString& s, const u32regex& e, int submatch = 0, regex_constants::match_flag_type m = regex_constants::match_default) |
298 | 298 | { |
299 | 299 | return u32regex_token_iterator<const UChar*>(s.getBuffer(), s.getBuffer() + s.length(), e, submatch, m); |
300 | 300 | } |
… |
… |
|
327 | 327 | return u32regex_token_iterator<iter_type>(p.begin(), p.end(), e, m); |
328 | 328 | } |
329 | 329 | template <std::size_t N> |
330 | | inline u32regex_token_iterator<const UChar*> make_u32regex_token_iterator(const UnicodeString& s, const u32regex& e, const int (&submatch)[N], regex_constants::match_flag_type m = regex_constants::match_default) |
| 330 | inline u32regex_token_iterator<const UChar*> make_u32regex_token_iterator(const U_NAMESPACE_QUALIFIER UnicodeString& s, const u32regex& e, const int (&submatch)[N], regex_constants::match_flag_type m = regex_constants::match_default) |
331 | 331 | { |
332 | 332 | return u32regex_token_iterator<const UChar*>(s.getBuffer(), s.getBuffer() + s.length(), e, submatch, m); |
333 | 333 | } |
… |
… |
|
356 | 356 | typedef typename std::basic_string<charT, Traits, Alloc>::const_iterator iter_type; |
357 | 357 | return u32regex_token_iterator<iter_type>(p.begin(), p.end(), e, m); |
358 | 358 | } |
359 | | inline u32regex_token_iterator<const UChar*> make_u32regex_token_iterator(const UnicodeString& s, const u32regex& e, const std::vector<int>& submatch, regex_constants::match_flag_type m = regex_constants::match_default) |
| 359 | inline u32regex_token_iterator<const UChar*> make_u32regex_token_iterator(const U_NAMESPACE_QUALIFIER UnicodeString& s, const u32regex& e, const std::vector<int>& submatch, regex_constants::match_flag_type m = regex_constants::match_default) |
360 | 360 | { |
361 | 361 | return u32regex_token_iterator<const UChar*>(s.getBuffer(), s.getBuffer() + s.length(), e, submatch, m); |
362 | 362 | } |