UniToLocTagFunc

Converts a Unicode character to a tagged expression that preserves the original, Unicode character for round-trip conversion.

Library:LibC
Service:Characters and Strings

Syntax

  #include <unilib.h> 
   
  int UniToLocTagFunc (
     char              **dest,
     size_t              remaining,
     const unicode_t   **src,
     void               *userParm);
  

Parameters

dest

(OUT) Points to the destination character in the local code page.

remaining

(OUT) Specifies the number of characters remaining to be translated.

src

(IN) Points to the unmappable source character.

userParm

(IN) Specifies a parameter that you have defined to use with your translation function.

Return Values

If successful, returns 0. Otherwise, returns a nonzero value.

Remarks

Round-trip conversion is assured when LocToUniTagFunc is used with locnx2uni. With the value in the remaining parameter, you can finish the translation with your functions or select to have ocnx2uni finish it.

See Also

UniToLocSize