Commit bae3d3d5 authored by Mustafa Senol Cosar's avatar Mustafa Senol Cosar

Generate uppercase enums

parent 00d59e4c
......@@ -6688,7 +6688,8 @@ def generateSimpleTypes(wrt, prefix, simpleTypeDict):
# This will turn a string 'fooBar123' to 'foo_Bar_123'
for regex in NameSeparationRegexList:
value = regex.sub(r"\1_\2", value)
return value.upper()
value = value.upper()
return value
def validateIdentifier(name):
name = value2Uppercase(name)
validPythonIdentifier = True
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment