dat_towupper.c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
  3. *
  4. * FILE: dat_towupper.c
  5. *
  6. * ISW*: int towupper (wint_t wc);
  7. */
  8. #include "dat_tow-funcs.h"
  9. TST_TOW_LOC (UPPER, upper) = {
  10. { TST_TOW_REC (de, upper)
  11. {
  12. { { WEOF }, { 0, 1, (wint_t)-1 } },
  13. { { 0x0080 }, { 0, 1, 0x0080 } },
  14. { { 0x00EC }, { 0, 1, 0x00CC } },
  15. { { 0x00CC }, { 0, 1, 0x00CC } },
  16. { .is_last = 1 } /* Last element. */
  17. }
  18. },
  19. { TST_TOW_REC (enUS, upper)
  20. {
  21. { { WEOF }, { 0, 1, (wint_t)-1 } },
  22. { { 0x0080 }, { 0, 1, 0x0080 } },
  23. { { 0x0041 }, { 0, 1, 0x0041 } },
  24. { { 0x0061 }, { 0, 1, 0x0041 } },
  25. { .is_last = 1 } /* Last element. */
  26. }
  27. },
  28. #if 0
  29. { TST_TOW_REC (eucJP, upper)
  30. #else
  31. { TST_TOW_REC (ja_UTF8, upper)
  32. #endif
  33. {
  34. { { WEOF }, { 0, 1, (wint_t)-1 } },
  35. { { 0x007F }, { 0, 1, 0x007F } },
  36. { { 0xFF41 }, { 0, 1, 0xFF21 } },
  37. { { 0xFF21 }, { 0, 1, 0xFF21 } },
  38. { .is_last = 1 } /* Last element. */
  39. }
  40. },
  41. { TST_TOW_REC (end, upper) }
  42. };