Lines 348-359
Link Here
|
348 |
|
348 |
|
349 |
wint_t _Locale_wchar_tolower( struct _Locale_ctype *__loc, wint_t c ) { |
349 |
wint_t _Locale_wchar_tolower( struct _Locale_ctype *__loc, wint_t c ) { |
350 |
printf( "%s:%d\n", __FILE__, __LINE__ ); |
350 |
printf( "%s:%d\n", __FILE__, __LINE__ ); |
351 |
return __towlower_l( c, ((__c_locale)__loc) ); |
351 |
return towlower_l( c, ((__c_locale)__loc) ); |
352 |
} |
352 |
} |
353 |
|
353 |
|
354 |
wint_t _Locale_wchar_toupper( struct _Locale_ctype *__loc, wint_t c ) { |
354 |
wint_t _Locale_wchar_toupper( struct _Locale_ctype *__loc, wint_t c ) { |
355 |
printf( "%s:%d\n", __FILE__, __LINE__ ); |
355 |
printf( "%s:%d\n", __FILE__, __LINE__ ); |
356 |
return __towupper_l( c, ((__c_locale)__loc) ); |
356 |
return towupper_l( c, ((__c_locale)__loc) ); |
357 |
} |
357 |
} |
358 |
#endif |
358 |
#endif |
359 |
|
359 |
|
Lines 420-426
Link Here
|
420 |
/* Collate */ |
420 |
/* Collate */ |
421 |
int _Locale_strcmp(struct _Locale_collate * __loc, |
421 |
int _Locale_strcmp(struct _Locale_collate * __loc, |
422 |
const char *s1, size_t n1, const char *s2, size_t n2) { |
422 |
const char *s1, size_t n1, const char *s2, size_t n2) { |
423 |
return __strcoll_l( s1, s2, (__c_locale)__loc ); |
423 |
return strcoll_l( s1, s2, (__c_locale)__loc ); |
424 |
#if 0 |
424 |
#if 0 |
425 |
int ret; |
425 |
int ret; |
426 |
int minN = n1 < n2 ? n1 : n2; |
426 |
int minN = n1 < n2 ? n1 : n2; |
Lines 436-442
Link Here
|
436 |
int _Locale_strwcmp( struct _Locale_collate *__loc, |
436 |
int _Locale_strwcmp( struct _Locale_collate *__loc, |
437 |
const wchar_t *s1, size_t n1, |
437 |
const wchar_t *s1, size_t n1, |
438 |
const wchar_t *s2, size_t n2) { |
438 |
const wchar_t *s2, size_t n2) { |
439 |
return __wcscoll_l( s1, s2, (__c_locale)__loc ); |
439 |
return wcscoll_l( s1, s2, (__c_locale)__loc ); |
440 |
#if 0 |
440 |
#if 0 |
441 |
int ret; |
441 |
int ret; |
442 |
int minN = n1 < n2 ? n1 : n2; |
442 |
int minN = n1 < n2 ? n1 : n2; |
Lines 456-462
Link Here
|
456 |
{ |
456 |
{ |
457 |
size_t n; |
457 |
size_t n; |
458 |
|
458 |
|
459 |
n = __strxfrm_l( dest, src, dest_n, (__c_locale)__loc ); |
459 |
n = strxfrm_l( dest, src, dest_n, (__c_locale)__loc ); |
460 |
|
460 |
|
461 |
return n > src_n ? (size_t)-1 : n; /* dest[n] = 0? */ |
461 |
return n > src_n ? (size_t)-1 : n; /* dest[n] = 0? */ |
462 |
} |
462 |
} |
Lines 469-475
Link Here
|
469 |
{ |
469 |
{ |
470 |
size_t n; |
470 |
size_t n; |
471 |
|
471 |
|
472 |
n = __wcsxfrm_l( dest, src, dest_n, (__c_locale)__loc ); |
472 |
n = wcsxfrm_l( dest, src, dest_n, (__c_locale)__loc ); |
473 |
|
473 |
|
474 |
return n > src_n ? (size_t)-1 : n; /* dest[n] = 0? */ |
474 |
return n > src_n ? (size_t)-1 : n; /* dest[n] = 0? */ |
475 |
} |
475 |
} |