diff options
Diffstat (limited to 'sal/qa/rtl/strings/test_oustring_endswith.cxx')
-rw-r--r-- | sal/qa/rtl/strings/test_oustring_endswith.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sal/qa/rtl/strings/test_oustring_endswith.cxx b/sal/qa/rtl/strings/test_oustring_endswith.cxx index 22c68abd1d2e..33858e12ae23 100644 --- a/sal/qa/rtl/strings/test_oustring_endswith.cxx +++ b/sal/qa/rtl/strings/test_oustring_endswith.cxx @@ -45,7 +45,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(test::oustring::EndsWith); namespace { -void appendString(rtl::OStringBuffer & buffer, rtl::OString const & string) +void appendString(OStringBuffer & buffer, OString const & string) { buffer.append('"'); for (int i = 0; i < string.getLength(); ++i) { @@ -94,16 +94,16 @@ void test::oustring::EndsWith::endsWith() { RTL_CONSTASCII_STRINGPARAM("a\0b\0c"), RTL_CONSTASCII_STRINGPARAM("b"), false } }; for (size_t i = 0; i < SAL_N_ELEMENTS(data); ++i) { - rtl::OStringBuffer msg; - appendString(msg, rtl::OString(data[i].str1, data[i].str1Len)); + OStringBuffer msg; + appendString(msg, OString(data[i].str1, data[i].str1Len)); msg.append(".endsWithIgnoreAsciiCaseAsciiL("); - appendString(msg, rtl::OString(data[i].str2, data[i].str2Len)); + appendString(msg, OString(data[i].str2, data[i].str2Len)); msg.append(") == "); msg.append(data[i].endsWith); CPPUNIT_ASSERT_EQUAL_MESSAGE( msg.getStr(), data[i].endsWith, - rtl::OUString( + OUString( data[i].str1, data[i].str1Len, RTL_TEXTENCODING_ASCII_US).endsWithIgnoreAsciiCaseAsciiL( data[i].str2, data[i].str2Len)); |