MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / sGetDocTypeString

Function sGetDocTypeString

Engine/source/console/consoleInternal.cpp:1581–1598  ·  view source on GitHub ↗

Return the type name to show in documentation for the given C++ type.

Source from the content-addressed store, hash-verified

1579
1580 /// Return the type name to show in documentation for the given C++ type.
1581 const char* sGetDocTypeString( const char* nativeType )
1582 {
1583 if( dStrncmp( nativeType, "const ", 6 ) == 0 )
1584 nativeType += 6;
1585
1586 if( dStrcmp( nativeType, "char*" ) == 0 || dStrcmp( nativeType, "char *" ) == 0 )
1587 return "string";
1588 else if( dStrcmp( nativeType, "S32" ) == 0 || dStrcmp( nativeType, "U32" ) == 0 )
1589 return "int";
1590 else if( dStrcmp( nativeType, "F32" ) == 0 )
1591 return "float";
1592
1593 const U32 length = dStrlen( nativeType );
1594 if( nativeType[ length - 1 ] == '&' || nativeType[ length - 1 ] == '*' )
1595 return StringTable->insertn( nativeType, length - 1 );
1596
1597 return nativeType;
1598 }
1599}
1600
1601String Namespace::Entry::getBriefDescription( String* outRemainingDocText ) const

Callers 2

getArgumentsStringMethod · 0.85
getPrototypeStringMethod · 0.85

Calls 4

dStrncmpFunction · 0.85
insertnMethod · 0.80
dStrcmpFunction · 0.50
dStrlenFunction · 0.50

Tested by

no test coverage detected