#i121482# fix attributed text search for regular expression patterns(cherry picked from commit e7fc662799e7e936753e24db8d6d3849c12b3ff4)
This commit is contained in:
parent
6642d9ec9f
commit
e6288a5d88
1 changed files with 1 additions and 1 deletions
|
@ -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(;;)
|
||||
|
|
Loading…
Reference in a new issue