зеркало из https://github.com/mozilla/gecko-dev.git
Implement WriteUtf8Z. Bug 290914, r=biesi, sr=darin, a=asa
This commit is contained in:
Родитель
16cc06ce80
Коммит
b423131582
|
@ -57,6 +57,7 @@
|
|||
#include "nsMemory.h"
|
||||
#include "prlong.h"
|
||||
#include "nsGenericFactory.h"
|
||||
#include "nsString.h"
|
||||
|
||||
NS_IMPL_ISUPPORTS3(nsBinaryOutputStream, nsIObjectOutputStream, nsIBinaryOutputStream, nsIOutputStream)
|
||||
|
||||
|
@ -222,8 +223,7 @@ nsBinaryOutputStream::WriteWStringZ(const PRUnichar* aString)
|
|||
NS_IMETHODIMP
|
||||
nsBinaryOutputStream::WriteUtf8Z(const PRUnichar* aString)
|
||||
{
|
||||
NS_NOTREACHED("WriteUtf8Z");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
return WriteStringZ(NS_ConvertUTF16toUTF8(aString).get());
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче