locale-categories.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* Copyright (C) 2006, 2008, 2014 Free Software Foundation, Inc.
  2. *
  3. * This library is free software; you can redistribute it and/or
  4. * modify it under the terms of the GNU Lesser General Public License
  5. * as published by the Free Software Foundation; either version 3 of
  6. * the License, or (at your option) any later version.
  7. *
  8. * This library is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. * Lesser General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Lesser General Public
  14. * License along with this library; if not, write to the Free Software
  15. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  16. * 02110-1301 USA
  17. */
  18. /* A list of all available locale categories, not including `ALL'. */
  19. /* The six standard categories, as defined in IEEE Std 1003.1-2001. */
  20. SCM_DEFINE_LOCALE_CATEGORY (COLLATE)
  21. SCM_DEFINE_LOCALE_CATEGORY (CTYPE)
  22. #if defined(LC_MESSAGES) && !(defined(LC_MAX) && LC_MESSAGES > LC_MAX)
  23. /* MinGW doesn't have `LC_MESSAGES'. libintl.h might define
  24. `LC_MESSAGES' for MinGW to an arbitrary large value which we cannot
  25. use in a call to `setlocale'. */
  26. SCM_DEFINE_LOCALE_CATEGORY (MESSAGES)
  27. #endif
  28. SCM_DEFINE_LOCALE_CATEGORY (MONETARY)
  29. SCM_DEFINE_LOCALE_CATEGORY (NUMERIC)
  30. SCM_DEFINE_LOCALE_CATEGORY (TIME)
  31. /* Additional non-standard categories. */
  32. #ifdef LC_PAPER
  33. SCM_DEFINE_LOCALE_CATEGORY (PAPER)
  34. #endif
  35. #ifdef LC_NAME
  36. SCM_DEFINE_LOCALE_CATEGORY (NAME)
  37. #endif
  38. #ifdef LC_ADDRESS
  39. SCM_DEFINE_LOCALE_CATEGORY (ADDRESS)
  40. #endif
  41. #ifdef LC_TELEPHONE
  42. SCM_DEFINE_LOCALE_CATEGORY (TELEPHONE)
  43. #endif
  44. #ifdef LC_MEASUREMENT
  45. SCM_DEFINE_LOCALE_CATEGORY (MEASUREMENT)
  46. #endif
  47. #ifdef LC_IDENTIFICATION
  48. SCM_DEFINE_LOCALE_CATEGORY (IDENTIFICATION)
  49. #endif