50c77c6e8b
The <uchar.h> header, part of C11, adds a small number of utility functions for 16/32-bit "universal" characters, which may or may not be UTF-16/32. As our wchar_t is already ISO 10646, simply add light-weight wrappers around wcrtomb() and mbrtowc(). While there, also add (non-yet-standard) _l functions, similar to the ones we already have for the other locale-dependent functions. Reviewed by: theraven
218 lines
2.6 KiB
Plaintext
218 lines
2.6 KiB
Plaintext
/*
|
|
* $FreeBSD$
|
|
*/
|
|
|
|
FBSD_1.0 {
|
|
btowc;
|
|
digittoint;
|
|
isalnum;
|
|
isalpha;
|
|
isascii;
|
|
isblank;
|
|
iscntrl;
|
|
isdigit;
|
|
isgraph;
|
|
ishexnumber;
|
|
isideogram;
|
|
islower;
|
|
isnumber;
|
|
isphonogram;
|
|
isprint;
|
|
ispunct;
|
|
isrune;
|
|
isspace;
|
|
isspecial;
|
|
isupper;
|
|
isxdigit;
|
|
toascii;
|
|
tolower;
|
|
toupper;
|
|
iswalnum;
|
|
iswalpha;
|
|
iswascii;
|
|
iswblank;
|
|
iswcntrl;
|
|
iswdigit;
|
|
iswgraph;
|
|
iswhexnumber;
|
|
iswideogram;
|
|
iswlower;
|
|
iswnumber;
|
|
iswphonogram;
|
|
iswprint;
|
|
iswpunct;
|
|
iswrune;
|
|
iswspace;
|
|
iswspecial;
|
|
iswupper;
|
|
iswxdigit;
|
|
towlower;
|
|
towupper;
|
|
localeconv;
|
|
mblen;
|
|
mbrlen;
|
|
mbrtowc;
|
|
mbsinit;
|
|
mbsnrtowcs;
|
|
mbsrtowcs;
|
|
mbstowcs;
|
|
mbtowc;
|
|
nextwctype;
|
|
nl_langinfo;
|
|
__maskrune;
|
|
__sbmaskrune;
|
|
__istype;
|
|
__sbistype;
|
|
__isctype;
|
|
__toupper;
|
|
__sbtoupper;
|
|
__tolower;
|
|
__sbtolower;
|
|
__wcwidth;
|
|
__mb_cur_max;
|
|
__mb_sb_limit;
|
|
rpmatch;
|
|
___runetype;
|
|
setlocale;
|
|
_DefaultRuneLocale;
|
|
_CurrentRuneLocale;
|
|
___tolower;
|
|
___toupper;
|
|
wcrtomb;
|
|
wcsftime;
|
|
wcsnrtombs;
|
|
wcsrtombs;
|
|
wcstod;
|
|
wcstof;
|
|
wcstoimax;
|
|
wcstol;
|
|
wcstold;
|
|
wcstoll;
|
|
wcstombs;
|
|
wcstoul;
|
|
wcstoull;
|
|
wcstoumax;
|
|
wctob;
|
|
wctomb;
|
|
towctrans;
|
|
wctrans;
|
|
iswctype;
|
|
wctype;
|
|
wcwidth;
|
|
};
|
|
|
|
FBSD_1.3 {
|
|
newlocale;
|
|
duplocale;
|
|
freelocale;
|
|
querylocale;
|
|
uselocale;
|
|
__getCurrentRuneLocale;
|
|
btowc_l;
|
|
localeconv_l;
|
|
mblen_l;
|
|
mbrlen_l;
|
|
mbrtowc_l;
|
|
mbsinit_l;
|
|
mbsnrtowcs_l;
|
|
mbsrtowcs_l;
|
|
mbstowcs_l;
|
|
mbtowc_l;
|
|
nl_langinfo_l;
|
|
strcoll_l;
|
|
strfmon_l;
|
|
strftime_l;
|
|
strptime_l;
|
|
strxfrm_l;
|
|
wcrtomb_l;
|
|
wcscoll_l;
|
|
wcsnrtombs_l;
|
|
wcsrtombs_l;
|
|
wcstombs_l;
|
|
wcsxfrm_l;
|
|
wctob_l;
|
|
wctomb_l;
|
|
___tolower_l;
|
|
___toupper_l;
|
|
___runetype_l;
|
|
digittoint_l;
|
|
isalnum_l;
|
|
isalpha_l;
|
|
isblank_l;
|
|
iscntrl_l;
|
|
isdigit_l;
|
|
isgraph_l;
|
|
ishexnumber_l;
|
|
isideogram_l;
|
|
islower_l;
|
|
isnumber_l;
|
|
isphonogram_l;
|
|
isprint_l;
|
|
ispunct_l;
|
|
isrune_l;
|
|
isspace_l;
|
|
isspecial_l;
|
|
isupper_l;
|
|
isxdigit_l;
|
|
tolower_l;
|
|
toupper_l;
|
|
iswalnum_l;
|
|
iswalpha_l;
|
|
iswblank_l;
|
|
iswcntrl_l;
|
|
iswdigit_l;
|
|
iswgraph_l;
|
|
iswhexnumber_l;
|
|
iswideogram_l;
|
|
iswlower_l;
|
|
iswnumber_l;
|
|
iswphonogram_l;
|
|
iswprint_l;
|
|
iswpunct_l;
|
|
iswrune_l;
|
|
iswspace_l;
|
|
iswspecial_l;
|
|
iswupper_l;
|
|
iswxdigit_l;
|
|
towlower_l;
|
|
towupper_l;
|
|
iswctype_l;
|
|
wctype_l;
|
|
nextwctype_l;
|
|
___mb_cur_max;
|
|
___mb_cur_max_l;
|
|
towctrans_l;
|
|
wctrans_l;
|
|
wcsftime_l;
|
|
wcstod_l;
|
|
wcstof_l;
|
|
wcstoimax_l;
|
|
wcstol_l;
|
|
wcstold_l;
|
|
wcstoll_l;
|
|
wcstoul_l;
|
|
wcstoull_l;
|
|
wcstoumax_l;
|
|
__sbistype_l;
|
|
__maskrune_l;
|
|
__sbmaskrune_l;
|
|
__istype_l;
|
|
__runes_for_locale;
|
|
_ThreadRuneLocale;
|
|
c16rtomb;
|
|
c16rtomb_l;
|
|
c32rtomb;
|
|
c32rtomb_l;
|
|
mbrtoc16;
|
|
mbrtoc16_l;
|
|
mbrtoc32;
|
|
mbrtoc32_l;
|
|
};
|
|
|
|
FBSDprivate_1.0 {
|
|
_PathLocale;
|
|
__detect_path_locale;
|
|
__collate_load_error;
|
|
__collate_range_cmp;
|
|
};
|