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

Method rfc2047_encode

lib_acl_cpp/src/smtp/mail_attach.cpp:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32mail_attach::~mail_attach() {}
33
34bool mail_attach::rfc2047_encode(const char* name, const char* charset, string& out) {
35 if (charset == NULL || *charset == 0) {
36 return false;
37 }
38
39 // �ļ�����Ҫ���� rfc2047 ����
40 if (!rfc2047::encode(name, (int) strlen(name), &out, charset, 'B', false)) {
41 out = name;
42 return false;
43 }
44
45 return true;
46}
47
48mail_attach& mail_attach::set_filename(const char* name,
49 const char* charset /* = NULL */) {

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.85

Tested by

no test coverage detected