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

Function V_URLEncode

samples/shared/strtools.cpp:395–398  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: Encodes 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

393// Dest buffer should be at least as large as source buffer to guarantee room for decode.
394//-----------------------------------------------------------------------------
395void V_URLEncode( char *pchDest, int nDestLen, const char *pchSource, int nSourceLen )
396{
397 return V_URLEncodeInternal( pchDest, nDestLen, pchSource, nSourceLen, true );
398}
399
400
401//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

V_URLEncodeInternalFunction · 0.70

Tested by

no test coverage detected