diff options
author | Tor Lillqvist <tml@collabora.com> | 2021-01-14 22:18:20 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2021-01-15 08:48:20 +0100 |
commit | 846bcc5adb82b601937681da7cec96c40253c2e7 (patch) | |
tree | 065454e0849339befa7a408943c30ed688befbe9 /sal | |
parent | 72f1cbe59a90921ef74bfda5ffb7f4db6578a1af (diff) |
OUString::matchAsciiL() can be used instead of the fresh startsWithAsciiL()
Revert the addition of the latter.
Change-Id: I93636a901cde401b0b7d923e052887f57dd58212
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109315
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/rtl/oustring/rtl_OUString2.cxx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/sal/qa/rtl/oustring/rtl_OUString2.cxx b/sal/qa/rtl/oustring/rtl_OUString2.cxx index d2223511f92a..516378dc14a7 100644 --- a/sal/qa/rtl/oustring/rtl_OUString2.cxx +++ b/sal/qa/rtl/oustring/rtl_OUString2.cxx @@ -881,24 +881,6 @@ void indexOfAscii::test() { sal_Int32(3), OUString("foofoobar").indexOf("foo", 1)); } -class startsWithAsciiL: public CppUnit::TestFixture { -public: - void test(); - - CPPUNIT_TEST_SUITE(startsWithAsciiL); - CPPUNIT_TEST(test); - CPPUNIT_TEST_SUITE_END(); -}; - -void startsWithAsciiL::test() { - CPPUNIT_ASSERT_EQUAL(true, OUString().startsWithAsciiL("", 0)); - CPPUNIT_ASSERT_EQUAL(false, OUString().startsWithAsciiL("x", 1)); - CPPUNIT_ASSERT_EQUAL(true, OUString("bar").startsWithAsciiL("bar", 3)); - CPPUNIT_ASSERT_EQUAL(false, OUString("bar").startsWithAsciiL("foobar", 6)); - CPPUNIT_ASSERT_EQUAL(true, OUString("foobar").startsWithAsciiL("foo", 3)); - CPPUNIT_ASSERT_EQUAL(false, OUString("FOOBAR").startsWithAsciiL("foo", 3)); -} - class endsWith: public CppUnit::TestFixture { public: void test(); @@ -1051,7 +1033,6 @@ CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OUString::getToken); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OUString::convertToString); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OUString::construction); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OUString::indexOfAscii); -CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OUString::startsWithAsciiL); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OUString::endsWith); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OUString::isEmpty); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OUString::createFromCodePoints); |