?? typeinfohelper.cpp
字號:
#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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -