diff options
author | Noel Grandin <noel@peralex.com> | 2012-10-04 15:06:27 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-10-09 22:45:24 +0200 |
commit | 7ef1190c3e9422998d89df2cf8fcf30bddfc1a03 (patch) | |
tree | 3c59c424bfb648626ef195542cb2251245f5f626 /sal/inc/rtl/ustring.hxx | |
parent | f2b34cb356bf858eb5108fe76e3595597179a88f (diff) |
Add a 'fromIndex' parameter to OUString::replaceAll
This method will be needed for forthcoming String->OUStringBuffer
conversions.
Change-Id: I001099baaca5cd402aebcd15c031d9060286a8f9
Diffstat (limited to 'sal/inc/rtl/ustring.hxx')
-rw-r--r-- | sal/inc/rtl/ustring.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sal/inc/rtl/ustring.hxx b/sal/inc/rtl/ustring.hxx index 97568012e06a..bbd6e962690d 100644 --- a/sal/inc/rtl/ustring.hxx +++ b/sal/inc/rtl/ustring.hxx @@ -1531,11 +1531,13 @@ public: @param to the replacing substring - @since LibreOffice 3.6 + @param fromIndex the position in the string where we will begin searching + + @since LibreOffice 3.7 */ - OUString replaceAll(OUString const & from, OUString const & to) const { + OUString replaceAll(OUString const & from, OUString const & to, int fromIndex = 0) const { rtl_uString * s = 0; - rtl_uString_newReplaceAll(&s, pData, from.pData, to.pData); + rtl_uString_newReplaceAllFromIndex(&s, pData, from.pData, to.pData, fromIndex); return OUString(s, SAL_NO_ACQUIRE); } |