uconv_object (UconvObject)

      Conversion object created by a call to UniCreateUconvObject.

    ucsbuf (UniChar **)

      Input buffer.

    UniCharsleft (size_t *)

      Number of UniChar elements in ucsbuf.

    outbuf

      Output buffer.

    outbytesleft (size_t *)

      Size of outbuf, in units of bytes.

    nonidentical (size_t *)

      Number of nonidentical conversions.

    result (int) - returns

      UCONV_E2BIG

        Input conversion stopped due to lack of space in the output buffer.
      UCONV_EBADF
        uconv_object is not a valid, open conversion object.
      UCONV_EILSEQ
        Input conversion stopped due to an input byte that does not belong to the input code page.
      UCONV_EINVAL
        Input conversion stopped due to an incomplete character or shift sequence at the end of the input buffer. This condition will be given when the last UniChar element is recognized as a combining character.
      ULS_SUCCESS
        Conversion successful.
      UniUconvFromUcs updates the variables pointed to by the arguments to reflect the extent of the conversion and returns, in nonidentical, the number of substitution (nonidentical) conversions performed. If the entire string in the input buffer is converted, the value pointed to by UniCharsleft will be 0. If the input conversion is stopped due to any condition mentioned above, the value pointed to by Unicharsleft will be nonzero. If any error occurs, UniUconvToUcs returns a nonzero value.

      For a full list of error codes and the decimal and hexadecimal values of the error codes, see Error Codes.


    [Back: UniUconvFromUcs Return Value - result]
    [Next: UniUconvFromUcs - Remarks]