mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +02:00
Add substring-move-left! and substring-move-right!.
This commit is contained in:
parent
2e945bccca
commit
ab27fb593a
1 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,24 @@
|
|||
@page
|
||||
@node Deprecated
|
||||
@chapter Deprecated
|
||||
|
||||
The features and functions described in this chapter are considered
|
||||
obsolete and should not be used by new programs. They're retained for
|
||||
compatibility with past versions of Guile.
|
||||
|
||||
@deffn {Scheme Procedure} substring-move-left! str1 start1 end1 str2 start2
|
||||
@deffnx {Scheme Procedure} substring-move-right! str1 start1 end1 str2 start2
|
||||
These functions are aliases for @code{substring-move!} and calls to
|
||||
them can simply be replaced by @code{substring-move!} (@pxref{String
|
||||
Modification}.)
|
||||
|
||||
In the past, if @var{str1} and @var{str2} were the same string, it was
|
||||
necessary to call @code{substring-move-left!} if the move was to the
|
||||
left (@math{@var{start2} < @var{start1}}), or call
|
||||
@code{substring-move-right!} if the move was to the right
|
||||
(@math{@var{start2} > @var{start1}}). @code{substring-move!} is now
|
||||
able to do both.
|
||||
@end deffn
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue