예제 #1
0
파일: towupper.c 프로젝트: fixos/fixos-libc
wint_t _PDCLIB_towupper_l( wint_t wc, _PDCLIB_locale_t l )
{
    wint_t uwc = _PDCLIB_unpackwint( wc );
    _PDCLIB_wcinfo_t *info = _PDCLIB_wcgetinfo( l, uwc );
    if( info ) 
    {
        uwc += info->upper_delta;
    }
    return uwc;
}
예제 #2
0
파일: towupper.c 프로젝트: blanham/PDCLib
wint_t _PDCLIB_towupper_l( wint_t wc, locale_t l )
{
    wint_t uwc = _PDCLIB_unpackwint( wc );
    _PDCLIB_wcinfo_t *info = _PDCLIB_wcgetinfo( l, uwc );
    if( info && info->upper != uwc ) 
    {
        wc = info->upper;
    }
    return wc;
}
예제 #3
0
int _PDCLIB_iswctype_l( wint_t wc, wctype_t desc, locale_t l )
{
    wc = _PDCLIB_unpackwint( wc );

    _PDCLIB_wcinfo_t *info = _PDCLIB_wcgetinfo( l, wc );

    if(!info) return 0;

    return info->flags & desc;
}