Commit 00d59e4c authored by Mustafa Senol Cosar's avatar Mustafa Senol Cosar

Generate uppercase enums

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