diff options
author | Mark Spruiell <mes@zeroc.com> | 2007-01-09 14:13:58 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2007-01-09 14:13:58 +0000 |
commit | 8311b4aff9d4fbf9fb370c348916d7b11487bf88 (patch) | |
tree | b40608c1e98d3312e1acd84c8d9e911f228ba48b /cpp/include/Slice/RubyUtil.h | |
parent | add missing compiler flags (pdb file was not being produced on Windows) (diff) | |
download | ice-8311b4aff9d4fbf9fb370c348916d7b11487bf88.tar.bz2 ice-8311b4aff9d4fbf9fb370c348916d7b11487bf88.tar.xz ice-8311b4aff9d4fbf9fb370c348916d7b11487bf88.zip |
bug 1652: problem with data member names beginning with upper-case letter
Diffstat (limited to 'cpp/include/Slice/RubyUtil.h')
-rw-r--r-- | cpp/include/Slice/RubyUtil.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/include/Slice/RubyUtil.h b/cpp/include/Slice/RubyUtil.h index c5123ac8d52..a668d58426a 100644 --- a/cpp/include/Slice/RubyUtil.h +++ b/cpp/include/Slice/RubyUtil.h @@ -32,13 +32,19 @@ SLICE_API bool splitString(const std::string&, std::vector<std::string>&, const // Check the given identifier against Ruby's list of reserved words. If it matches // a reserved word, then an escaped version is returned with a leading underscore. // -SLICE_API std::string fixIdent(const std::string&, bool); +enum IdentStyle +{ + IdentNormal, + IdentToUpper, // Mapped identifier must begin with an upper-case letter. + IdentToLower // Mapped identifier must begin with a lower-case letter. +}; +SLICE_API std::string fixIdent(const std::string&, IdentStyle); // // Get the fully-qualified name of the given definition. If a prefix is provided, // it is prepended to the definition's unqualified name. // -SLICE_API std::string getAbsolute(const Slice::ContainedPtr&, bool, const std::string& = std::string()); +SLICE_API std::string getAbsolute(const Slice::ContainedPtr&, IdentStyle, const std::string& = std::string()); // // Emit a comment header. |