summaryrefslogtreecommitdiff
path: root/cpp/src/slice2java/Gen.h
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2001-11-09 22:54:56 +0000
committerMark Spruiell <mes@zeroc.com>2001-11-09 22:54:56 +0000
commite294fcd410492c211c6c883d9c0bb4dea383688a (patch)
tree356e40ab0207b66ede92e81aa34636c1bee0b192 /cpp/src/slice2java/Gen.h
parentbug fix (diff)
downloadice-e294fcd410492c211c6c883d9c0bb4dea383688a.tar.bz2
ice-e294fcd410492c211c6c883d9c0bb4dea383688a.tar.xz
ice-e294fcd410492c211c6c883d9c0bb4dea383688a.zip
detect and fix Java keywords
Diffstat (limited to 'cpp/src/slice2java/Gen.h')
-rw-r--r--cpp/src/slice2java/Gen.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/slice2java/Gen.h b/cpp/src/slice2java/Gen.h
index dba800d4eed..b7c92e106c9 100644
--- a/cpp/src/slice2java/Gen.h
+++ b/cpp/src/slice2java/Gen.h
@@ -38,6 +38,12 @@ protected:
Output& output() const;
//
+ // Check a symbol against any of the Java keywords. If a
+ // match is found, return the symbol with a leading underscore.
+ //
+ std::string fixKwd(const std::string&) const;
+
+ //
// Convert a scoped name into a Java class name. If an optional
// scope is provided, the scope will be removed from the result.
//