1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

(String Selection): In string-pad, don't say anything

about sharing strings, decided against doing that.
(Miscellaneous String Operations): Ditto in string-filter and
string-delete.
This commit is contained in:
Kevin Ryde 2005-07-12 00:42:10 +00:00
parent c3c97a34e7
commit a88e2a9628

View file

@ -2816,10 +2816,6 @@ characters.
(string-pad-right "x" 3) @result{} "x "
(string-pad-right "abcde" 3) @result{} "abc"
@end example
The return string may share storage with @var{s}, or it can be @var{s}
itself (if @var{start} to @var{end} is the whole string and it's
already @var{len} characters).
@end deffn
@deffn {Scheme Procedure} string-trim s [char_pred [start [end]]]
@ -3606,7 +3602,7 @@ of @var{s}.
@deffn {Scheme Procedure} string-filter s char_pred [start [end]]
@deffnx {C Function} scm_string_filter (s, char_pred, start, end)
Filter the string @var{s}, retaining only those characters which
satisfy @var{char_pred}. The result may share storage with @var{s}.
satisfy @var{char_pred}.
If @var{char_pred} is a procedure, it is applied to each character as
a predicate, if it is a character, it is tested for equality and if it
@ -3615,8 +3611,7 @@ is a character set, it is tested for membership.
@deffn {Scheme Procedure} string-delete s char_pred [start [end]]
@deffnx {C Function} scm_string_delete (s, char_pred, start, end)
Delete characters satisfying @var{char_pred} from @var{s}. The result
may share storage with @var{s}.
Delete characters satisfying @var{char_pred} from @var{s}.
If @var{char_pred} is a procedure, it is applied to each character as
a predicate, if it is a character, it is tested for equality and if it