xref: /titanic_44/usr/src/lib/libsmbfs/smb/charsets.h (revision 613a2f6ba31e891e3d947a356daf5e563d43c1ce)
14bff34e3Sthurlow /*
24bff34e3Sthurlow  * Copyright (c) 2001 Apple Computer, Inc. All rights reserved.
34bff34e3Sthurlow  *
44bff34e3Sthurlow  * @APPLE_LICENSE_HEADER_START@
54bff34e3Sthurlow  *
64bff34e3Sthurlow  * "Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
74bff34e3Sthurlow  * Reserved.  This file contains Original Code and/or Modifications of
84bff34e3Sthurlow  * Original Code as defined in and that are subject to the Apple Public
94bff34e3Sthurlow  * Source License Version 1.0 (the 'License').  You may not use this file
104bff34e3Sthurlow  * except in compliance with the License.  Please obtain a copy of the
114bff34e3Sthurlow  * License at http://www.apple.com/publicsource and read it before using
124bff34e3Sthurlow  * this file.
134bff34e3Sthurlow  *
144bff34e3Sthurlow  * The Original Code and all software distributed under the License are
154bff34e3Sthurlow  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
164bff34e3Sthurlow  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
174bff34e3Sthurlow  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
184bff34e3Sthurlow  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
194bff34e3Sthurlow  * License for the specific language governing rights and limitations
204bff34e3Sthurlow  * under the License."
214bff34e3Sthurlow  *
224bff34e3Sthurlow  * @APPLE_LICENSE_HEADER_END@
234bff34e3Sthurlow  */
244bff34e3Sthurlow /*
254bff34e3Sthurlow  *      @(#)charsets.h
264bff34e3Sthurlow  *      (c) 2004   Apple Computer, Inc.  All Rights Reserved
274bff34e3Sthurlow  *
284bff34e3Sthurlow  *
294bff34e3Sthurlow  *      charsets.h -- Routines converting between UTF-8, 16-bit
304bff34e3Sthurlow  *			little-endian Unicode, 16-bit host-byte-order
314bff34e3Sthurlow  *			Unicode, and various Windows code pages.
324bff34e3Sthurlow  *
334bff34e3Sthurlow  *      MODIFICATION HISTORY:
344bff34e3Sthurlow  *       28-Nov-2004     Guy Harris	New today
354bff34e3Sthurlow  */
364bff34e3Sthurlow 
374bff34e3Sthurlow #ifndef __CHARSETS_H__
384bff34e3Sthurlow #define	__CHARSETS_H__
394bff34e3Sthurlow 
404bff34e3Sthurlow extern char *convert_wincs_to_utf8(const char *windows_string);
414bff34e3Sthurlow extern char *convert_utf8_to_wincs(const char *utf8_string);
424bff34e3Sthurlow extern char *convert_leunicode_to_utf8(unsigned short *windows_string);
439c9af259SGordon Ross extern char *convert_unicode_to_utf8(unsigned short *windows_string);
444bff34e3Sthurlow extern unsigned short *convert_utf8_to_leunicode(const char *utf8_string);
459c9af259SGordon Ross extern size_t unicode_strlen(const uint16_t *unicode_string);
46*613a2f6bSGordon Ross extern char *utf8_str_tolower(const char *s);
47*613a2f6bSGordon Ross extern char *utf8_str_toupper(const char *s);
48*613a2f6bSGordon Ross 
49*613a2f6bSGordon Ross extern char *unpercent(char *component);
504bff34e3Sthurlow 
514bff34e3Sthurlow #endif /* __CHARSETS_H__ */
52