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
16 lines
406 B
Python
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")
|