summaryrefslogtreecommitdiff
path: root/cpp/include/Slice/PythonUtil.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Slice/PythonUtil.h')
-rw-r--r--cpp/include/Slice/PythonUtil.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/cpp/include/Slice/PythonUtil.h b/cpp/include/Slice/PythonUtil.h
index 4badd90d4fc..b8845fce10e 100644
--- a/cpp/include/Slice/PythonUtil.h
+++ b/cpp/include/Slice/PythonUtil.h
@@ -26,7 +26,7 @@ SLICE_API void generate(const Slice::UnitPtr&, bool, bool, const std::vector<std
//
// Split up a string using whitespace delimiters.
//
-SLICE_API bool splitString(const std::string&, std::vector<std::string>&);
+SLICE_API bool splitString(const std::string&, std::vector<std::string>&, const std::string& = " \t\n\r");
//
// Convert a scoped name into a Python name.
@@ -40,6 +40,19 @@ SLICE_API std::string scopedToName(const std::string&);
SLICE_API std::string fixIdent(const std::string&);
//
+// Return the package specified in the global metadata for the given definition,
+// or an empty string if no metadata was found.
+//
+SLICE_API std::string getPackageMetadata(const Slice::ContainedPtr&);
+
+//
+// Get the fully-qualified name of the given definition, including any package
+// defined via metadata. If a suffix is provided, it is prepended to the
+// definition's unqualified name.
+//
+SLICE_API std::string getAbsolute(const Slice::ContainedPtr&, const std::string& = std::string());
+
+//
// Emit a comment header.
//
SLICE_API void printHeader(IceUtil::Output&);