1 |
;;; srfi-13.scm --- String Library |
;;; srfi-13.scm --- String Library |
2 |
|
|
3 |
;; Copyright (C) 2001, 2002 Free Software Foundation, Inc. |
;; Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. |
4 |
;; |
;; |
5 |
;; This program is free software; you can redistribute it and/or |
;; This program is free software; you can redistribute it and/or |
6 |
;; modify it under the terms of the GNU General Public License as |
;; modify it under the terms of the GNU General Public License as |
47 |
|
|
48 |
;;; Code: |
;;; Code: |
49 |
|
|
50 |
(define-module (srfi srfi-13)) |
(define-module (srfi srfi-13) |
51 |
|
:export ( |
|
(export |
|
52 |
;;; Predicates |
;;; Predicates |
53 |
;; string? string-null? <= in the core |
;; string? string-null? <= in the core |
54 |
string-any string-every |
string-any string-every |
58 |
string-tabulate |
string-tabulate |
59 |
|
|
60 |
;;; List/string conversion |
;;; List/string conversion |
61 |
string->list |
;; string->list extended |
62 |
;; list->string <= in the core |
;; list->string <= in the core |
63 |
reverse-list->string |
reverse-list->string |
64 |
string-join |
string-join |
65 |
|
|
66 |
;;; Selection |
;;; Selection |
67 |
;; string-length string-ref <= in the core |
;; string-length string-ref <= in the core |
68 |
string-copy |
;; string-copy extended |
69 |
substring/shared |
substring/shared |
70 |
string-copy! |
string-copy! |
71 |
string-take string-take-right |
string-take string-take-right |
76 |
|
|
77 |
;;; Modification |
;;; Modification |
78 |
;; string-set! <= in the core |
;; string-set! <= in the core |
79 |
string-fill! |
;; string-fill! extended |
80 |
|
|
81 |
;;; Comparison |
;;; Comparison |
82 |
string-compare string-compare-ci |
string-compare string-compare-ci |
99 |
string-suffix-ci? |
string-suffix-ci? |
100 |
|
|
101 |
;;; Searching |
;;; Searching |
102 |
string-index string-index-right |
;; string-index extended |
103 |
|
string-index-right |
104 |
string-skip string-skip-right |
string-skip string-skip-right |
105 |
string-count |
string-count |
106 |
string-contains string-contains-ci |
string-contains string-contains-ci |
107 |
|
|
108 |
;;; Alphabetic case mapping |
;;; Alphabetic case mapping |
109 |
|
|
110 |
string-upcase string-upcase! |
;; string-upcase string-upcase! extended |
111 |
string-downcase string-downcase! |
;; string-downcase string-downcase! extended |
112 |
string-titlecase string-titlecase! |
string-titlecase string-titlecase! |
113 |
|
|
114 |
;;; Reverse/Append |
;;; Reverse/Append |
140 |
string-filter |
string-filter |
141 |
string-delete |
string-delete |
142 |
) |
) |
143 |
|
:replace (string->list string-copy string-fill! |
144 |
|
string-upcase! string-upcase string-downcase! string-downcase |
145 |
|
string-index) |
146 |
|
) |
147 |
|
|
148 |
(cond-expand-provide (current-module) '(srfi-13)) |
(cond-expand-provide (current-module) '(srfi-13)) |
149 |
|
|