1b096817theraven/*-
2d3308bcpfg * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3d3308bcpfg *
4b096817theraven * Copyright (c) 2011, 2012 The FreeBSD Foundation
5b096817theraven * All rights reserved.
6b096817theraven *
7b096817theraven * Redistribution and use in source and binary forms, with or without
8b096817theraven * modification, are permitted provided that the following conditions
9b096817theraven * are met:
10b096817theraven * 1. Redistributions of source code must retain the above copyright
11b096817theraven *    notice, this list of conditions and the following disclaimer.
12b096817theraven * 2. Redistributions in binary form must reproduce the above copyright
13b096817theraven *    notice, this list of conditions and the following disclaimer in the
14b096817theraven *    documentation and/or other materials provided with the distribution.
15b096817theraven *
16b096817theraven * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17b096817theraven * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18b096817theraven * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19b096817theraven * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20b096817theraven * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21b096817theraven * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22b096817theraven * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23b096817theraven * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24b096817theraven * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25b096817theraven * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26b096817theraven * SUCH DAMAGE.
27b096817theraven *
28b096817theraven * $FreeBSD$
29b096817theraven */
30b096817theraven
31b096817theraven#ifndef _LOCALE_T_DEFINED
32b096817theraven#define _LOCALE_T_DEFINED
33b096817theraventypedef struct	_xlocale *locale_t;
34b096817theraven#endif
35b096817theraven
36b096817theraven/*
37b096817theraven * This file is included from both string.h and xlocale.h.  We need to expose
38b096817theraven * the declarations unconditionally if we are included from xlocale.h, but only
39b096817theraven * if we are in POSIX2008 mode if included from string.h.
40b096817theraven */
41b096817theraven
42b096817theraven#ifndef _XLOCALE_STRING1_H
43b096817theraven#define _XLOCALE_STRING1_H
44b096817theraven
45b096817theraven/*
46b096817theraven * POSIX2008 functions
47b096817theraven */
48b096817theravenint	 strcoll_l(const char *, const char *, locale_t);
49b096817theravensize_t	 strxfrm_l(char *, const char *, size_t, locale_t);
50b096817theraven#endif /* _XLOCALE_STRING1_H */
51b096817theraven
52b096817theraven/*
53b096817theraven * xlocale extensions
54b096817theraven */
55b096817theraven#ifdef _XLOCALE_H_
56b096817theraven#ifndef _XLOCALE_STRING2_H
57b096817theraven#define _XLOCALE_STRING2_H
58b096817theravenchar	*strcasestr_l(const char *, const char *, locale_t);
59b096817theraven
60b096817theraven#endif /* _XLOCALE_STRING2_H */
61b096817theraven#endif /* _XLOCALE_H_ */
62