diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-09-14 11:40:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-17 10:46:27 +0100 |
commit | d5e15c6355e5bbf9ca87545f9ffb2f81b85d6d8d (patch) | |
tree | f29eb73e317bfd7b77731c828d73858238f52483 /sal | |
parent | nothing propagates HAVE_CUPS_H so cups is always disabled (diff) | |
download | core-d5e15c6355e5bbf9ca87545f9ffb2f81b85d6d8d.tar.gz core-d5e15c6355e5bbf9ca87545f9ffb2f81b85d6d8d.zip |
update unused code list
Change-Id: I4d6ad11fbe68420931e88defa20afbef290d4d24
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/rtl/uri/rtl_Uri.cxx | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sal/qa/rtl/uri/rtl_Uri.cxx b/sal/qa/rtl/uri/rtl_Uri.cxx index 7358099a7bb4..e142b1d5e901 100644 --- a/sal/qa/rtl/uri/rtl_Uri.cxx +++ b/sal/qa/rtl/uri/rtl_Uri.cxx @@ -41,52 +41,12 @@ namespace Stringtest { - rtl::OString toHex(unsigned char _c) - { - rtl::OStringBuffer sStrBuf; - static char cHex[] = "0123456789ABCDEF"; - - int nhigh = int(_c) >> 4 & 0xf; - int nlow = int(_c) & 0xf; - sStrBuf.append( cHex[nhigh] ); - sStrBuf.append( cHex[nlow] ); - return sStrBuf.makeStringAndClear(); - } - - rtl::OString escapeString(rtl::OString const& _sStr) - { - rtl::OStringBuffer sStrBuf; - sal_Int32 nLength = _sStr.getLength(); - for(int i=0;i<nLength;++i) - { - unsigned char c = (unsigned char)_sStr[i]; - if (c > 127) - { - sStrBuf.append("%"); - sStrBuf.append(toHex(c)); - } - else - { - sStrBuf.append((char)c); - } - } - return sStrBuf.makeStringAndClear(); - } - // ----------------------------------------------------------------------------- class Convert : public CppUnit::TestFixture { rtl::OUString m_aStr; public: - /* - rtl::OString toUTF8(rtl::OUString const& _suStr) - { - rtl::OString sStrAsUTF8 = rtl::OUStringToOString(_suStr, RTL_TEXTENCODING_UTF8); - printf("%s\n", escapeString(sStrAsUTF8).getStr()); - return sStrAsUTF8; - } - */ rtl::OUString fromUTF8(rtl::OString const& _suStr) { rtl::OUString suStr = rtl::OStringToOUString(_suStr, RTL_TEXTENCODING_UTF8); |