diff libinterp/corefcn/regexp.cc @ 29117:10a35049bad7

doc: Cleanup Texinfo macros use in documentation. * macros.texi: Delete @xbackslashchar macro which was needed for Texinfo versions < 5.1 (2013 release date). Alphabetize macros. Document macros more clearly. * func.txi, data.cc, error.cc, file-io.cc, regexp.cc, strfns.cc, utils.cc, pt-eval.cc, beep.m, dlmwrite.m, strread.m, textread.m, asctime.m, ctime.m: Replace "@xbackslashchar" with just "@backslashchar". * graphics.cc (Fwaitfor): Replace '\' in @qcode macro with @backslashchar. * input.cc (FPS1): Replace '\' in @qcode macro with @backslashchar. Use single quotes in @example block to avoid "\\" construct. * jsonencode.cc (Fjsonencode): Replace '\' in @qcode macro with @backslashchar. * sysdep.cc (Fwinqueryreg): Replace '\' in @qcode macro with @backslashchar.
author Rik <rik@octave.org>
date Fri, 27 Nov 2020 17:01:47 -0800
parents d9d028b479ac
children 8f0d0d4690c0
line wrap: on
line diff
--- a/libinterp/corefcn/regexp.cc	Fri Nov 27 13:49:11 2020 -0500
+++ b/libinterp/corefcn/regexp.cc	Fri Nov 27 17:01:47 2020 -0800
@@ -752,10 +752,10 @@
 @end table
 
 Implementation Note: For compatibility with @sc{matlab}, escape sequences
-in @var{pat} (e.g., @qcode{"@xbackslashchar{}n"} => newline) are expanded
+in @var{pat} (e.g., @qcode{"@backslashchar{}n"} => newline) are expanded
 even when @var{pat} has been defined with single quotes.  To disable
 expansion use a second backslash before the escape sequence (e.g.,
-"@xbackslashchar{}@xbackslashchar{}n") or use the @code{regexptranslate}
+"@backslashchar{}@backslashchar{}n") or use the @code{regexptranslate}
 function.
 
 The outputs of @code{regexp} default to the order given below
@@ -1424,10 +1424,10 @@
 @end table
 
 Implementation Note: For compatibility with @sc{matlab}, escape sequences
-in @var{pat} (e.g., @qcode{"@xbackslashchar{}n"} => newline) are expanded
+in @var{pat} (e.g., @qcode{"@backslashchar{}n"} => newline) are expanded
 even when @var{pat} has been defined with single quotes.  To disable
 expansion use a second backslash before the escape sequence (e.g.,
-"@xbackslashchar{}@xbackslashchar{}n") or use the @code{regexptranslate}
+"@backslashchar{}@backslashchar{}n") or use the @code{regexptranslate}
 function.
 @seealso{regexp, regexpi, strrep}
 @end deftypefn */)