From 66817e5970b2ce78e362782463ba4e43c5aa742a Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Fri, 13 Jan 2006 00:06:31 +0000 Subject: [PATCH] fix the ctitle encoder to keep capital letters git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8402 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Swig/misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SWIG/Source/Swig/misc.c b/SWIG/Source/Swig/misc.c index b05d28c32..4ee6be8a3 100644 --- a/SWIG/Source/Swig/misc.c +++ b/SWIG/Source/Swig/misc.c @@ -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;