MCPcopy Create free account
hub / github.com/ImpulseAdventure/JPEGsnoop / Decode

Method Decode

UrlString.cpp:66–79  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

64
65/*****************************************************************************/
66CString CUrlString::Decode(CString csEncoded)
67{
68 CString csUnsafeEncoded = Encode(m_csUnsafe);
69 CString csDecoded = csEncoded;
70 CString csCharEncoded, csCharDecoded;
71
72 for(int iPos = 0; iPos < csUnsafeEncoded.GetLength(); iPos += 3)
73 {
74 csCharEncoded = csUnsafeEncoded.Mid(iPos, 3);
75 csCharDecoded = (TCHAR)_tcstol(csUnsafeEncoded.Mid(iPos + 1, 2), NULL, 16);
76 csDecoded.Replace(csCharEncoded, csCharDecoded);
77 }
78 return csDecoded;
79}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected