From b514f0ce86e85d9be269ddf2e797befbbf3423f1 Mon Sep 17 00:00:00 2001 From: Herbert Dürr Date: Mon, 14 Jan 2013 09:50:06 +0000 Subject: i#121482# fix backwards regexp search for matches overlapping search start (cherry picked from commit 854f4ad6c57be62bd922df08f603d8bfb7b918a5) Additionally fixed unit test, searching backward shall not produce a different result from searching forward. (erAck) Change-Id: I952509276875441005e6a4036e6c3089be627dd9 --- i18npool/qa/cppunit/test_textsearch.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i18npool/qa') diff --git a/i18npool/qa/cppunit/test_textsearch.cxx b/i18npool/qa/cppunit/test_textsearch.cxx index c26550b950ca..d7a6c3349146 100644 --- a/i18npool/qa/cppunit/test_textsearch.cxx +++ b/i18npool/qa/cppunit/test_textsearch.cxx @@ -101,7 +101,7 @@ void TestTextSearch::testSearches() sal_Int32 startPos = 2, endPos = 20 ; OUString searchStr( "(ab)*a(c|d)+" ); sal_Int32 fStartRes = 10, fEndRes = 18 ; - sal_Int32 bStartRes = 18, bEndRes = 14 ; + sal_Int32 bStartRes = 18, bEndRes = 10 ; // set options util::SearchOptions aOptions; -- cgit