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:
Marcelo Matus 2006-01-13 00:06:31 +00:00
commit 0238da1420

View file

@ -159,6 +159,7 @@ String *Swig_string_title(String *s) {
* capitalized and the one following '_', which are removed.
*
* camel_case -> CamelCase
* camelCase -> CamelCase
* ----------------------------------------------------------------------------- */
String *Swig_string_ctitle(String *s) {
@ -173,7 +174,7 @@ String *Swig_string_ctitle(String *s) {
first = 1;
continue;
}
Putc(first ? toupper(c) : tolower(c),ns);
Putc(first ? toupper(c) : c, ns);
first = 0;
}
return ns;