another fix to utitle
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8380 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f077a9b6d1
commit
6d1e92ff1e
2 changed files with 12 additions and 2 deletions
|
|
@ -1,12 +1,20 @@
|
||||||
%module rename_camel
|
%module rename_camel
|
||||||
|
|
||||||
%rename("%(utitle)s",match="cdecl",match$parentNode$nodeType="class") "";
|
%rename("%(utitle)s",match="cdecl",notmatch$decl="",match$parentNode$nodeType="class") "";
|
||||||
|
|
||||||
%inline {
|
%inline {
|
||||||
struct GeometryFactory
|
struct GeometryFactory
|
||||||
{
|
{
|
||||||
void createPointFromInternalCoord(int);
|
void createPointFromInternalCoord(int);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class ByteOrderValues {
|
||||||
|
|
||||||
|
public:
|
||||||
|
void readHEX();
|
||||||
|
static int ENDIAN_BIG;
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -197,8 +197,10 @@ String *Swig_string_utitle(String *s) {
|
||||||
while ((c = Getc(s)) != EOF) {
|
while ((c = Getc(s)) != EOF) {
|
||||||
if (isupper(c)) {
|
if (isupper(c)) {
|
||||||
if (first) Putc('_',ns);
|
if (first) Putc('_',ns);
|
||||||
|
first = 0;
|
||||||
|
} else {
|
||||||
|
first = 1;
|
||||||
}
|
}
|
||||||
first = 1;
|
|
||||||
Putc(tolower(c),ns);
|
Putc(tolower(c),ns);
|
||||||
}
|
}
|
||||||
return ns;
|
return ns;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue