diff --git a/docs/formats.html b/docs/formats.html index c08b923..cac1788 100644 --- a/docs/formats.html +++ b/docs/formats.html @@ -601,7 +601,7 @@ It is only available if a PCRE library is installed.
If PCRE is not available for your host or cross architecture, download
-the sourcecode from www.pcre.org
+the sourcecode from www.pcre.org
and try my EPICS compatible Makefile
to compile it like a normal EPICS support module.
@@ -656,6 +656,13 @@ Matches of the regex are replaced by the string subst with all
\1
through \9
replaced with the match of the corresponding
sub-expression if such a sub-expression exists.
+Occurrences of \Un
, \Ln
, \un
,
+or \ln
with n
being a number 0
+through 9
or &
are replaced with the corresponding sub-expression
+converted to all upper case, all lower case, first letter upper case, or first letter lower
+case, respectively.
+
Due to limitations of the parser, \1
and \x01
are the same
which makes it difficult to use literal bytes with values lower than 10 in subst.
Therefore \0
aways means a literal byte (incompatible change from earlier version!)
@@ -722,6 +729,9 @@ which is not at the end of a word.
%#/([^+-])*([+-])/\2\1/
moves a postfix sign to the front.
(1.23-
becomes -1.23
)
%#-2/.*/\U0/
converts the previous 2 characters to upper case.
+%m
)
diff --git a/src/RegexpConverter.cc b/src/RegexpConverter.cc
index d6f5bf9..d3e9f2d 100644
--- a/src/RegexpConverter.cc
+++ b/src/RegexpConverter.cc
@@ -20,9 +20,10 @@
#include "StreamFormatConverter.h"
#include "StreamError.h"
-#include "string.h"
#include "pcre.h"
+#include