Added a wrapString(const char*) which automatically handles null strings.

This commit is contained in:
Robert Osfield
2008-06-18 16:45:21 +00:00
parent 959c01557c
commit 1e5783ece7
2 changed files with 9 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ class OSGDB_EXPORT Output : public std::ofstream
Output& indent();
/** wrap a string with "" quotes and use \" for any internal quotes.*/
std::string wrapString(const char* str);
/** wrap a string with "" quotes and use \" for any internal quotes.*/
std::string wrapString(const std::string& str);