MCPcopy Create free account
hub / github.com/Vector35/debugger / CheckForPrintableString

Function CheckForPrintableString

core/debuggercontroller.cpp:1984–2000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1982
1983
1984static std::string CheckForPrintableString(const DataBuffer& memory)
1985{
1986 std::string result;
1987 result = CheckForASCIIString(memory);
1988 if (!result.empty())
1989 return fmt::format("\"{}\"", BinaryNinja::EscapeString(result));
1990
1991 result = CheckForUTF16String(memory);
1992 if (!result.empty())
1993 return fmt::format("L\"{}\"", BinaryNinja::EscapeString(result));;
1994
1995 result = CheckForUTF32String(memory);
1996 if (!result.empty())
1997 return fmt::format("L\"{}\"", BinaryNinja::EscapeString(result));;
1998
1999 return "";
2000}
2001
2002
2003static std::string CheckForLiteralString(uint64_t address)

Callers 1

GetAddressInformationMethod · 0.85

Calls 3

CheckForASCIIStringFunction · 0.85
CheckForUTF16StringFunction · 0.85
CheckForUTF32StringFunction · 0.85

Tested by

no test coverage detected