Minor fix to Swig_string_ucase so that it doesn't output two__underscores in a row.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8442 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Charlie Savage 2006-01-15 00:36:06 +00:00
commit 5db285b66b

View file

@ -204,6 +204,10 @@ String *Swig_string_ucase(String *s) {
first = 1;
}
}
else if (c == '_') {
/* We don't want two underscores in a row */
first = 0;
}
Putc(tolower(c),ns);
}
return ns;
@ -729,7 +733,6 @@ int Swig_scopename_check(String *s) {
#if defined(HAVE_POPEN)
extern FILE *popen(const char *command, const char *type);
extern int pclose(FILE *stream);
#endif
String *Swig_string_command(String *s) {
String *res = NewStringEmpty();