MCPcopy Create free account
hub / github.com/Tencent/UnLua / qppad

Function qppad

Plugins/UnLuaExtensions/LuaSocket/Source/src/mime.cpp:562–571  ·  view source on GitHub ↗

-------------------------------------------------------------------------*\ * Deal with the final characters \*-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

560* Deal with the final characters
561\*-------------------------------------------------------------------------*/
562static size_t qppad(UC *input, size_t size, luaL_Buffer *buffer)
563{
564 size_t i;
565 for (i = 0; i < size; i++) {
566 if (qpclass[input[i]] == QP_PLAIN) luaL_addchar(buffer, input[i]);
567 else qpquote(input[i], buffer);
568 }
569 if (size > 0) luaL_addstring(buffer, EQCRLF);
570 return 0;
571}
572
573/*-------------------------------------------------------------------------*\
574* Incrementally converts a string to quoted-printable

Callers 1

mime_global_qpFunction · 0.85

Calls 2

qpquoteFunction · 0.85
luaL_addstringFunction · 0.85

Tested by

no test coverage detected