diff options
-rw-r--r-- | include/unotools/textsearch.hxx | 4 | ||||
-rw-r--r-- | unotools/source/i18n/textsearch.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/unotools/textsearch.hxx b/include/unotools/textsearch.hxx index 14a9558f237e..68af444d8023 100644 --- a/include/unotools/textsearch.hxx +++ b/include/unotools/textsearch.hxx @@ -183,7 +183,7 @@ public: /* search in the (selected) text the search string: rScrTxt - the text, in which we search pStart - start position for the search - pEnde - end position for the search + pEnd - end position for the search RETURN values == true: something is found - pStart start pos of the found text, @@ -192,7 +192,7 @@ public: positions. Is only filled with more positions if the regular expression handles groups. - == false: nothing found, pStart,pEnde unchanged. + == false: nothing found, pStart, pEnd unchanged. Definitions: start pos always inclusive, end pos always exclusive! The position must always in the right direction! diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx index 2a657109b110..42b995f7051c 100644 --- a/unotools/source/i18n/textsearch.cxx +++ b/unotools/source/i18n/textsearch.cxx @@ -274,14 +274,14 @@ bool TextSearch::searchForward( const OUString &rStr ) } bool TextSearch::SearchBackward( const OUString & rStr, sal_Int32* pStart, - sal_Int32* pEnde, SearchResult* pRes ) + sal_Int32* pEnd, SearchResult* pRes ) { bool bRet = false; try { if( xTextSearch.is() ) { - SearchResult aRet( xTextSearch->searchBackward( rStr, *pStart, *pEnde )); + SearchResult aRet( xTextSearch->searchBackward( rStr, *pStart, *pEnd )); if( aRet.subRegExpressions ) { bRet = true; @@ -289,7 +289,7 @@ bool TextSearch::SearchBackward( const OUString & rStr, sal_Int32* pStart, // and the endposition is always exclusive. // The caller of this function will have in startPos the // lower pos. and end - *pEnde = aRet.startOffset[ 0 ]; + *pEnd = aRet.startOffset[ 0 ]; *pStart = aRet.endOffset[ 0 ]; if( pRes ) *pRes = aRet; |