mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-19 10:22:27 +00:00
doc/lispref/text.texi (Substitution): Add subst-char-in-string
* doc/lispref/text.texi (Substitution): Document subst-char-in-string (bug#49420).
This commit is contained in:
parent
da7dbfdf68
commit
b7a495f8d0
@ -4428,6 +4428,16 @@ ThXs Xs the contents of the buffer before.
|
||||
@end example
|
||||
@end defun
|
||||
|
||||
|
||||
@defun subst-char-in-string fromchar tochar string &optional inplace
|
||||
@cindex replace characters in string
|
||||
This function replaces all occurences of the character @var{fromchar}
|
||||
with @var{tochar} in @var{string}. Unless @var{inplace} is non-nil,
|
||||
substitution occurs in a copy of @var{string}. In any case, the
|
||||
function returns the resulting string. Both characters must have the
|
||||
same multi-byte length.
|
||||
@end defun
|
||||
|
||||
@deffn Command translate-region start end table
|
||||
This function applies a translation table to the characters in the
|
||||
buffer between positions @var{start} and @var{end}.
|
||||
|
Loading…
Reference in New Issue
Block a user