diff --git a/CHANGES.current b/CHANGES.current index 6cd13990c..3dc3556a1 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -20,6 +20,8 @@ Version 2.0.1 (in progress) adjust your regular expressions syntax as the new regex encoder uses Perl-compatible syntax and not (extended) POSIX syntax as the old one. + *** POTENTIAL INCOMPATIBILITY *** + 2010-07-13: vadz Add "regexmatch", "regextarget" and "notregexmatch" which can be used to apply %rename directives to the declarations matching the @@ -36,7 +38,7 @@ Version 2.0.1 (in progress) lower case versions all declarations except those consisting from capital letters only: - %rename("$(lower)s", notregexmatch$name="^[A-Z]+$") ""; + %rename("$(lowercase)s", notregexmatch$name="^[A-Z]+$") ""; 2010-07-13: vadz Add the new "regex" encoder that can be used in %rename, e.g. diff --git a/Doc/Manual/Contents.html b/Doc/Manual/Contents.html index 66bf41264..ec99a6511 100644 --- a/Doc/Manual/Contents.html +++ b/Doc/Manual/Contents.html @@ -152,6 +152,11 @@
Normally, the name of a C declaration is used when that declaration is @@ -1758,7 +1765,8 @@ This directive is still supported, but it is deprecated and should probably be a directive is more powerful and better supports wrapping of raw header file information.
-While writing %rename for specific declarations is simple enough, @@ -1797,12 +1805,12 @@ can use the "lowercamelcase" extended format specifier like this: Some functions can be parametrized, for example the "strip" one strips the provided prefix from its argument. The prefix is specified as part of the format string, following a colon after the function name: +
%rename("%(strip:[wx])s") ""; // wxHello -> Hello; FooBar -> FooBar
Below is the table summarizing all currently defined functions with an example @@ -1924,7 +1932,8 @@ are exactly equivalent and %rename can be used to selectively ignore multiple declarations using the previously described matching possibilities.
-As explained in the previous sections, it is possible to either rename @@ -1977,7 +1986,7 @@ more complicated matches making it possible to write
-%rename("%(lower)s", match$parentNode$name="SomeClass", %$isenum) "";
+%rename("%(lowercase)s", match$parentNode$name="SomeClass", %$isenum) "";
@@ -2193,7 +2202,7 @@ variation installs the callbacks as all upper case constants such as
/* Some callback functions */
-%callback("%(upper)s");
+%callback("%(uppercase)s");
int add(int,int);
int sub(int,int);
int mul(int,int);
@@ -2201,7 +2210,7 @@ int mul(int,int);
-A format string of "%(lower)s" converts all characters to lower case. +A format string of "%(lowercase)s" converts all characters to lower case. A string of "%(title)s" capitalizes the first character and converts the rest to lower case.
diff --git a/Source/Swig/misc.c b/Source/Swig/misc.c index 14470485e..b3c647546 100644 --- a/Source/Swig/misc.c +++ b/Source/Swig/misc.c @@ -1173,7 +1173,7 @@ String *replace_captures(const char *input, String *subst, int captures[]) /* ----------------------------------------------------------------------------- * Swig_string_regex() * - * Executes a regexp substitution. For example: + * Executes a regular expression substitution. For example: * * Printf(stderr,"gsl%(regex:/GSL_.*_/\\1/)s","GSL_Hello_") -> gslHello * ----------------------------------------------------------------------------- */