can remove ByteString::Convert now
This commit is contained in:
parent
7a16bd69d0
commit
a558a8da56
2 changed files with 0 additions and 36 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue