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

Function V_URLDecode

src/vrcore/strtools_public.cpp:521–524  ·  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

519// Dest buffer being the same as the source buffer (decode in-place) is explicitly allowed.
520//-----------------------------------------------------------------------------
521size_t V_URLDecode( char *pchDecodeDest, int nDecodeDestLen, const char *pchEncodedSource, int nEncodedSourceLen )
522{
523 return V_URLDecodeInternal( pchDecodeDest, nDecodeDestLen, pchEncodedSource, nEncodedSourceLen, true );
524}
525
526size_t V_URLDecodeNoPlusForSpace( char *pchDecodeDest, int nDecodeDestLen, const char *pchEncodedSource, int nEncodedSourceLen )
527{

Callers

nothing calls this directly

Calls 1

V_URLDecodeInternalFunction · 0.70

Tested by

no test coverage detected