Skip to content

Commit 01f6a67

Browse files
authored
Merge pull request #102 from VemundH/bugfix/icu-UnicodeString
Call correct overload in functions with icu UnicodeString argument
2 parents 77e9223 + 75b6e20 commit 01f6a67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/boost/regex/icu.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ inline bool u32regex_match(const U_NAMESPACE_QUALIFIER UnicodeString& s,
554554
const u32regex& e,
555555
match_flag_type flags = match_default)
556556
{
557-
return BOOST_REGEX_DETAIL_NS::do_regex_match(s.getBuffer(), s.getBuffer() + s.length(), m, e, flags, static_cast<mpl::int_<sizeof(wchar_t)> const*>(0));
557+
return BOOST_REGEX_DETAIL_NS::do_regex_match(s.getBuffer(), s.getBuffer() + s.length(), m, e, flags, static_cast<mpl::int_<2> const*>(0));
558558
}
559559
//
560560
// regex_match overloads that do not return what matched:
@@ -618,7 +618,7 @@ inline bool u32regex_match(const U_NAMESPACE_QUALIFIER UnicodeString& s,
618618
match_flag_type flags = match_default)
619619
{
620620
match_results<const UChar*> m;
621-
return BOOST_REGEX_DETAIL_NS::do_regex_match(s.getBuffer(), s.getBuffer() + s.length(), m, e, flags, static_cast<mpl::int_<sizeof(wchar_t)> const*>(0));
621+
return BOOST_REGEX_DETAIL_NS::do_regex_match(s.getBuffer(), s.getBuffer() + s.length(), m, e, flags, static_cast<mpl::int_<2> const*>(0));
622622
}
623623

624624
//
@@ -739,7 +739,7 @@ inline bool u32regex_search(const U_NAMESPACE_QUALIFIER UnicodeString& s,
739739
const u32regex& e,
740740
match_flag_type flags = match_default)
741741
{
742-
return BOOST_REGEX_DETAIL_NS::do_regex_search(s.getBuffer(), s.getBuffer() + s.length(), m, e, flags, s.getBuffer(), static_cast<mpl::int_<sizeof(wchar_t)> const*>(0));
742+
return BOOST_REGEX_DETAIL_NS::do_regex_search(s.getBuffer(), s.getBuffer() + s.length(), m, e, flags, s.getBuffer(), static_cast<mpl::int_<2> const*>(0));
743743
}
744744
template <class BidiIterator>
745745
inline bool u32regex_search(BidiIterator first, BidiIterator last,
@@ -800,7 +800,7 @@ inline bool u32regex_search(const U_NAMESPACE_QUALIFIER UnicodeString& s,
800800
match_flag_type flags = match_default)
801801
{
802802
match_results<const UChar*> m;
803-
return BOOST_REGEX_DETAIL_NS::do_regex_search(s.getBuffer(), s.getBuffer() + s.length(), m, e, flags, s.getBuffer(), static_cast<mpl::int_<sizeof(wchar_t)> const*>(0));
803+
return BOOST_REGEX_DETAIL_NS::do_regex_search(s.getBuffer(), s.getBuffer() + s.length(), m, e, flags, s.getBuffer(), static_cast<mpl::int_<2> const*>(0));
804804
}
805805

806806
//

0 commit comments

Comments
 (0)