diff --git a/Doc/Manual/SWIG.html b/Doc/Manual/SWIG.html index 1d8f28f1c..4ea55621e 100644 --- a/Doc/Manual/SWIG.html +++ b/Doc/Manual/SWIG.html @@ -1765,7 +1765,7 @@ While writing %rename for specific declarations is simple enough, sometimes the same renaming rule needs to be applied to many, maybe all, identifiers in the SWIG input. For example, it may be necessary to apply some transformation to all the names in the target language to better follow its -naming conventions, e.g. add a specific prefix to all the functions. Doing it +naming conventions, like adding a specific prefix to all wrapped functions. Doing it individually for each function is impractical so SWIG supports applying a renaming rule to all declarations if the name of the identifier to be renamed is not specified:
@@ -1799,28 +1799,28 @@ 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
+%rename("%(strip:[wx])s") ""; // wxHello -> Hello; FooBar -> FooBar
-Here is the table summarizing all currently defined functions with an example -of applying each one (notice that some of them have two names, a shorter one -and a more descriptive one, but the two functions are otherwise equivalent): +Below is the table summarizing all currently defined functions with an example +of applying each one. Note that some of them have two names, a shorter one +and a more descriptive one, but the two functions are otherwise equivalent:
| Function | Returns | Example (in/out) | |||
|---|---|---|---|---|---|
| upper or uppercase | -Upper-case version of the string. | +uppercase or upper | +Upper case version of the string. | ||
| lower or lowercase | -Lower-case version of the string. | +lowercase or lower | +Lower case version of the string. | ||
| PrintIt | printIt | ||||
| ctitle or camelcase | +camelcase or ctitle | String with capitalized first letter and any letter following an underscore (which are removed in the process) and rest in lower case. | print_it | PrintIt | |
| lctitle or lowercamelcase | +lowercamelcase or lctitle | String with every letter following an underscore (which is removed in the process) capitalized and rest, including the first letter, in lower case. | print_it | printIt | |
| utitle or undercase | -Lower case string with underscores inserted before every upper-case + | undercase or utitle | +Lower case string with underscores inserted before every upper case letter in the original string and any number not at the end of string. - Logically, this is the reverse of ccase. | + Logically, this is the reverse of camelcase.PrintIt | print_it |