Commit 6ba13e3c authored by Mustafa Senol Cosar's avatar Mustafa Senol Cosar

Generate uppercase enums

parent cc615fc9
......@@ -6685,9 +6685,9 @@ def generateSimpleTypes(wrt, prefix, simpleTypeDict):
global UppercaseEnums
def value2Uppercase(value):
if UppercaseEnums:
# This will turn a string 'fooBar123' to 'foo_bar_123'
for regex in NameSeparationRegexList:
value = regex.sub(r"\1_\2", value)
# print(value)
return value.upper()
def validateIdentifier(name):
name = value2Uppercase(name)
......
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