| 1982 | |
| 1983 | |
| 1984 | static 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 | |
| 2003 | static std::string CheckForLiteralString(uint64_t address) |
no test coverage detected