mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Fixed type name extraction involving template classes
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@595 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
f33f31fb29
commit
7e7d6fc5fe
1 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,7 @@
|
||||||
#include <boost/test/utils/basic_cstring/io.hpp>
|
#include <boost/test/utils/basic_cstring/io.hpp>
|
||||||
#include <boost/algorithm/string/replace.hpp>
|
#include <boost/algorithm/string/replace.hpp>
|
||||||
#include <boost/algorithm/string/erase.hpp>
|
#include <boost/algorithm/string/erase.hpp>
|
||||||
|
#include <boost/algorithm/string/trim.hpp>
|
||||||
#include <boost/detail/sp_typeinfo.hpp>
|
#include <boost/detail/sp_typeinfo.hpp>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
@ -79,6 +80,7 @@ namespace detail
|
||||||
}
|
}
|
||||||
std::string clean( std::string name ) const
|
std::string clean( std::string name ) const
|
||||||
{
|
{
|
||||||
|
boost::algorithm::trim( name );
|
||||||
boost::algorithm::erase_all( name, "class " );
|
boost::algorithm::erase_all( name, "class " );
|
||||||
boost::algorithm::erase_all( name, "struct " );
|
boost::algorithm::erase_all( name, "struct " );
|
||||||
boost::algorithm::erase_all( name, "__ptr64" );
|
boost::algorithm::erase_all( name, "__ptr64" );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue