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