29 pos2 = thing.find(
"AmpGen::" );
30 if ( pos2 != std::string::npos ) thing = thing.replace( pos2, 8,
"" );
31 }
while( pos2 != std::string::npos );
33 pos2 = thing.find(
"std::" );
34 if ( pos2 != std::string::npos ) thing.replace( pos2, 5,
"" );
36 pos2 = thing.find(
"virtual " );
37 if ( pos2 != std::string::npos ) thing = thing.replace( pos2, 8,
"" );
39 size_t pos = thing.find(
"(" );
41 if ( pos != std::string::npos ) {
42 return pos < length ? thing.substr( 0, pos ) : thing.substr( 0, length );
44 return thing.size() < length ? thing : thing.substr( 0, length ) +
"...";