MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / GetDelimitedCharInternal

Method GetDelimitedCharInternal

src/tier1/utlbuffer.cpp:719–733  ·  view source on GitHub ↗

----------------------------------------------------------------------------- This version of GetString converts \ to \\ and " to \", etc. It also places " at the beginning and end of the string -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

717// It also places " at the beginning and end of the string
718//-----------------------------------------------------------------------------
719char CUtlBuffer::GetDelimitedCharInternal( CUtlCharConversion *pConv )
720{
721 char c = GetChar();
722 if ( c == pConv->GetEscapeChar() )
723 {
724 int nLength = pConv->MaxConversionLength();
725 if ( !CheckArbitraryPeekGet( 0, nLength ) )
726 return '\0';
727
728 c = pConv->FindConversion( (const char *)PeekGet(), &nLength );
729 SeekGet( SEEK_CURRENT, nLength );
730 }
731
732 return c;
733}
734
735char CUtlBuffer::GetDelimitedChar( CUtlCharConversion *pConv )
736{

Callers

nothing calls this directly

Calls 3

GetEscapeCharMethod · 0.80
MaxConversionLengthMethod · 0.80
FindConversionMethod · 0.45

Tested by

no test coverage detected