-
Notifications
You must be signed in to change notification settings - Fork 2
/
srfi-152.sld
60 lines (53 loc) · 2.42 KB
/
srfi-152.sld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
;;;; Library for R7RS
(define-library (srfi-152)
(import (rename (scheme base)
(string=? base-string=?)
(string<? base-string<?)
(string>? base-string>?)
(string<=? base-string<=?)
(string>=? base-string>=?))
(rename (scheme char)
(string-ci=? base-string-ci=?)
(string-ci<? base-string-ci<?)
(string-ci>? base-string-ci>?)
(string-ci<=? base-string-ci<=?)
(string-ci>=? base-string-ci>=?)))
(import (scheme cxr))
(import (scheme case-lambda))
;; Don't export most R7RS procedures
#;(no-export string? make-string string
string->vector string->list list->string vector->string
string-length string-ref substring string-copy
string=? string<? string>? string<=? string>=?
string-ci=? string-ci<? string-ci>? string-ci<=? string-ci>=?
string-upcase string-downcase string-foldcase
string-append string-map string-for-each
read-string write-string
string-set! string-fill! string-copy!)
;; but export comparison predicates extended to 0 and 1 arguments:
(export string=? string<? string>? string<=? string>=?
string-ci=? string-ci<? string-ci>? string-ci<=? string-ci>=?)
;; Remaining exports, grouped as in the SRFI
(export string-null? string-every string-any)
(export string-tabulate string-unfold string-unfold-right)
(export reverse-list->string)
(export string-take string-drop string-take-right string-drop-right
string-pad string-pad-right
string-trim string-trim-right string-trim-both)
(export string-replace)
(export string-prefix-length string-suffix-length
string-prefix? string-suffix?)
(export string-index string-index-right string-skip string-skip-right
string-contains string-contains-right
string-take-while string-take-while-right
string-drop-while string-drop-while-right
string-break string-span)
(export string-append string-concatenate string-concatenate-reverse
string-join)
(export string-fold string-fold-right string-count
string-filter string-remove)
(export string-replicate string-segment string-split)
(include "macros.scm")
(include "portable.scm")
(include "extend-comparisons.scm")
)