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:
parent
c3c97a34e7
commit
a88e2a9628
1 changed files with 2 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue