1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 20:00:19 +02:00
Commit graph

20 commits

Author SHA1 Message Date
Kevin Ryde
313f062011 (scm_string_any, scm_string_every): Add support for char
and charset as predicates, per SRFI-13 spec.
2004-08-14 00:36:40 +00:00
Kevin Ryde
4e34b8879a (scm_string_every): Correction to initial "res" value,
return should be #t for an empty string.  Reported by Andreas Vögele.
2004-08-02 00:27:35 +00:00
Marius Vollmer
9ac10bbeb6 (scm_string_trim, scm_string_trim_right, scm_string_trim_both): Cast
to unsigned char for isspace.
2004-05-11 19:07:39 +00:00
Marius Vollmer
65f5dbae9a (s_scm_string_tokenize): Only take character sets as the second arg.
Collect characters belonging to this set into tokens (as specified by
the SRFI), instead of splitting at these characters.  Default to an
equivalent of char-set:graphic instead of everything-but-whitespace.
Thanks to Matthias Koeppe!
2002-04-26 19:16:38 +00:00
Thien-Thi Nguyen
19570609ad Retire inclusion guard macro SCM_MAGIC_SNARFER. 2002-03-14 05:32:48 +00:00
Marius Vollmer
c8af4705e0 (string_titlecase_x): Treat characters as unsigned so that 8-bit chars
work.  Thanks to David Pirotte!
2002-03-11 17:56:39 +00:00
Neil Jerram
39d2ee3ba5 * Miscellaneous doc and docstring fixes. 2001-11-14 00:02:59 +00:00
Thien-Thi Nguyen
9a6b38abe1 (scm_string_for_each): Reverse order of first 2 args.
(scm_string_for_each_index): New func.

Thanks to Alex Shinn.
2001-08-24 22:12:45 +00:00
Thien-Thi Nguyen
fd8a9f4b35 (string-map): Swapped order of string and proc args to
conform with the srfi.  (Thanks to Alex Shinn.)
2001-08-23 19:02:41 +00:00
Martin Grabmüller
2c4df45186 * srfi-4.c: Minor cleanups.
* srfi-14.c (scm_char_set_fold, scm_char_set_unfold)
	(scm_char_set_unfold_x, scm_char_set_for_each)
	(scm_char_set_map, scm_char_set_filter)
	(scm_char_set_filter_x, scm_char_set_count)
	(scm_char_set_every, scm_char_set_any): Replace calls to
	scm_apply() with the corresponding scm_call_N() functions.

	* srfi-14.c (scm_char_set_ref, scm_char_set_cursor_next)
	(scm_char_set_unfold, scm_char_set_unfold_x)
	(scm_char_set_map, scm_char_set_diff_plus_intersection)
	(scm_char_set_diff_plus_intersection_x): Replace deprecated macros
	SCM_LISTN with calls to scm_list_N().

	* srfi-13.c (scm_string_tabulate, scm_string_map)
	(scm_string_map_x, scm_string_unfold)
	(scm_string_unfold_right): Replace deprecated macros SCM_LISTN
	with calls to scm_list_N().

	* srfi-13.c (scm_string_any, scm_string_every),
	(scm_string_tabulate, scm_string_trim),
	(scm_string_trim_right, scm_string_trim_both),
	(scm_string_compare, scm_string_compare_ci),
	(scm_string_indexS, scm_string_index_right),
	(scm_string_skip, scm_string_skip_right, scm_string_count),
	(scm_string_map, scm_string_map_x, scm_string_fold),
	(scm_string_fold_right, scm_string_unfold),
	(scm_string_unfold_right, scm_string_for_each),
	(scm_string_filter, scm_string_delete): Replace calls to
	scm_apply() with the corresponding scm_call_N() functions.
2001-06-28 16:39:00 +00:00
Dirk Herrmann
3628462791 * Deprecated scm_makfromstr and added scm_mem2string as a replacement.
* Eliminated some potential gc problems.
* Eliminated some signedness problems.
* Minor changes.
2001-06-26 10:59:34 +00:00
Marius Vollmer
94451729e0 Avoid using module operations from C.
* srfi-13.c (scm_init_srfi_13_14): Removed.
* srfi-14.h, srfi-14.c (scm_c_init_srfi_14): New.  Contains
initializations needed by C clients of srfi-14.
(scm_init_srfi_13, scm_init_srfi_14): Call it.
* srfi-13.scm: Call "scm_init_srf_13" instead of
"scm_init_srfi_13_14".
* srfi-14.scm: Call "scm_init_srf_14" instead of
"scm_init_srfi_13_14".
2001-05-19 00:17:05 +00:00
Martin Grabmüller
163a7e0d02 * srfi-13.c (scm_string_delete): Logic was inversed for charset.
Fixed.
2001-05-10 13:53:28 +00:00
Martin Grabmüller
2abe254dac * srfi-13.c (scm_string_copyS): Fixed nasty bug. 2001-05-07 22:27:29 +00:00
Martin Grabmüller
2d953700f6 * srfi-14.c, srfi-13.c: Added @bullet to various @itemize lists.
* srfi-10.scm: Typo fix.
2001-05-02 21:47:36 +00:00
Gary Houston
485efc12b7 * srfi-13.c (scm_init_srfi_13), srfi-14.c (scm_init_srfi_14):
add "srfi/" to lines including .x files so they can be found
	when build_dir != src_dir.
2001-04-27 18:16:09 +00:00
Martin Grabmüller
8dddb4bc9f Changed two procedure names to match final SRFI document. Thanks
to Rob Browning for spotting this.

	* srfi-13.scm (string-concatenate-reverse),
	(string-concatenate-reverse/shared): Rename from
	reverse-string-concatenate[/shared].

	* srfi-13.c (scm_string_concatenate_reverse_shared): Renamed from
	scm_reverse_string_concatenate_shared.
	(scm_string_concatenate_reverse): Renamed from
	scm_reverse_string_concatenate.
2001-04-26 19:54:48 +00:00
Martin Grabmüller
653c729127 * srfi-13.c (scm_string_replace): Take sizeof (char) into account
when using memmove().

	* srfi-14.h: Added prototypes for all exported procedures..

	* srfi-13.c: Include srfi-13.h

	* srfi-13.h: New file containing the prototypes.

	* Makefile.am: Removed guile-srfi.texi and info_TEXINFOS variable.
	(libguile_srfi_srfi_13_14_la_SOURCES): Added srfi-14.h, so it gets
	distributed.
	(libguile_srfi_srfi_13_14_la_SOURCES): Added srfi-13.h.
2001-04-25 14:28:11 +00:00
Martin Grabmüller
fafb71de8c * guile-srfi.texi: Removed, because merged with the GRM.
* guile-srfi.texi: The docs are now up to date with the
	implementation and have new introductory material.
2001-04-24 19:38:13 +00:00
Martin Grabmüller
ca003b26ce Integrated the guile-srfi package into the Guile distribution. 2001-04-23 20:21:01 +00:00