From eca733c56e460c8a31597cb0dbcd2c760fe609ec Mon Sep 17 00:00:00 2001 From: "smontagu%smontagu.org" Date: Mon, 12 Mar 2007 09:59:12 +0000 Subject: [PATCH] Update comments to nsIUnicodeEncoder::Convert() to include NS_OK_UENC_MOREINPUT in the possible return values. Bug 366147, r=jshin, sr=roc git-svn-id: svn://10.0.0.236/trunk@221772 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/intl/uconv/public/nsIUnicodeEncoder.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mozilla/intl/uconv/public/nsIUnicodeEncoder.h b/mozilla/intl/uconv/public/nsIUnicodeEncoder.h index 5e355600f2f..d7da8d0699f 100644 --- a/mozilla/intl/uconv/public/nsIUnicodeEncoder.h +++ b/mozilla/intl/uconv/public/nsIUnicodeEncoder.h @@ -153,9 +153,7 @@ public: * SetOutputByteOrder() so that the reverse order can be used, too. That * method would have as default the assumed network order. * - * Unless there is not enough output space, this method must consume all the - * available input data! We don't have partial input for the Unicode charset. - * And for the last converted char, even if there is not enought output + * For the last converted char, even if there is not enough output * space, a partial ouput must be done until all available space will be * used. The rest of the output should be buffered until more space becomes * available. But this is not also true about the error handling method!!! @@ -171,6 +169,10 @@ public: * written * @return NS_OK_UENC_MOREOUTPUT if only a partial conversion * was done; more output space is needed to continue + * NS_OK_UENC_MOREINPUT if only a partial conversion + * was done; more input is needed to continue. This can + * occur when the last UTF-16 code point in the input is + * the first of a surrogate pair. * NS_ERROR_UENC_NOMAPPING if character without mapping * was encountered and the behavior was set to "signal". */