diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-08 08:33:09 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-08 08:37:57 +0200 |
commit | fce720b3e4691eb3b7deef1d005d76b23123a5cb (patch) | |
tree | d5483bdfb7065c7691ddde3ab035343b67a825ba /include | |
parent | ce924d97aaea265b8f58265bedb49dbcd71fbc31 (diff) |
comphelper: add string::join()
If there is a need for it, this could be extended later to work with uno
sequences and/or OUStrings as well.
Change-Id: Id0af8b1755c8e4b668720563d10a052337e1b2c9
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/string.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx index 0609e623fc47..780d89e5eb2a 100644 --- a/include/comphelper/string.hxx +++ b/include/comphelper/string.hxx @@ -23,6 +23,7 @@ #include <sal/config.h> #include <cstddef> +#include <vector> #include <comphelper/comphelperdllapi.h> #include <sal/types.h> #include <rtl/strbuf.hxx> @@ -310,6 +311,9 @@ COMPHELPER_DLLPUBLIC sal_Int32 indexOfAny(OUString const& rIn, COMPHELPER_DLLPUBLIC OUString convertCommaSeparated( ::com::sun::star::uno::Sequence< OUString > const & i_rSeq); +/// Return a string which is the concatenation of the strings in the sequence. +COMPHELPER_DLLPUBLIC OString join(const OString& rSeparator, const std::vector<OString>& rSequence); + /** Convert a decimal string to a number. The string must be base-10, no sign but can contain any |