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

Function qpquote

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

-------------------------------------------------------------------------*\ * Output one character in form =XX \*-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

506* Output one character in form =XX
507\*-------------------------------------------------------------------------*/
508static void qpquote(UC c, luaL_Buffer *buffer)
509{
510 luaL_addchar(buffer, '=');
511 luaL_addchar(buffer, qpbase[c >> 4]);
512 luaL_addchar(buffer, qpbase[c & 0x0F]);
513}
514
515/*-------------------------------------------------------------------------*\
516* Accumulate characters until we are sure about how to deal with them.

Callers 2

qpencodeFunction · 0.85
qppadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected