MCPcopy Create free account
hub / github.com/acl-dev/acl / rfc2047_test_encode

Function rfc2047_test_encode

lib_acl_cpp/samples/rfc2047/main.cpp:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133static void rfc2047_test_encode(const char* s)
134{
135 acl::string out;
136 acl::rfc2047 rfc2047(false, false);
137
138 rfc2047.encode_update(s, (int) strlen(s), &out);
139 rfc2047.encode_update(s, (int) strlen(s), &out, "gb2312", 'Q');
140 rfc2047.encode_finish(&out);
141 printf("rfc2047 encoding result: %s\n", out.c_str());
142}
143
144static void rfc2047_test_file(acl::rfc2047& rfc2047, const char* filepath)
145{

Callers 1

mainFunction · 0.85

Calls 3

encode_updateMethod · 0.45
encode_finishMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…