fix the ctitle encoder to keep capital letters
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8402 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b508290125
commit
0238da1420
1 changed files with 2 additions and 1 deletions
|
|
@ -159,6 +159,7 @@ String *Swig_string_title(String *s) {
|
||||||
* capitalized and the one following '_', which are removed.
|
* capitalized and the one following '_', which are removed.
|
||||||
*
|
*
|
||||||
* camel_case -> CamelCase
|
* camel_case -> CamelCase
|
||||||
|
* camelCase -> CamelCase
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
String *Swig_string_ctitle(String *s) {
|
String *Swig_string_ctitle(String *s) {
|
||||||
|
|
@ -173,7 +174,7 @@ String *Swig_string_ctitle(String *s) {
|
||||||
first = 1;
|
first = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Putc(first ? toupper(c) : tolower(c),ns);
|
Putc(first ? toupper(c) : c, ns);
|
||||||
first = 0;
|
first = 0;
|
||||||
}
|
}
|
||||||
return ns;
|
return ns;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue