mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
367ed4e13d
for wide characters locales in the argument range >= 0x80 - they may return false positives. Example 1: for UTF-8 locale we currently have: iswspace(0xA0)==1 and isspace(0xA0)==1 (because iswspace() and isspace() are the same code) but must have iswspace(0xA0)==1 and isspace(0xA0)==0 (because there is no such character and all others in the range 0x80..0xff for the UTF-8 locale, it keeps ASCII only in the single byte range because our internal wchar_t representation for UTF-8 is UCS-4). Example 2: for all wide character locales isalpha(arg) when arg > 0xFF may return false positives (must be 0). (because iswalpha() and isalpha() are the same code) This change address this issue separating single byte and wide ctype and also fix iswascii() (currently iswascii() is broken for arguments > 0xFF). This change is 100% binary compatible with old binaries. Reviewied by: i18n@
110 lines
1.2 KiB
Plaintext
110 lines
1.2 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;
|
|
};
|
|
|
|
FBSDprivate_1.0 {
|
|
_PathLocale;
|
|
__detect_path_locale;
|
|
__collate_load_error;
|
|
__collate_range_cmp;
|
|
};
|