string reporting is more consistent

This commit is contained in:
Phil Nash
2011-03-25 19:39:11 +00:00
parent f5f130c070
commit 7a4b215dd3
2 changed files with 4 additions and 47 deletions

View File

@@ -104,16 +104,17 @@ inline std::string toString
const std::string& value
)
{
return value;
return "\"" + value + "\"";
}
///////////////////////////////////////////////////////////////////////////////
inline std::string toString
(
const char* const value
)
{
return value ? "'" + std::string( value ) + "'" : std::string( "{null string}" );
}
return value ? toString( std::string( value ) ) : std::string( "{null string}" );
}
///////////////////////////////////////////////////////////////////////////////
inline std::string toString