/
| 64 | |
| 65 | /*****************************************************************************/ |
| 66 | CString 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected