dat_towlower.c 1.0 KB

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