Enums named with CAPITALS_WITH_UNDERSCORES are not correctly renamed when fixCase is used
Opened this issue · 0 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Create a protocol buffer enum according to the google guidelines with
members named CAPITALS_WITH_UNDERSCORES
2. Generate the corresponding C# files with fixCase enabled.
What is the expected output? What do you see instead?
The enum member names should become CapitalsWithUnderscores but they become
CAPITALSWITHUNDERSCORES.
What version of the product are you using? On what operating system?
"NET3" from "protobuf-net r282.zip" on Windows 7 x64.
Please provide any additional information below.
The patch attached use the trick of special casing all-in-uppercase names and
the consequence is that a package named UI will be converted to a namespace
named Ui in C#.
I don't know if it is the right choice but in the current XSLT there seem to be
no easy way to know what type an element is when the pascal case transformation
occurs.
Original issue reported on code.google.com by jroncagl...@gmail.com
on 3 Mar 2011 at 1:33
Attachments: