summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-01-14 09:19:08 +0000
committerEike Rathke <erack@redhat.com>2013-03-07 20:37:05 +0100
commite6288a5d889da7db5bf23174f85c29ccfcaa44d5 (patch)
tree2a022b9a4d150df3d463f0f8fa0dbd4e05279d8c /i18npool
parent6642d9ec9f882ba7f9f8a429fe5c8f1b8440347e (diff)
#i121482# fix attributed text search for regular expression patterns(cherry picked from commit e7fc662799e7e936753e24db8d6d3849c12b3ff4)
Diffstat (limited to 'i18npool')
-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 072c0bedda6b..2df126e831fb 100644
--- a/i18npool/source/search/textsearch.cxx
+++ b/i18npool/source/search/textsearch.cxx
@@ -717,7 +717,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(), searchStr.getLength());
+ const IcuUniString aSearchTargetStr( (const UChar*)searchStr.getStr(), endPos);
pRegexMatcher->reset( aSearchTargetStr);
// search until there is a valid match
for(;;)