diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-03-29 16:43:23 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-04-04 12:19:42 +0200 |
commit | 5b6fd648f020a9e84d1b68491ca06aa2e8fb86e2 (patch) | |
tree | 11fb55e7650d40b42da2b6ba8a3b0433cef9b672 /include | |
parent | ec52c2f4b7090ced1810b23fd6cc5fb2db4215d2 (diff) |
sw: plain-text ASCII export: filter out all CH_TXT_ATR_*
These control characters are Writer implementation details and should
not be available via public interfaces.
This filter is also used by SwXTextRange::getString().
Change-Id: If656ee3d451dbefe2f7a905e8b63a44cdb787809
(cherry picked from commit ab4f53eaad0c064d9b2ff1c2cb20560f81ade1f7)
Reviewed-on: https://gerrit.libreoffice.org/35862
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 5254a7d1cbf3f62c6664299752d2788bb4f2a0b4)
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/string.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx index 8aab4f12eddf..7934a6b6d7cf 100644 --- a/include/comphelper/string.hxx +++ b/include/comphelper/string.hxx @@ -255,6 +255,15 @@ COMPHELPER_DLLPUBLIC OUString setToken(const OUString& rIn, sal_Int32 nToken, sa COMPHELPER_DLLPUBLIC sal_Int32 indexOfAny(OUString const& rIn, sal_Unicode const*const pChars, sal_Int32 const nPos); +/** Remove 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 + + @return OUString that has all of the pChars code units removed + */ +COMPHELPER_DLLPUBLIC OUString removeAny(OUString const& rIn, + sal_Unicode const*const pChars); + /** Convert a sequence of strings to a single comma separated string. Note that no escaping of commas or anything fancy is done. |