MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / PercentEncode_Add

Function PercentEncode_Add

Source/MediaInfo/Reader/Reader_libcurl.cpp:213–221  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

211
212//---------------------------------------------------------------------------
213inline void PercentEncode_Add(string& In, char Char)
214{
215 unsigned char v=(unsigned char)Char;
216 unsigned char h=v>>4;
217 unsigned char l=v&0xF;
218 In+='%';
219 In+=(char)((h>=10?'A'-10:'0')+h);
220 In+=(char)((l>=10?'A'-10:'0')+l);
221}
222string PercentEncode(const string& In)
223{
224 string Result;

Callers 2

PercentEncodeFunction · 0.85
Amazon_AWS_SignFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected