srfi-14.scm 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ;;; srfi-14.scm --- Character-set Library
  2. ;; Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
  3. ;;
  4. ;; This library is free software; you can redistribute it and/or
  5. ;; modify it under the terms of the GNU Lesser General Public
  6. ;; License as published by the Free Software Foundation; either
  7. ;; version 2.1 of the License, or (at your option) any later version.
  8. ;;
  9. ;; This library is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. ;; Lesser General Public License for more details.
  13. ;;
  14. ;; You should have received a copy of the GNU Lesser General Public
  15. ;; License along with this library; if not, write to the Free Software
  16. ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. ;;; Commentary:
  18. ;; This module is fully documented in the Guile Reference Manual.
  19. ;;; Code:
  20. (define-module (srfi srfi-14))
  21. (re-export
  22. ;;; General procedures
  23. char-set?
  24. char-set=
  25. char-set<=
  26. char-set-hash
  27. ;;; Iterating over character sets
  28. char-set-cursor
  29. char-set-ref
  30. char-set-cursor-next
  31. end-of-char-set?
  32. char-set-fold
  33. char-set-unfold char-set-unfold!
  34. char-set-for-each
  35. char-set-map
  36. ;;; Creating character sets
  37. char-set-copy
  38. char-set
  39. list->char-set list->char-set!
  40. string->char-set string->char-set!
  41. char-set-filter char-set-filter!
  42. ucs-range->char-set ucs-range->char-set!
  43. ->char-set
  44. ;;; Querying character sets
  45. char-set-size
  46. char-set-count
  47. char-set->list
  48. char-set->string
  49. char-set-contains?
  50. char-set-every
  51. char-set-any
  52. ;;; Character set algebra
  53. char-set-adjoin char-set-adjoin!
  54. char-set-delete char-set-delete!
  55. char-set-complement
  56. char-set-union
  57. char-set-intersection
  58. char-set-difference
  59. char-set-xor
  60. char-set-diff+intersection
  61. char-set-complement!
  62. char-set-union!
  63. char-set-intersection!
  64. char-set-difference!
  65. char-set-xor!
  66. char-set-diff+intersection!
  67. ;;; Standard character sets
  68. char-set:lower-case
  69. char-set:upper-case
  70. char-set:title-case
  71. char-set:letter
  72. char-set:digit
  73. char-set:letter+digit
  74. char-set:graphic
  75. char-set:printing
  76. char-set:whitespace
  77. char-set:iso-control
  78. char-set:punctuation
  79. char-set:symbol
  80. char-set:hex-digit
  81. char-set:blank
  82. char-set:ascii
  83. char-set:empty
  84. char-set:full)
  85. (cond-expand-provide (current-module) '(srfi-14))
  86. ;;; srfi-14.scm ends here