diff NEWS @ 20246:f2bc7d23295d

Add special hex/octal escape sequence processing for regexp. * NEWS: Announce change done for Matlab compatibility. * regexp.cc (do_regexp_ptn_string_escapes): Add case for parsing '\oNNN' or '\o{NNN}' octal sequences. PCRE already handles the hex case. * regexp.cc (do_regexp_rep_string_escapes): Add case for parsing '\oNNN' or '\o{NNN}' octal sequences. Add case for parsing '\xNN' or '\x{NN}'.
author Rik <rik@octave.org>
date Thu, 21 May 2015 10:22:27 -0700
parents 29eb47fe8e8c
children 561af1ab6099
line wrap: on
line diff
--- a/NEWS	Wed May 20 17:18:41 2015 -0700
+++ b/NEWS	Thu May 21 10:22:27 2015 -0700
@@ -6,6 +6,12 @@
     The *printf family of functions now supports octal and hex escape
     sequences in single-quoted strings for Matlab compatibility.
 
+ ** Special octal and hex escape sequences for the pattern and replacement
+    strings in regular expressions are now interpreted for Matlab compatibility.
+
+    octal: '\oNNN' or '\o{NNN}'
+    hex  : '\xNN'  or '\x{NN}'
+
  ** mkfifo now interprets the MODE argument as an octal, not decimal, integer.
     This is consistent with the equivalent shell command.