diff options
| author | Filipp Gunbin | 2021-07-10 19:00:01 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-07-10 19:00:01 +0200 |
| commit | b7a495f8d032e7c60f490a4a822f854707f02275 (patch) | |
| tree | fe41d06b109194fd80a0870d5c116964e38a19c6 | |
| parent | da7dbfdf6858c4644a8d082639edd8a532e47c42 (diff) | |
| download | emacs-b7a495f8d032e7c60f490a4a822f854707f02275.tar.gz emacs-b7a495f8d032e7c60f490a4a822f854707f02275.zip | |
doc/lispref/text.texi (Substitution): Add subst-char-in-string
* doc/lispref/text.texi (Substitution): Document
subst-char-in-string (bug#49420).
| -rw-r--r-- | doc/lispref/text.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 0c87a19fa14..71a8efe3622 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -4428,6 +4428,16 @@ ThXs Xs the contents of the buffer before. | |||
| 4428 | @end example | 4428 | @end example |
| 4429 | @end defun | 4429 | @end defun |
| 4430 | 4430 | ||
| 4431 | |||
| 4432 | @defun subst-char-in-string fromchar tochar string &optional inplace | ||
| 4433 | @cindex replace characters in string | ||
| 4434 | This function replaces all occurences of the character @var{fromchar} | ||
| 4435 | with @var{tochar} in @var{string}. Unless @var{inplace} is non-nil, | ||
| 4436 | substitution occurs in a copy of @var{string}. In any case, the | ||
| 4437 | function returns the resulting string. Both characters must have the | ||
| 4438 | same multi-byte length. | ||
| 4439 | @end defun | ||
| 4440 | |||
| 4431 | @deffn Command translate-region start end table | 4441 | @deffn Command translate-region start end table |
| 4432 | This function applies a translation table to the characters in the | 4442 | This function applies a translation table to the characters in the |
| 4433 | buffer between positions @var{start} and @var{end}. | 4443 | buffer between positions @var{start} and @var{end}. |