Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion JsonGenerator/source/header_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __to_pascal(string, uppercase=True):
if not string.isupper() and '_' not in string:
_pascal = [x[0].upper() + x[1:] for x in _split]
else:
_pascal = [x.capitalize() for x in _split]
_pascal = [x.title() for x in _split]

if uppercase:
if _split[0].isupper() and not string.isupper() and '_' not in string:
Expand Down
8 changes: 8 additions & 0 deletions ProxyStubGenerator/CppParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2576,6 +2576,8 @@ def Parse(contents,log = None):
new_enum.meta.decorators.append("encode:text")
encode_enum_next = False

text_next = None

# Parse class access specifier...
elif isinstance(current_block[-1], Class) and tokens[i] == ':':
current_block[-1]._current_access = tokens[i - 1]
Expand Down Expand Up @@ -2803,6 +2805,11 @@ def Parse(contents,log = None):
value = entry[where + 1:]
del entry[where:]

if text_next:
# handle case when @text precedes the first enumerator
entry = entry + ["@TEXT", [text_next]]
text_next = None

Enumerator(enum, entry, value, enum.type)
if tokens[i + 1] == '}':
i += 1 # handle ,} situation
Expand All @@ -2811,6 +2818,7 @@ def Parse(contents,log = None):
break
else:
j = i + 1

i += 1

if in_typedef:
Expand Down
Loading