From b871d057c45fdd231aa5e1d2b94e7d0a039f4292 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Tue, 1 Mar 2022 12:07:47 +0100 Subject: use OUStringBuffer for a string that's modified often (tdf#145862) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SvParser::aToken was OUString despite being a buffer where the parsed result is collected. Change-Id: Id24c842738ea0f6f1836f77d855069963ac5ae55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130763 Tested-by: Jenkins Reviewed-by: Luboš Luňák --- o3tl/qa/test-string_view.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'o3tl') diff --git a/o3tl/qa/test-string_view.cxx b/o3tl/qa/test-string_view.cxx index c068638f800e..28ea5a2e99b0 100644 --- a/o3tl/qa/test-string_view.cxx +++ b/o3tl/qa/test-string_view.cxx @@ -592,6 +592,10 @@ private: using namespace std::string_view_literals; CPPUNIT_ASSERT(o3tl::equalsIgnoreAsciiCase(u"test"sv, u"test"sv)); CPPUNIT_ASSERT(!o3tl::equalsIgnoreAsciiCase(u"test"sv, u"test2"sv)); + + CPPUNIT_ASSERT_EQUAL(0, o3tl::compareToIgnoreAsciiCase(u"test"sv, u"test"sv)); + CPPUNIT_ASSERT_GREATER(0, o3tl::compareToIgnoreAsciiCase(u"zest"sv, u"test"sv)); + CPPUNIT_ASSERT_LESS(0, o3tl::compareToIgnoreAsciiCase(u"test"sv, u"test2"sv)); } }; -- cgit