summaryrefslogtreecommitdiff
path: root/include/comphelper/string.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-09 09:50:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-09 13:17:27 +0100
commit5089bdb234a93bcb62b597c18b8ab66048246b13 (patch)
tree0983967d89d9662b8484c88d2590cfdd7362fa43 /include/comphelper/string.hxx
parent0ba03a38f022ca8d3705ae1370bb1d739e1e973f (diff)
Related: fdo#38838 remove UniString::EqualsAscii
Change-Id: I55c85c1c44452c7fb6ac40591aea7177d054affe
Diffstat (limited to 'include/comphelper/string.hxx')
-rw-r--r--include/comphelper/string.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx
index e59950920ded..73f3ab9a706c 100644
--- a/include/comphelper/string.hxx
+++ b/include/comphelper/string.hxx
@@ -285,6 +285,17 @@ COMPHELPER_DLLPUBLIC inline OUStringBuffer& padToLength(
return detail::padToLength(rBuffer, nLength, cFill);
}
+/** Replace a token in a string
+ @param rIn OUString in which the token is to be replaced
+ @param nToken which nToken to replace
+ @param cTok token delimiter
+ @param rNewToken replacement token
+
+ @return original string with token nToken replaced by rNewToken
+ */
+COMPHELPER_DLLPUBLIC OUString setToken(const OUString& rIn, sal_Int32 nToken, sal_Unicode cTok,
+ const OUString& rNewToken);
+
/** Find any of a list of code units in the string.
@param rIn OUString to search
@param pChars 0-terminated array of sal_Unicode code units to search for