diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-12-05 15:41:46 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-12-05 15:41:46 +0000 |
commit | a76133c236938b336d7064ec5903064473b0ac43 (patch) | |
tree | 0ba5e96553140639725d5dd2679e48040d2d14a9 /unotools | |
parent | eec29874a6a87c07c5acc257c856b3d226a4df54 (diff) |
INTEGRATION: CWS regexp02 (1.8.64); FILE MERGED
2007/11/06 13:00:59 ama 1.8.64.2: Fix #i15666#: Backward references in regular expressions
2007/11/01 12:39:18 ama 1.8.64.1: Fix #i15666#: Resolve backreferences in regular expressions
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/inc/unotools/textsearch.hxx | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/unotools/inc/unotools/textsearch.hxx b/unotools/inc/unotools/textsearch.hxx index 5a0625863691..533b50000094 100644 --- a/unotools/inc/unotools/textsearch.hxx +++ b/unotools/inc/unotools/textsearch.hxx @@ -4,9 +4,9 @@ * * $RCSfile: textsearch.hxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: hr $ $Date: 2006-06-19 14:02:47 $ + * last change: $Author: vg $ $Date: 2007-12-05 16:41:46 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -165,15 +165,15 @@ public: /* search in the (selected) text the search string: rScrTxt - the text, in in which we search - pStart - start position for the saerch - pEnde - end postion for the search + pStart - start position for the search + pEnde - end position for the search RETURN values == TRUE: something is found - pStart start pos of the found text, - pStart end pos of the found text, - - pSrchResult - the search reult with all found - positons. Is only filled with more positions - if the regular expression handles goups. + - pSrchResult - the search result with all found + positions. Is only filled with more positions + if the regular expression handles groups. == FALSE: nothing found, pStart,pEnde unchanged. @@ -191,6 +191,10 @@ public: void SetLocale( const ::com::sun::star::util::SearchOptions& rOpt, const ::com::sun::star::lang::Locale& rLocale ); + + /* replace back references in the replace string by the sub expressions from the search result */ + void ReplaceBackReferences( String& rReplaceStr, const String &rStr, const ::com::sun::star::util::SearchResult& rResult ); + }; // ............................................................................ |