1#ifndef STRINGHELPER_HXX 2#define STRINGHELPER_HXX 3 4#include <rtl/ustring.hxx> 5#include <rtl/string.hxx> 6 7inline void operator <<= (rtl::OString& _rAsciiString, rtl::OUString const & _rUnicodeString) 8{ 9 _rAsciiString = rtl::OUStringToOString(_rUnicodeString,RTL_TEXTENCODING_ASCII_US); 10} 11inline void operator <<= (rtl::OUString& _rUnicodeString, rtl::OString const & _rAsciiString ) 12{ 13 _rUnicodeString = rtl::OStringToOUString(_rAsciiString, RTL_TEXTENCODING_ASCII_US); 14} 15 16#endif
| 22#ifndef STRINGHELPER_HXX 23#define STRINGHELPER_HXX 24 25#include <rtl/ustring.hxx> 26#include <rtl/string.hxx> 27 28inline void operator <<= (rtl::OString& _rAsciiString, rtl::OUString const & _rUnicodeString) 29{ 30 _rAsciiString = rtl::OUStringToOString(_rUnicodeString,RTL_TEXTENCODING_ASCII_US); 31} 32inline void operator <<= (rtl::OUString& _rUnicodeString, rtl::OString const & _rAsciiString ) 33{ 34 _rUnicodeString = rtl::OStringToOUString(_rAsciiString, RTL_TEXTENCODING_ASCII_US); 35} 36 37#endif
|