1250883Sed/*- 2250883Sed * Copyright (c) 2013 Ed Schouten <ed@FreeBSD.org> 3250883Sed * All rights reserved. 4250883Sed * 5250883Sed * Redistribution and use in source and binary forms, with or without 6250883Sed * modification, are permitted provided that the following conditions 7250883Sed * are met: 8250883Sed * 1. Redistributions of source code must retain the above copyright 9250883Sed * notice, this list of conditions and the following disclaimer. 10250883Sed * 2. Redistributions in binary form must reproduce the above copyright 11250883Sed * notice, this list of conditions and the following disclaimer in the 12250883Sed * documentation and/or other materials provided with the distribution. 13250883Sed * 14250883Sed * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15250883Sed * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16250883Sed * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17250883Sed * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18250883Sed * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19250883Sed * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20250883Sed * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21250883Sed * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22250883Sed * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23250883Sed * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24250883Sed * SUCH DAMAGE. 25250883Sed * 26250883Sed * $FreeBSD$ 27250883Sed */ 28250883Sed 29250883Sed#ifndef _LOCALE_T_DEFINED 30250883Sed#define _LOCALE_T_DEFINED 31250883Sedtypedef struct _xlocale *locale_t; 32250883Sed#endif 33250883Sed 34250883Sed#ifndef _XLOCALE_UCHAR_H_ 35250883Sed#define _XLOCALE_UCHAR_H_ 36250883Sed 37250883Sedsize_t c16rtomb_l(char * __restrict, char16_t, mbstate_t * __restrict, 38250883Sed locale_t); 39250883Sedsize_t c32rtomb_l(char * __restrict, char32_t, mbstate_t * __restrict, 40250883Sed locale_t); 41250883Sedsize_t mbrtoc16_l(char16_t * __restrict, const char * __restrict, size_t, 42250883Sed mbstate_t * __restrict, locale_t); 43250883Sedsize_t mbrtoc32_l(char32_t * __restrict, const char * __restrict, size_t, 44250883Sed mbstate_t * __restrict, locale_t); 45250883Sed 46250883Sed#endif /* _XLOCALE_UCHAR_H_ */ 47