summaryrefslogtreecommitdiff
path: root/Examples/test-suite/rename_pcre_encoder.i
blob: 1bee1dca82f9aacc2112dbdc5d51d5ba78fa8ff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%module rename_pcre_encoder

// strip the wx prefix from all identifiers except those starting with wxEVT
%rename("%(regex:/wx(?!EVT)(.*)/\\1/)s") "";

// Replace "Set" prefix with "put" in all functions
%rename("%(regex:/^Set(.*)/put\\1/)s", %$isfunction) "";

%inline %{

struct wxSomeWidget {
    void SetBorderWidth(int);
    void SetSize(int, int);
};

struct wxAnotherWidget {
    void wxDoSomething() {}
};

class wxEVTSomeEvent {
};

class xUnchangedName {
};

%}