1*4bff34e3Sthurlow /* 2*4bff34e3Sthurlow * Copyright (c) 2001 Apple Computer, Inc. All rights reserved. 3*4bff34e3Sthurlow * 4*4bff34e3Sthurlow * @APPLE_LICENSE_HEADER_START@ 5*4bff34e3Sthurlow * 6*4bff34e3Sthurlow * "Portions Copyright (c) 1999 Apple Computer, Inc. All Rights 7*4bff34e3Sthurlow * Reserved. This file contains Original Code and/or Modifications of 8*4bff34e3Sthurlow * Original Code as defined in and that are subject to the Apple Public 9*4bff34e3Sthurlow * Source License Version 1.0 (the 'License'). You may not use this file 10*4bff34e3Sthurlow * except in compliance with the License. Please obtain a copy of the 11*4bff34e3Sthurlow * License at http://www.apple.com/publicsource and read it before using 12*4bff34e3Sthurlow * this file. 13*4bff34e3Sthurlow * 14*4bff34e3Sthurlow * The Original Code and all software distributed under the License are 15*4bff34e3Sthurlow * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16*4bff34e3Sthurlow * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 17*4bff34e3Sthurlow * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 18*4bff34e3Sthurlow * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the 19*4bff34e3Sthurlow * License for the specific language governing rights and limitations 20*4bff34e3Sthurlow * under the License." 21*4bff34e3Sthurlow * 22*4bff34e3Sthurlow * @APPLE_LICENSE_HEADER_END@ 23*4bff34e3Sthurlow */ 24*4bff34e3Sthurlow /* 25*4bff34e3Sthurlow * @(#)charsets.h 26*4bff34e3Sthurlow * (c) 2004 Apple Computer, Inc. All Rights Reserved 27*4bff34e3Sthurlow * 28*4bff34e3Sthurlow * 29*4bff34e3Sthurlow * charsets.h -- Routines converting between UTF-8, 16-bit 30*4bff34e3Sthurlow * little-endian Unicode, 16-bit host-byte-order 31*4bff34e3Sthurlow * Unicode, and various Windows code pages. 32*4bff34e3Sthurlow * 33*4bff34e3Sthurlow * MODIFICATION HISTORY: 34*4bff34e3Sthurlow * 28-Nov-2004 Guy Harris New today 35*4bff34e3Sthurlow */ 36*4bff34e3Sthurlow 37*4bff34e3Sthurlow #pragma ident "%Z%%M% %I% %E% SMI" 38*4bff34e3Sthurlow 39*4bff34e3Sthurlow #ifndef __CHARSETS_H__ 40*4bff34e3Sthurlow #define __CHARSETS_H__ 41*4bff34e3Sthurlow 42*4bff34e3Sthurlow extern char *convert_wincs_to_utf8(const char *windows_string); 43*4bff34e3Sthurlow extern char *convert_utf8_to_wincs(const char *utf8_string); 44*4bff34e3Sthurlow extern char *convert_leunicode_to_utf8(unsigned short *windows_string); 45*4bff34e3Sthurlow extern char *convert_unicode_to_utf8(unsigned short *windows_string, int len); 46*4bff34e3Sthurlow extern unsigned short *convert_utf8_to_leunicode(const char *utf8_string); 47*4bff34e3Sthurlow 48*4bff34e3Sthurlow #endif /* __CHARSETS_H__ */ 49