105bd827ed/*-
2d3308bcpfg * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3d3308bcpfg *
405bd827ed * Copyright (c) 2013 Ed Schouten <ed@FreeBSD.org>
505bd827ed * All rights reserved.
605bd827ed *
705bd827ed * Redistribution and use in source and binary forms, with or without
805bd827ed * modification, are permitted provided that the following conditions
905bd827ed * are met:
1005bd827ed * 1. Redistributions of source code must retain the above copyright
1105bd827ed *    notice, this list of conditions and the following disclaimer.
1205bd827ed * 2. Redistributions in binary form must reproduce the above copyright
1305bd827ed *    notice, this list of conditions and the following disclaimer in the
1405bd827ed *    documentation and/or other materials provided with the distribution.
1505bd827ed *
1605bd827ed * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1705bd827ed * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1805bd827ed * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1905bd827ed * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2005bd827ed * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2105bd827ed * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2205bd827ed * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2305bd827ed * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2405bd827ed * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2505bd827ed * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2605bd827ed * SUCH DAMAGE.
2705bd827ed *
2805bd827ed * $FreeBSD$
2905bd827ed */
3005bd827ed
3105bd827ed#ifndef _LOCALE_T_DEFINED
3205bd827ed#define _LOCALE_T_DEFINED
3305bd827edtypedef struct	_xlocale *locale_t;
3405bd827ed#endif
3505bd827ed
3605bd827ed#ifndef _XLOCALE_UCHAR_H_
3705bd827ed#define _XLOCALE_UCHAR_H_
3805bd827ed
3905bd827edsize_t	c16rtomb_l(char * __restrict, char16_t, mbstate_t * __restrict,
4005bd827ed    locale_t);
4105bd827edsize_t	c32rtomb_l(char * __restrict, char32_t, mbstate_t * __restrict,
4205bd827ed    locale_t);
4305bd827edsize_t	mbrtoc16_l(char16_t * __restrict, const char * __restrict, size_t,
4405bd827ed    mbstate_t * __restrict, locale_t);
4505bd827edsize_t	mbrtoc32_l(char32_t * __restrict, const char * __restrict, size_t,
4605bd827ed    mbstate_t * __restrict, locale_t);
4705bd827ed
4805bd827ed#endif /* _XLOCALE_UCHAR_H_ */
49