swig/Examples/test-suite/python/rename_pcre_encoder_runme.py
Vadim Zeitlin 72afb74f47 Add support for case conversion characters in regex substitutions.
Allow using Perl-like \l, \L, \u, \U and \E escape sequences in the
substitution string used with %rename("%(regex:/pattern/subst/)s").
This is useful for e.g. title casing all string after removing some prefix.

Closes #82
2013-10-15 07:17:56 +01:00

16 lines
406 B
Python

from rename_pcre_encoder import *
s = SomeWidget()
s.put_borderWidth(3)
if s.get_borderWidth() != 3:
raise RuntimeError("Border should be 3, not %d" % (s.get_borderWidth(),))
s.put_size(4, 5)
a = AnotherWidget()
a.DoSomething()
evt = wxEVTSomeEvent()
t = xUnchangedName()
if StartINSAneAndUNSAvoryTraNSAtlanticRaNSAck() != 42:
raise RuntimeError("Unexpected result of renamed function call")