Reify bytevector? in the correct module
[bpt/guile.git] / libguile / srfi-13.h
CommitLineData
63181a97
MV
1#ifndef SCM_SRFI_13_H
2#define SCM_SRFI_13_H
3
4/* srfi-13.c --- SRFI-13 procedures for Guile
5 *
9fe717e2 6 * Copyright (C) 2001, 2004, 2006, 2008, 2010 Free Software Foundation, Inc.
63181a97
MV
7 *
8 * This library is free software; you can redistribute it and/or
53befeb7
NJ
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 3 of
11 * the License, or (at your option) any later version.
63181a97 12 *
53befeb7
NJ
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
63181a97
MV
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
53befeb7
NJ
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 * 02110-1301 USA
63181a97
MV
22 */
23\f
24
25#include "libguile/__scm.h"
26
27SCM_API SCM scm_string_null_p (SCM s);
28SCM_API SCM scm_string_any (SCM pred, SCM s, SCM start, SCM end);
29SCM_API SCM scm_string_every (SCM pred, SCM s, SCM start, SCM end);
30SCM_API SCM scm_string_tabulate (SCM proc, SCM len);
31SCM_API SCM scm_string_to_list (SCM str);
32SCM_API SCM scm_substring_to_list (SCM str, SCM start, SCM end);
33SCM_API SCM scm_reverse_list_to_string (SCM chrs);
34SCM_API SCM scm_string_join (SCM ls, SCM delimiter, SCM grammar);
35SCM_API SCM scm_string_copy (SCM str);
36SCM_API SCM scm_string_copy_x (SCM target, SCM tstart, SCM s, SCM start, SCM end);
37SCM_API SCM scm_substring_move_x (SCM str1, SCM start1, SCM end1,
38 SCM str2, SCM start2);
39SCM_API SCM scm_string_take (SCM s, SCM n);
40SCM_API SCM scm_string_drop (SCM s, SCM n);
41SCM_API SCM scm_string_take_right (SCM s, SCM n);
42SCM_API SCM scm_string_drop_right (SCM s, SCM n);
43SCM_API SCM scm_string_pad (SCM s, SCM len, SCM chr, SCM start, SCM end);
44SCM_API SCM scm_string_pad_right (SCM s, SCM len, SCM chr, SCM start, SCM end);
45SCM_API SCM scm_string_trim (SCM s, SCM char_pred, SCM start, SCM end);
46SCM_API SCM scm_string_trim_right (SCM s, SCM char_pred, SCM start, SCM end);
47SCM_API SCM scm_string_trim_both (SCM s, SCM char_pred, SCM start, SCM end);
48SCM_API SCM scm_substring_fill_x (SCM str, SCM chr, SCM start, SCM end);
49SCM_API SCM scm_string_fill_x (SCM str, SCM chr);
50SCM_API SCM scm_string_compare (SCM s1, SCM s2, SCM proc_lt, SCM proc_eq, SCM proc_gt, SCM start1, SCM end1, SCM start2, SCM end2);
51SCM_API SCM scm_string_compare_ci (SCM s1, SCM s2, SCM proc_lt, SCM proc_eq, SCM proc_gt, SCM start1, SCM end1, SCM start2, SCM end2);
52SCM_API SCM scm_string_eq (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
53SCM_API SCM scm_string_neq (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
54SCM_API SCM scm_string_lt (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
55SCM_API SCM scm_string_gt (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
56SCM_API SCM scm_string_le (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
57SCM_API SCM scm_string_ge (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
58SCM_API SCM scm_string_ci_eq (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
59SCM_API SCM scm_string_ci_neq (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
60SCM_API SCM scm_string_ci_lt (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
61SCM_API SCM scm_string_ci_gt (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
62SCM_API SCM scm_string_ci_le (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
63SCM_API SCM scm_string_ci_ge (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
64SCM_API SCM scm_substring_hash (SCM s, SCM bound, SCM start, SCM end);
65SCM_API SCM scm_substring_hash_ci (SCM s, SCM bound, SCM start, SCM end);
66SCM_API SCM scm_string_prefix_length (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
67SCM_API SCM scm_string_prefix_length_ci (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
68SCM_API SCM scm_string_suffix_length (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
69SCM_API SCM scm_string_suffix_length_ci (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
70SCM_API SCM scm_string_prefix_p (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
71SCM_API SCM scm_string_prefix_ci_p (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
72SCM_API SCM scm_string_suffix_p (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
73SCM_API SCM scm_string_suffix_ci_p (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
74SCM_API SCM scm_string_index (SCM s, SCM char_pred, SCM start, SCM end);
75SCM_API SCM scm_string_index_right (SCM s, SCM char_pred, SCM start, SCM end);
76SCM_API SCM scm_string_rindex (SCM s, SCM char_pred, SCM start, SCM end);
77SCM_API SCM scm_string_skip (SCM s, SCM char_pred, SCM start, SCM end);
78SCM_API SCM scm_string_skip_right (SCM s, SCM char_pred, SCM start, SCM end);
79SCM_API SCM scm_string_count (SCM s, SCM char_pred, SCM start, SCM end);
80SCM_API SCM scm_string_contains (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
81SCM_API SCM scm_string_contains_ci (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
82SCM_API SCM scm_substring_upcase_x (SCM str, SCM start, SCM end);
83SCM_API SCM scm_substring_upcase (SCM str, SCM start, SCM end);
84SCM_API SCM scm_string_upcase_x (SCM str);
85SCM_API SCM scm_string_upcase (SCM str);
86SCM_API SCM scm_substring_downcase_x (SCM str, SCM start, SCM end);
87SCM_API SCM scm_substring_downcase (SCM str, SCM start, SCM end);
88SCM_API SCM scm_string_downcase_x (SCM str);
89SCM_API SCM scm_string_downcase (SCM str);
90SCM_API SCM scm_string_titlecase_x (SCM str, SCM start, SCM end);
91SCM_API SCM scm_string_titlecase (SCM str, SCM start, SCM end);
92SCM_API SCM scm_string_capitalize_x (SCM str);
93SCM_API SCM scm_string_capitalize (SCM str);
94SCM_API SCM scm_string_reverse (SCM str, SCM start, SCM end);
95SCM_API SCM scm_string_reverse_x (SCM str, SCM start, SCM end);
96SCM_API SCM scm_string_append_shared (SCM ls);
97SCM_API SCM scm_string_concatenate (SCM ls);
98SCM_API SCM scm_string_concatenate_shared (SCM ls);
99SCM_API SCM scm_string_concatenate_reverse (SCM ls, SCM final_string, SCM end);
100SCM_API SCM scm_string_concatenate_reverse_shared (SCM ls, SCM final_string, SCM end);
101SCM_API SCM scm_string_map (SCM proc, SCM s, SCM start, SCM end);
102SCM_API SCM scm_string_map_x (SCM proc, SCM s, SCM start, SCM end);
103SCM_API SCM scm_string_fold (SCM kons, SCM knil, SCM s, SCM start, SCM end);
104SCM_API SCM scm_string_fold_right (SCM kons, SCM knil, SCM s, SCM start, SCM end);
105SCM_API SCM scm_string_unfold (SCM p, SCM f, SCM g, SCM seed, SCM base, SCM make_final);
106SCM_API SCM scm_string_unfold_right (SCM p, SCM f, SCM g, SCM seed, SCM base, SCM make_final);
107SCM_API SCM scm_string_for_each (SCM proc, SCM s, SCM start, SCM end);
108SCM_API SCM scm_string_for_each_index (SCM proc, SCM s, SCM start, SCM end);
109SCM_API SCM scm_xsubstring (SCM s, SCM from, SCM to, SCM start, SCM end);
110SCM_API SCM scm_string_xcopy_x (SCM target, SCM tstart, SCM s, SCM sfrom, SCM sto, SCM start, SCM end);
111SCM_API SCM scm_string_replace (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
112SCM_API SCM scm_string_tokenize (SCM s, SCM token_char, SCM start, SCM end);
5f085775 113SCM_API SCM scm_string_split (SCM s, SCM char_pred);
9fe717e2
AW
114SCM_API SCM scm_string_filter (SCM char_pred, SCM s, SCM start, SCM end);
115SCM_API SCM scm_string_delete (SCM char_pred, SCM s, SCM start, SCM end);
63181a97 116
102dbb6f
LC
117SCM_INTERNAL void scm_init_srfi_13 (void);
118SCM_INTERNAL void scm_init_srfi_13_14 (void);
63181a97
MV
119
120#endif /* SCM_SRFI_13_H */