MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / V_URLDecode

Function V_URLDecode

samples/shared/strtools.cpp:409–412  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: Decodes a string (or binary data) from URL encoding format, see rfc1738 section 2.2. This version of the call isn't a strict RFC implementation, but uses + for space as is the standard in HTML form encoding, despite it not being part of the RFC. Dest buffer should be at least as large as source buffer to guaran

Source from the content-addressed store, hash-verified

407// Dest buffer being the same as the source buffer (decode in-place) is explicitly allowed.
408//-----------------------------------------------------------------------------
409size_t V_URLDecode( char *pchDecodeDest, int nDecodeDestLen, const char *pchEncodedSource, int nEncodedSourceLen )
410{
411 return V_URLDecodeInternal( pchDecodeDest, nDecodeDestLen, pchEncodedSource, nEncodedSourceLen, true );
412}
413
414//-----------------------------------------------------------------------------
415void V_StripExtension( std::string &in )

Callers

nothing calls this directly

Calls 1

V_URLDecodeInternalFunction · 0.70

Tested by

no test coverage detected