170265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh/*
270265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * Copyright (C) 2014 The Android Open Source Project
370265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * All rights reserved.
470265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh *
570265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * Redistribution and use in source and binary forms, with or without
670265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * modification, are permitted provided that the following conditions
770265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * are met:
870265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh *  * Redistributions of source code must retain the above copyright
970265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh *    notice, this list of conditions and the following disclaimer.
1070265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh *  * Redistributions in binary form must reproduce the above copyright
1170265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh *    notice, this list of conditions and the following disclaimer in
1270265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh *    the documentation and/or other materials provided with the
1370265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh *    distribution.
1470265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh *
1570265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1670265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1770265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
1870265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
1970265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
2070265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
2170265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
2270265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
2370265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2470265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
2570265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2670265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh * SUCH DAMAGE.
2770265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh */
2870265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh
2970265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh#ifndef _WCTYPE_H_
3070265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh#define _WCTYPE_H_
3170265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh
32cf138744ee2efefa4cd02ace5bedcdc56d750ad5Andrew Hsieh#include <wchar.h>
3370265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh
3470265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh__BEGIN_DECLS
3570265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh
3670265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int iswalnum_l(wint_t, locale_t);
3770265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int iswalpha_l(wint_t, locale_t);
3870265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int iswblank_l(wint_t, locale_t);
3970265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int iswcntrl_l(wint_t, locale_t);
4070265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int iswdigit_l(wint_t, locale_t);
4170265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int iswgraph_l(wint_t, locale_t);
4270265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int iswlower_l(wint_t, locale_t);
4370265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int iswprint_l(wint_t, locale_t);
4470265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int iswpunct_l(wint_t, locale_t);
4570265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int iswspace_l(wint_t, locale_t);
4670265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int iswupper_l(wint_t, locale_t);
4770265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int iswxdigit_l(wint_t, locale_t);
4870265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int towlower_l(int, locale_t);
4970265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int towupper_l(int, locale_t);
5070265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh
5170265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern int iswctype_l(wint_t, wctype_t, locale_t);
5270265c95acca4be96f4c82ad80645e67fe718094Andrew Hsiehextern wctype_t wctype_l(const char*, locale_t);
5370265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh
5470265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh__END_DECLS
5570265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh
5670265c95acca4be96f4c82ad80645e67fe718094Andrew Hsieh#endif /* _WCTYPE_H_ */
57