subuniutil.h 753 B

1234567891011121314151617181920212223242526
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. * END COPYRIGHT BLOCK **/
  6. #ifndef _SUBUNIUTIL_H_
  7. #define _SUBUNIUTIL_H_
  8. #include <windows.h>
  9. // Copied: 2-8-2005
  10. // From: secuniutil.c
  11. /* From ns/netsite/ldap/libraries/libldap/utf8.c */
  12. static char UTF8len[64]
  13. = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  14. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  15. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  16. 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 5, 6};
  17. // End Copy
  18. unsigned long utf8getcc( const char** src );
  19. wchar_t * ASCIIToUnicode( const char *buf, wchar_t *uni, int inUnilen );
  20. wchar_t * StrToUnicode( const char *buf );
  21. #endif