[Libreoffice-commits] core.git: include/comphelper

Miklos Vajna vmiklos at suse.cz
Fri Apr 26 05:14:27 PDT 2013


 include/comphelper/string.hxx |   30 ------------------------------
 1 file changed, 30 deletions(-)

New commits:
commit 182f77a46d755b90fb7c79a4e80666beff47cf0c
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Fri Apr 26 14:13:25 2013 +0200

    comphelper: ConstAsciiString is now unused
    
    Change-Id: Ifad05cfc84b476501948f31ff65aa5d321dd6fdd

diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx
index 85b0816..e244c36 100644
--- a/include/comphelper/string.hxx
+++ b/include/comphelper/string.hxx
@@ -429,38 +429,8 @@ COMPHELPER_DLLPUBLIC inline bool isalnumAscii(sal_Unicode c)
     return isalphaAscii(c) || isdigitAscii(c);
 }
 
-//============================================================
-//= a helper for static ascii pseudo-unicode strings
-//============================================================
-struct COMPHELPER_DLLPUBLIC ConstAsciiString
-{
-    const sal_Char* ascii;
-    sal_Int32       length;
-
-    operator OUString() const
-    {
-        return OUString(ascii, length, RTL_TEXTENCODING_ASCII_US);
-    }
-};
-
 } }
 
-#ifdef RTL_FAST_STRING
-// TODO The whole ConstAsciiString class should probably be dumped
-// and replaced with plain 'const char[]'.
-namespace rtl
-{
-template<>
-struct ToStringHelper< comphelper::string::ConstAsciiString >
-    {
-    static int length( const comphelper::string::ConstAsciiString& str ) { return str.length; }
-    static sal_Unicode* addData( sal_Unicode* buffer, const comphelper::string::ConstAsciiString& str ) { return addDataLiteral( buffer, str.ascii, str.length ); }
-    static const bool allowOStringConcat = false;
-    static const bool allowOUStringConcat = true;
-    };
-}
-#endif
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list