1 /* 2 Copyright (C) 2005-2012 Rich Felker 3 4 Permission is hereby granted, free of charge, to any person obtaining 5 a copy of this software and associated documentation files (the 6 "Software"), to deal in the Software without restriction, including 7 without limitation the rights to use, copy, modify, merge, publish, 8 distribute, sublicense, and/or sell copies of the Software, and to 9 permit persons to whom the Software is furnished to do so, subject to 10 the following conditions: 11 12 The above copyright notice and this permission notice shall be 13 included in all copies or substantial portions of the Software. 14 15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 20 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 23 Modified in 2013 for the Android Open Source Project. 24 */ 25 #ifndef NDK_ANDROID_SUPPORT_WCTYPE_H 26 #define NDK_ANDROID_SUPPORT_WCTYPE_H 27 28 /* Please read note in wchar.h to see why the C library version of this 29 * file is not included through #include_next here. 30 */ 31 #include <xlocale.h> 32 33 #ifdef __cplusplus 34 extern "C" { 35 #endif 36 37 typedef int wint_t; 38 typedef int wctrans_t; 39 typedef int wctype_t; 40 41 #define WEOF ((wint_t)(-1)) 42 43 int iswalnum(wint_t); 44 int iswalpha(wint_t); 45 int iswblank(wint_t); 46 int iswcntrl(wint_t); 47 int iswdigit(wint_t); 48 int iswgraph(wint_t); 49 int iswlower(wint_t); 50 int iswprint(wint_t); 51 int iswpunct(wint_t); 52 int iswspace(wint_t); 53 int iswupper(wint_t); 54 int iswxdigit(wint_t); 55 int iswctype(wint_t, wctype_t); 56 wint_t towctrans(wint_t, wctrans_t); 57 wint_t towlower(wint_t); 58 wint_t towupper(wint_t); 59 wctrans_t wctrans(const char *); 60 wctype_t wctype(const char *); 61 62 int iswalnum_l(wint_t, locale_t); 63 int iswalpha_l(wint_t, locale_t); 64 int iswblank_l(wint_t, locale_t); 65 int iswcntrl_l(wint_t, locale_t); 66 int iswdigit_l(wint_t, locale_t); 67 int iswgraph_l(wint_t, locale_t); 68 int iswlower_l(wint_t, locale_t); 69 int iswprint_l(wint_t, locale_t); 70 int iswpunct_l(wint_t, locale_t); 71 int iswspace_l(wint_t, locale_t); 72 int iswupper_l(wint_t, locale_t); 73 int iswxdigit_l(wint_t, locale_t); 74 int iswctype_l(wint_t, wctype_t, locale_t); 75 76 wint_t towlower_l(wint_t, locale_t); 77 wint_t towupper_l(wint_t, locale_t); 78 wint_t towctrans_l(wint_t, wctrans_t, locale_t); 79 wctrans_t wctrans_l(const char *, locale_t); 80 wctype_t wctype_l(const char *, locale_t); 81 82 #ifdef __cplusplus 83 } // extern "C" 84 #endif 85 86 #endif // NDK_ANDROID_SUPPORT_WCTYPE_H 87