srfi-13.scm 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. ;;; srfi-13.scm --- String Library
  2. ;; Copyright (C) 2001, 2002, 2003, 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 3 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. ;;
  20. ;; All procedures are in the core and are simply reexported here.
  21. ;;; Code:
  22. (define-module (srfi srfi-13))
  23. (re-export
  24. ;;; Predicates
  25. string?
  26. string-null?
  27. string-any
  28. string-every
  29. ;;; Constructors
  30. make-string
  31. string
  32. string-tabulate
  33. ;;; List/string conversion
  34. string->list
  35. list->string
  36. reverse-list->string
  37. string-join
  38. ;;; Selection
  39. string-length
  40. string-ref
  41. string-copy
  42. substring/shared
  43. string-copy!
  44. string-take string-take-right
  45. string-drop string-drop-right
  46. string-pad string-pad-right
  47. string-trim string-trim-right
  48. string-trim-both
  49. ;;; Modification
  50. string-set!
  51. string-fill!
  52. ;;; Comparison
  53. string-compare
  54. string-compare-ci
  55. string= string<>
  56. string< string>
  57. string<= string>=
  58. string-ci= string-ci<>
  59. string-ci< string-ci>
  60. string-ci<= string-ci>=
  61. string-hash string-hash-ci
  62. ;;; Prefixes/Suffixes
  63. string-prefix-length
  64. string-prefix-length-ci
  65. string-suffix-length
  66. string-suffix-length-ci
  67. string-prefix?
  68. string-prefix-ci?
  69. string-suffix?
  70. string-suffix-ci?
  71. ;;; Searching
  72. string-index
  73. string-index-right
  74. string-skip string-skip-right
  75. string-count
  76. string-contains string-contains-ci
  77. ;;; Alphabetic case mapping
  78. string-upcase
  79. string-upcase!
  80. string-downcase
  81. string-downcase!
  82. string-titlecase
  83. string-titlecase!
  84. ;;; Reverse/Append
  85. string-reverse
  86. string-reverse!
  87. string-append
  88. string-append/shared
  89. string-concatenate
  90. string-concatenate-reverse
  91. string-concatenate/shared
  92. string-concatenate-reverse/shared
  93. ;;; Fold/Unfold/Map
  94. string-map string-map!
  95. string-fold
  96. string-fold-right
  97. string-unfold
  98. string-unfold-right
  99. string-for-each
  100. string-for-each-index
  101. ;;; Replicate/Rotate
  102. xsubstring
  103. string-xcopy!
  104. ;;; Miscellaneous
  105. string-replace
  106. string-tokenize
  107. ;;; Filtering/Deleting
  108. string-filter
  109. string-delete)
  110. (cond-expand-provide (current-module) '(srfi-13))
  111. ;;; srfi-13.scm ends here