Debugger[new CDB]: Add support for more core types.

Structures with accessible members.
This commit is contained in:
Friedemann Kleint
2010-11-29 12:35:19 +01:00
parent 847e5dfb61
commit f3f95c693a
3 changed files with 239 additions and 8 deletions

View File

@@ -63,6 +63,15 @@ std::string toString(const Streamable s)
return str.str();
}
// Format numbers, etc, as a wstring.
template <class Streamable>
std::wstring toWString(const Streamable s)
{
std::wostringstream str;
str << s;
return str.str();
}
bool endsWith(const std::string &haystack, const char *needle);
// Read an integer from a string as '10' or '0xA'