Commit | Line | Data |
---|---|---|
ca003b26 MG |
1 | This is the integration of guile-srfi into the core. -*- text -*- |
2 | ||
3 | [ this is the README from guile-srfi 0.0.3, slightly modified for the | |
4 | integration into the Guile core | |
5 | ||
6 | 'martin -- 2001-04-23 ] | |
7 | ||
8 | This is a compiled Guile module that provides the string procedures | |
9 | defined in SRFI-13 (string library), and the character set procedures | |
10 | defined in SRFI-14 (character-set library). | |
11 | ||
12 | Getting Started ====================================================== | |
13 | ||
14 | 1. Type | |
15 | ||
16 | guile | |
17 | ||
18 | You should now be at the Guile prompt ("guile> "). | |
19 | ||
20 | 2. Type | |
21 | ||
22 | (use-modules (srfi srfi-13)) | |
23 | ||
24 | so that the srfi-13 module gets loaded. | |
25 | ||
26 | 3. We're now ready to try some basic srfi-13/14 functionality. | |
27 | ||
28 | $ guile | |
29 | guile> (use-modules (srfi srfi-13)) | |
30 | guile> (string-concatenate '("Hello" " " "World")) | |
31 | "Hello World" | |
32 | guile> | |
33 | ||
34 | Check out the SRFI-14 (character-set library) procedures, too: | |
35 | ||
36 | $ guile | |
37 | guile> (use-modules (srfi srfi-14)) | |
38 | guile> (char-set-union (char-set #\f #\o #\o) (string->char-set "bar")) | |
39 | #<charset {#\a #\b #\f #\o #\r}> | |
40 | guile> | |
41 | ||
42 | What Is Included ===================================================== | |
43 | ||
44 | All SRFI-13 procedures which are not already compatibly defined in | |
45 | the Guile core are implemented. These are: | |
46 | ||
47 | string-any string-every | |
48 | string-tabulate | |
49 | string->list | |
50 | reverse-list->string | |
51 | string-join | |
52 | string-copy | |
53 | substring/shared string-copy! | |
54 | string-take string-take-right | |
55 | string-drop string-drop-right | |
56 | string-pad string-pad-right | |
57 | string-trim string-trim-right string-trim-both | |
58 | string-fill! | |
59 | string-compare string-compare-ci | |
60 | string= string<> | |
61 | string< string> | |
62 | string<= string>= | |
63 | string-ci= string-ci<> | |
64 | string-ci< string-ci> | |
65 | string-ci<= string-ci>= | |
66 | string-hash string-hash-ci | |
67 | string-prefix-length string-prefix-length-ci | |
68 | string-suffix-length string-suffix-length-ci | |
69 | string-prefix? string-prefix-ci? | |
70 | string-suffix? string-suffix-ci? | |
71 | string-index string-index-right | |
72 | string-skip string-skip-right | |
73 | string-count | |
74 | string-contains string-contains-ci | |
75 | string-upcase string-upcase! | |
76 | string-downcase string-downcase! | |
77 | string-titlecase string-titlecase! | |
78 | string-reverse string-reverse! | |
79 | string-append/shared | |
80 | string-concatenate | |
81 | reverse-string-concatenate | |
82 | string-concatenate/shared | |
83 | reverse-string-concatenate/shared | |
84 | string-map string-map! | |
85 | string-fold string-fold-right | |
86 | string-unfold string-unfold-right | |
87 | string-for-each | |
88 | xsubstring string-xcopy! | |
89 | string-replace string-tokenize | |
90 | string-filter string-delete | |
91 | ||
92 | ||
93 | All procedures and variables defined in SRFI-14 are implemented. | |
94 | Thes complete list is: | |
95 | ||
96 | char-set? char-set= char-set<= | |
97 | char-set-hash | |
98 | char-set-fold char-set-unfold char-set-unfold! | |
99 | char-set-for-each char-set-map | |
100 | char-set-copy | |
101 | char-set | |
102 | list->char-set list->char-set! | |
103 | string->char-set string-char-set! | |
104 | predicate->char-set predicate->char-set! | |
105 | ucs-range->char-set ucs-range->char-set! | |
106 | ->char-set ->char-set! | |
107 | char-set-size char-set-count | |
108 | char-set-members char-set-contains? | |
109 | char-set-every char-set-any | |
110 | char-set-adjoin char-set-adjoin! | |
111 | char-set-delete char-set-delete! | |
112 | char-set-invert char-set-invert! | |
113 | char-set-union char-set-union! | |
114 | char-set-intersection char-set-intersection! | |
115 | char-set-difference char-set-difference! | |
116 | char-set-xor char-set-xor! | |
117 | char-set-diff+intersection char-set-diff+intersection! | |
118 | char-set:lower-case char-set:upper-case | |
119 | char-set:title-case char-set:letter | |
120 | char-set:digit char-set:letter+digit | |
121 | char-set:graphic char-set:printing | |
122 | char-set:whitespace char-set:iso-control | |
123 | char-set:punctuation char-set:symbol | |
124 | char-set:hex-digit char-set:blank | |
125 | char-set:ascii char-set:empty | |
126 | char-set:full | |
127 | ||
128 | ||
129 | What Is Not Included ================================================= | |
130 | ||
131 | The following low-level procedures and syntax defined in SRFI-13 | |
132 | are currently not supported. | |
133 | ||
134 | string-parse-start+end | |
135 | string-parse-final-start+end | |
136 | let-string-start+end | |
137 | check-substring-spec | |
138 | substring-spec-ok? | |
139 | make-kmp-restart-vector | |
140 | kmp-step | |
141 | string-search-kmp |