diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-01-06 14:34:21 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-01-06 19:21:56 +0100 |
commit | 40e98c878b6f6f205943da94d4b5e039231a482f (patch) | |
tree | b12806f4b6ee848ed20b788ab917e8d0668004d7 /include/comphelper/string.hxx | |
parent | adfceaf32651f6ef17a9b63906366818b667d6b5 (diff) |
Drop comphelper::string::equals; compare OUString to OUStringChar
In cui/source/tabpages/autocdlg.cxx, use code point-based methods
for comparison with sal_UCS4 values in SvxSwAutoFormatFlags.
Change-Id: If34c981393774d1b8db649f0c29870e1ca6bdfe8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108847
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/comphelper/string.hxx')
-rw-r--r-- | include/comphelper/string.hxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx index 1db92036949b..3567ce364cac 100644 --- a/include/comphelper/string.hxx +++ b/include/comphelper/string.hxx @@ -40,16 +40,6 @@ namespace com::sun::star::uno { class XComponentContext; } // go into the stable URE API: namespace comphelper::string { -/** Compare an OUString to a single char - - @param rIn The input OUString - @param c The character to compare against - - @return true if rIn has one char and its equal to c - */ -inline bool equals(const OUString& rIn, sal_Unicode c) -{ return rIn.getLength() == 1 && rIn[0] == c; } - /** Removes all occurrences of a character from within the source string @param rIn The input OUStringBuffer |