summaryrefslogtreecommitdiff
path: root/i18npool/source/search
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2012-05-09 12:57:20 +0000
committerEike Rathke <erack@redhat.com>2013-03-07 19:04:50 +0100
commit9a93475d6eba53b2e1fba1585dbd11c94ea4b4a3 (patch)
tree63aa9ce8d1d67012af06847724beab23aeea5842 /i18npool/source/search
parent0e91b7383a5c49ab4fd52e9d3a62aeef67eb2238 (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/source/search')
-rw-r--r--i18npool/source/search/textsearch.cxx2
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(;;)