summaryrefslogtreecommitdiff
path: root/sal/qa/inc/stringhelper.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/qa/inc/stringhelper.hxx')
-rw-r--r--sal/qa/inc/stringhelper.hxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/sal/qa/inc/stringhelper.hxx b/sal/qa/inc/stringhelper.hxx
new file mode 100644
index 000000000000..93da3ef9b9da
--- /dev/null
+++ b/sal/qa/inc/stringhelper.hxx
@@ -0,0 +1,19 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+#ifndef STRINGHELPER_HXX
+#define STRINGHELPER_HXX
+
+#include <rtl/ustring.hxx>
+#include <rtl/string.hxx>
+
+inline void operator <<= (rtl::OString& _rAsciiString, rtl::OUString const & _rUnicodeString)
+{
+ _rAsciiString = rtl::OUStringToOString(_rUnicodeString,RTL_TEXTENCODING_ASCII_US);
+}
+inline void operator <<= (rtl::OUString& _rUnicodeString, rtl::OString const & _rAsciiString )
+{
+ _rUnicodeString = rtl::OStringToOUString(_rAsciiString, RTL_TEXTENCODING_ASCII_US);
+}
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */