MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / TestStringEncoder

Function TestStringEncoder

src/twtest/stringencoder_t.cpp:66–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64//=========================================================================
65
66void TestStringEncoder()
67{
68 TSTRING str = _T("this is a non-quoted string");
69 TSTRING strQ = _T("here's a quote:\"and a slash:\\ ");
70 TSTRING strJQ = _T("\"");
71 TSTRING strJS = _T("\\");
72 TSTRING strWeird = _T("\\\"\"\\\"\\\\\"\"\"\"");
73
74 OutputString(str);
75 OutputString(strQ);
76 OutputString(strJQ);
77 OutputString(strJS);
78 OutputString(strWeird);
79}
80
81//=========================================================================
82// UTIL FUNCTION CODE

Callers

nothing calls this directly

Calls 1

OutputStringFunction · 0.85

Tested by

no test coverage detected