MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / ToUft8Header

Function ToUft8Header

sourcecommon/sendmail.cpp:55–67  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

53}
54//---------------------------------------------------------------------------
55static AnsiString ToUft8Header(AnsiString s)
56{
57 // do not encode empty string
58 if( s.Length() == 0 )
59 return s;
60 s = UTF8Encode(s);
61 char * p = base64_encode(s.c_str(), s.Length());
62 AnsiString rv("=?utf-8?B?");
63 rv += p;
64 rv += "?=";
65 delete [] p;
66 return rv;
67}
68//---------------------------------------------------------------------------
69__fastcall TSendmailThread::TSendmailThread()
70 : TThread(true)

Callers 1

SendInternalMethod · 0.85

Calls 1

base64_encodeFunction · 0.85

Tested by

no test coverage detected