diff options
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. |