mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Fix merge error.
This commit is contained in:
parent
cc63608170
commit
5213022a80
@ -74,14 +74,6 @@ def repl_func_for_args(m):
|
|||||||
else:
|
else:
|
||||||
return m.group(1) + m.group(2).upper()
|
return m.group(1) + m.group(2).upper()
|
||||||
|
|
||||||
def toClassName(s):
|
|
||||||
return re.sub("(^|\s|[_0-9])(\S)", repl_func, s)
|
|
||||||
|
|
||||||
|
|
||||||
def toMemberName(s):
|
|
||||||
return re.sub("(\s|_|[0-9])(\S)", repl_func, s)
|
|
||||||
|
|
||||||
|
|
||||||
def setArgumentBool(s, bool_value):
|
def setArgumentBool(s, bool_value):
|
||||||
first_lower = lambda s: s[:1].lower() + s[1:] if s else '' # http://stackoverflow.com/a/3847369/5006740
|
first_lower = lambda s: s[:1].lower() + s[1:] if s else '' # http://stackoverflow.com/a/3847369/5006740
|
||||||
var_name = first_lower(re.sub("(\s|-|[0-9])(\S)", repl_func_for_args, s))
|
var_name = first_lower(re.sub("(\s|-|[0-9])(\S)", repl_func_for_args, s))
|
||||||
|
Loading…
Reference in New Issue
Block a user