home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / povsrc31.zip / uniutils.h < prev    next >
C/C++ Source or Header  |  1999-12-10  |  699b  |  29 lines

  1. /*
  2.  * File: uniutils.h
  3.  *
  4.  * Author: Jon A. Cruz
  5.  *         joncruz@geocities.com
  6.  *
  7.  * Simple implementation of UTF-8 to UCS-2 conversion routine.
  8.  * ( described in RFC 2279 )
  9.  *
  10.  *
  11.  *     Jan 23, 1999 - Initial version
  12.  */
  13.  
  14.  
  15. #ifndef _INC_UNIUTILS
  16. #define _INC_UNIUTILS
  17.  
  18. #define ENCODING_INVALID (-1)
  19.  
  20. int uniGetDefaultEncoding( void );
  21. int uniGetEncodingByName( char *str );
  22. int uniIsEncodingValid( int encoding );
  23. int uniIsAppleByte( int encoding );
  24. int uniBytesToChars( const unsigned char *pszString, wchar_t *pwDstBuff, int sbDstBuff, int encoding );
  25.  
  26. int uniUtf8ToWide( const unsigned char *pszUtf8, wchar_t *pwDstBuff, int sbDstBuff );
  27.  
  28. #endif /*_INC_UNIUTILS */
  29.