typeinfohelper.cpp
来自「开发源代码的CPU卡的COS源程序。」· C++ 代码 · 共 31 行
CPP
31 行
#include <cppunit/Portability.h>#if CPPUNIT_USE_TYPEINFO_NAME#include <string>#include <cppunit/extensions/TypeInfoHelper.h>namespace CppUnit {std::string TypeInfoHelper::getClassName( const std::type_info &info ){ static std::string classPrefix( "class " ); std::string name( info.name() ); bool has_class_prefix = 0 ==#if CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST name.compare( classPrefix, 0, classPrefix.length() );#else name.compare( 0, classPrefix.length(), classPrefix );#endif return has_class_prefix ? name.substr( classPrefix.length() ) : name;}} // namespace CppUnit#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?