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

Method PutDelimitedString

src/tier1/utlbuffer.cpp:1343–1368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341}
1342
1343void CUtlBuffer::PutDelimitedString( CUtlCharConversion *pConv, const char *pString )
1344{
1345 if ( !IsText() || !pConv )
1346 {
1347 PutString( pString );
1348 return;
1349 }
1350
1351 if ( WasLastCharacterCR() )
1352 {
1353 PutTabs();
1354 }
1355 Put( pConv->GetDelimiter(), pConv->GetDelimiterLength() );
1356
1357 int nLen = pString ? V_strlen( pString ) : 0;
1358 for ( int i = 0; i < nLen; ++i )
1359 {
1360 PutDelimitedCharInternal( pConv, pString[i] );
1361 }
1362
1363 if ( WasLastCharacterCR() )
1364 {
1365 PutTabs();
1366 }
1367 Put( pConv->GetDelimiter(), pConv->GetDelimiterLength() );
1368}
1369
1370
1371void CUtlBuffer::VaPrintf( const char* pFmt, va_list list )

Callers

nothing calls this directly

Calls 3

V_strlenFunction · 0.85
GetDelimiterMethod · 0.80
GetDelimiterLengthMethod · 0.80

Tested by

no test coverage detected