xref: /onnv-gate/usr/src/lib/libsmbfs/smb/charsets.h (revision 8271:792589b3384f)
16007Sthurlow /*
26007Sthurlow  * Copyright (c) 2001 Apple Computer, Inc. All rights reserved.
36007Sthurlow  *
46007Sthurlow  * @APPLE_LICENSE_HEADER_START@
56007Sthurlow  *
66007Sthurlow  * "Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
76007Sthurlow  * Reserved.  This file contains Original Code and/or Modifications of
86007Sthurlow  * Original Code as defined in and that are subject to the Apple Public
96007Sthurlow  * Source License Version 1.0 (the 'License').  You may not use this file
106007Sthurlow  * except in compliance with the License.  Please obtain a copy of the
116007Sthurlow  * License at http://www.apple.com/publicsource and read it before using
126007Sthurlow  * this file.
136007Sthurlow  *
146007Sthurlow  * The Original Code and all software distributed under the License are
156007Sthurlow  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
166007Sthurlow  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
176007Sthurlow  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
186007Sthurlow  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
196007Sthurlow  * License for the specific language governing rights and limitations
206007Sthurlow  * under the License."
216007Sthurlow  *
226007Sthurlow  * @APPLE_LICENSE_HEADER_END@
236007Sthurlow  */
246007Sthurlow /*
256007Sthurlow  *      @(#)charsets.h
266007Sthurlow  *      (c) 2004   Apple Computer, Inc.  All Rights Reserved
276007Sthurlow  *
286007Sthurlow  *
296007Sthurlow  *      charsets.h -- Routines converting between UTF-8, 16-bit
306007Sthurlow  *			little-endian Unicode, 16-bit host-byte-order
316007Sthurlow  *			Unicode, and various Windows code pages.
326007Sthurlow  *
336007Sthurlow  *      MODIFICATION HISTORY:
346007Sthurlow  *       28-Nov-2004     Guy Harris	New today
356007Sthurlow  */
366007Sthurlow 
376007Sthurlow #ifndef __CHARSETS_H__
386007Sthurlow #define	__CHARSETS_H__
396007Sthurlow 
406007Sthurlow extern char *convert_wincs_to_utf8(const char *windows_string);
416007Sthurlow extern char *convert_utf8_to_wincs(const char *utf8_string);
426007Sthurlow extern char *convert_leunicode_to_utf8(unsigned short *windows_string);
43*8271SGordon.Ross@Sun.COM extern char *convert_unicode_to_utf8(unsigned short *windows_string);
446007Sthurlow extern unsigned short *convert_utf8_to_leunicode(const char *utf8_string);
45*8271SGordon.Ross@Sun.COM extern size_t unicode_strlen(const uint16_t *unicode_string);
466007Sthurlow 
476007Sthurlow #endif /* __CHARSETS_H__ */
48