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

Method Encode

UrlString.cpp:51–63  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

49
50/*****************************************************************************/
51CString CUrlString::Encode(CString csDecoded)
52{
53 CString csCharEncoded, csCharDecoded;
54 CString csEncoded = csDecoded;
55
56 for(int iPos = 0; iPos < m_csUnsafe.GetLength(); iPos++)
57 {
58 csCharEncoded.Format(_T("%%%02X"), m_csUnsafe[iPos]);
59 csCharDecoded = m_csUnsafe[iPos];
60 csEncoded.Replace(csCharDecoded, csCharEncoded);
61 }
62 return csEncoded;
63}
64
65/*****************************************************************************/
66CString CUrlString::Decode(CString csEncoded)

Callers 1

SendSubmitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected