Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
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;
}
Ejemplo n.º 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;
}