i18n.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef SCM_I18N_H
  2. #define SCM_I18N_H
  3. /* Copyright 2006,2008-2009,2018
  4. Free Software Foundation, Inc.
  5. This file is part of Guile.
  6. Guile is free software: you can redistribute it and/or modify it
  7. under the terms of the GNU Lesser General Public License as published
  8. by the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. Guile is distributed in the hope that it will be useful, but WITHOUT
  11. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  13. License for more details.
  14. You should have received a copy of the GNU Lesser General Public
  15. License along with Guile. If not, see
  16. <https://www.gnu.org/licenses/>. */
  17. #include "libguile/scm.h"
  18. SCM_API SCM scm_global_locale;
  19. SCM_API SCM scm_make_locale (SCM category_mask, SCM locale_name, SCM base_locale);
  20. SCM_API SCM scm_locale_p (SCM obj);
  21. SCM_API SCM scm_string_locale_lt (SCM s1, SCM s2, SCM locale);
  22. SCM_API SCM scm_string_locale_gt (SCM s1, SCM s2, SCM locale);
  23. SCM_API SCM scm_string_locale_ci_lt (SCM s1, SCM s2, SCM locale);
  24. SCM_API SCM scm_string_locale_ci_gt (SCM s1, SCM s2, SCM locale);
  25. SCM_API SCM scm_string_locale_ci_eq (SCM s1, SCM s2, SCM locale);
  26. SCM_API SCM scm_char_locale_lt (SCM c1, SCM c2, SCM locale);
  27. SCM_API SCM scm_char_locale_gt (SCM c1, SCM c2, SCM locale);
  28. SCM_API SCM scm_char_locale_ci_lt (SCM c1, SCM c2, SCM locale);
  29. SCM_API SCM scm_char_locale_ci_gt (SCM c1, SCM c2, SCM locale);
  30. SCM_API SCM scm_char_locale_ci_eq (SCM c1, SCM c2, SCM locale);
  31. SCM_API SCM scm_char_locale_upcase (SCM chr, SCM locale);
  32. SCM_API SCM scm_char_locale_downcase (SCM chr, SCM locale);
  33. SCM_API SCM scm_char_locale_titlecase (SCM chr, SCM locale);
  34. SCM_API SCM scm_string_locale_upcase (SCM chr, SCM locale);
  35. SCM_API SCM scm_string_locale_downcase (SCM chr, SCM locale);
  36. SCM_API SCM scm_string_locale_titlecase (SCM chr, SCM locale);
  37. SCM_API SCM scm_locale_string_to_integer (SCM str, SCM base, SCM locale);
  38. SCM_API SCM scm_locale_string_to_inexact (SCM str, SCM locale);
  39. SCM_INTERNAL SCM scm_nl_langinfo (SCM item, SCM locale);
  40. SCM_INTERNAL void scm_init_i18n (void);
  41. SCM_INTERNAL void scm_bootstrap_i18n (void);
  42. #endif /* SCM_I18N_H */