diff options
Diffstat (limited to 'ldap/synctools/passwordsync/passsync/subuniutil.h')
-rw-r--r-- | ldap/synctools/passwordsync/passsync/subuniutil.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ldap/synctools/passwordsync/passsync/subuniutil.h b/ldap/synctools/passwordsync/passsync/subuniutil.h new file mode 100644 index 00000000..49d71f49 --- /dev/null +++ b/ldap/synctools/passwordsync/passsync/subuniutil.h @@ -0,0 +1,20 @@ +#ifndef _SUBUNIUTIL_H_ +#define _SUBUNIUTIL_H_ + +#include <windows.h> + +// Copied: 2-8-2005 +// From: secuniutil.c +/* From ns/netsite/ldap/libraries/libldap/utf8.c */ +static char UTF8len[64] += {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 5, 6}; +// End Copy + +unsigned long utf8getcc( const char** src ); +wchar_t * ASCIIToUnicode( const char *buf, wchar_t *uni, int inUnilen ); +wchar_t * StrToUnicode( const char *buf ); + +#endif |