// Purpose: wxUString class
// Author: Robert Roebling
// Created: 2008-07-25
-// RCS-ID: $Id:$
// Copyright: (c) 2008 Robert Roebling
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
if (!str)
return assign( wxUString() );
- wxWCharBuffer buffer = wxConvLibc.cMB2WC( str );
+ wxScopedWCharBuffer buffer = wxConvLibc.cMB2WC( str );
return assign( buffer );
}
if (!str)
return assign( wxUString() );
- wxWCharBuffer buffer = conv.cMB2WC( str );
+ wxScopedWCharBuffer buffer = conv.cMB2WC( str );
return assign( buffer );
}
-wxCharBuffer wxUString::utf8_str() const
+wxScopedCharBuffer wxUString::utf8_str() const
{
size_type utf8_length = 0;
const wxChar32 *ptr = data();
}
}
- wxPrintf( "utf8_str %s len %d\n", result, wxStrlen( result.data() ) );
- wxPrintf( "utf8_str %s len %d\n", result, wxStrlen( result.data() ) );
-
return result;
}
-wxU16CharBuffer wxUString::utf16_str() const
+wxScopedU16CharBuffer wxUString::utf16_str() const
{
size_type utf16_length = 0;
const wxChar32 *ptr = data();