diff options
author | Herbert Dürr <hdu@apache.org> | 2012-05-09 12:57:20 +0000 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-03-07 19:04:50 +0100 |
commit | 9a93475d6eba53b2e1fba1585dbd11c94ea4b4a3 (patch) | |
tree | 63aa9ce8d1d67012af06847724beab23aeea5842 /i18npool | |
parent | 0e91b7383a5c49ab4fd52e9d3a62aeef67eb2238 (diff) |
i#118925# enhance textsearch's match-group references
to work for look-ahead/look-behind
(cherry picked from commit 3b83c404c56e5db5bab29ffee41f02822410d625)
Conflicts:
sw/source/core/crsr/findtxt.cxx
Change-Id: Ia5b31628b0f2af8f93132afa4b2eabd2f533bb91
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/search/textsearch.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/search/textsearch.cxx b/i18npool/source/search/textsearch.cxx index cdca853bb8a6..075cd218b81c 100644 --- a/i18npool/source/search/textsearch.cxx +++ b/i18npool/source/search/textsearch.cxx @@ -710,7 +710,7 @@ SearchResult TextSearch::RESrchFrwrd( const OUString& searchStr, // use the ICU RegexMatcher to find the matches UErrorCode nIcuErr = U_ZERO_ERROR; - const IcuUniString aSearchTargetStr( (const UChar*)searchStr.getStr(), endPos); + const IcuUniString aSearchTargetStr( (const UChar*)searchStr.getStr(), searchStr.getLength()); pRegexMatcher->reset( aSearchTargetStr); // search until there is a valid match for(;;) |