Kaydet (Commit) a558a8da authored tarafından Caolán McNamara's avatar Caolán McNamara

can remove ByteString::Convert now

üst 7a16bd69
......@@ -181,11 +181,6 @@ private:
// Append(char)
void operator +=(int); // not implemented; to detect misuses
// of operator +=(sal_Char)
ByteString& Convert( rtl_TextEncoding eSource,
rtl_TextEncoding eTarget,
sal_Bool bReplace = sal_True );
public:
ByteString();
ByteString( const ByteString& rStr );
......
......@@ -299,37 +299,6 @@ void ByteString::ImplStringConvert(
// =======================================================================
ByteString& ByteString::Convert( rtl_TextEncoding eSource, rtl_TextEncoding eTarget, sal_Bool bReplace )
{
DBG_CHKTHIS( ByteString, DbgCheckByteString );
// rtl_TextEncoding Dontknow kann nicht konvertiert werden
if ( (eSource == RTL_TEXTENCODING_DONTKNOW) || (eTarget == RTL_TEXTENCODING_DONTKNOW) )
return *this;
// Wenn Source und Target gleich sind, muss nicht konvertiert werden
if ( eSource == eTarget )
return *this;
// rtl_TextEncoding Symbol nur nach Unicode oder von Unicode wandeln, ansonsten
// wollen wir die Zeichencodes beibehalten
if ( (eSource == RTL_TEXTENCODING_SYMBOL) &&
(eTarget != RTL_TEXTENCODING_UTF7) &&
(eTarget != RTL_TEXTENCODING_UTF8) )
return *this;
if ( (eTarget == RTL_TEXTENCODING_SYMBOL) &&
(eSource != RTL_TEXTENCODING_UTF7) &&
(eSource != RTL_TEXTENCODING_UTF8) )
return *this;
// Zeichensatz umwandeln
ImplStringConvert( eSource, eTarget, bReplace );
return *this;
}
// =======================================================================
ByteString::ByteString( const rtl::OString& rStr )
: mpData(NULL)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment