Return the type name to show in documentation for the given C++ type.
| 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 | |
| 1601 | String Namespace::Entry::getBriefDescription( String* outRemainingDocText ) const |
no test coverage detected