diff options
author | Michi Henning <michi@zeroc.com> | 2002-07-10 03:37:13 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2002-07-10 03:37:13 +0000 |
commit | e8449d8c552c6f41055f5851e418ddb8dc22a396 (patch) | |
tree | 74c17b7941caaad9bf9cc4f43f2c927359983f6f /cpp/include/Slice/CPlusPlusUtil.h | |
parent | added space (diff) | |
download | ice-e8449d8c552c6f41055f5851e418ddb8dc22a396.tar.bz2 ice-e8449d8c552c6f41055f5851e418ddb8dc22a396.tar.xz ice-e8449d8c552c6f41055f5851e418ddb8dc22a396.zip |
Changed C++ code generator to escape Slice identifiers that are C++
keywords with a "_cpp_" prefix.
Changed Java code generator to use binary_search() instead of the
hand-coded binary search.
Diffstat (limited to 'cpp/include/Slice/CPlusPlusUtil.h')
-rw-r--r-- | cpp/include/Slice/CPlusPlusUtil.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/include/Slice/CPlusPlusUtil.h b/cpp/include/Slice/CPlusPlusUtil.h index 980b045c350..9188536bd6e 100644 --- a/cpp/include/Slice/CPlusPlusUtil.h +++ b/cpp/include/Slice/CPlusPlusUtil.h @@ -32,6 +32,8 @@ SLICE_API std::string returnTypeToString(const TypePtr&); SLICE_API std::string inputTypeToString(const TypePtr&); SLICE_API std::string outputTypeToString(const TypePtr&); +SLICE_API std::string fixKwd(const std::string&); + SLICE_API void writeMarshalUnmarshalCode(::IceUtil::Output&, const TypePtr&, const std::string&, bool, const std::string& = "", bool = true); SLICE_API void writeMarshalCode(::IceUtil::Output&, const std::list<std::pair<TypePtr, std::string> >&, |