1 #ifndef STRINGHELPER_HXX 2 #define STRINGHELPER_HXX 3 4 #include <rtl/ustring.hxx> 5 #include <rtl/string.hxx> 6 7 inline void operator <<= (rtl::OString& _rAsciiString, rtl::OUString const & _rUnicodeString) 8 { 9 _rAsciiString = rtl::OUStringToOString(_rUnicodeString,RTL_TEXTENCODING_ASCII_US); 10 } 11 inline void operator <<= (rtl::OUString& _rUnicodeString, rtl::OString const & _rAsciiString ) 12 { 13 _rUnicodeString = rtl::OStringToOUString(_rAsciiString, RTL_TEXTENCODING_ASCII_US); 14 } 15 16 #endif 17