NWUXGetCharSize

Returns the character size (1 or 2) of the next character in the specified byte string

Local Servers:nonblocking
Remote Servers:N/A
NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows95, Windows 98
Library:Cross-Platform Localization (LOC*.*)
Service:Unicode

Syntax

   #include <nunicode.h> 
    
   N_EXTERN_LIBRARY(nint) NWUXGetCharSize  ( 
      pCONVERT               byteUniHandle,  
      const unicode N_FAR   *byteInput,  
      pnuint                 charSize);
   

Pascal Syntax

   uses netwin32 
    
   Function NWUXGetCharSize 
     (byteUniHandle : pCONVERT;
     byteInput : const unicode;
     charSize : pnuint              
   ): nint;
   

Parameters

byteUniHandle
(IN) Points to the converter handle.
byteInput
(IN) Points to a single or double-byte character in a byte string.
charSize
(OUT) Points to the returned character size.

Return Values

0xFDE9

NWU_NULL_HANDLE

0xFDEA

NWU_BAD_HANDLE

0xFDEB

NWU_HANDLE_MISMATCH

Remarks

NWUXGetCharSize is provided so that user-written Scan and Parse functions are able to examine a byte string.

NOTE:NWCharType (Internationalization) interprets the specified character according to the native system codepage. NWUXGetCharSize uses the codepage of the specified converter.

See excharsz.c for sample code.