26 namespace graphene {
namespace wallet {
namespace impl {
30 const static std::string prefix =
"graphene::protocol::";
31 const static std::string suffix =
"_operation";
33 if( (name.size() >= prefix.size() + suffix.size())
34 && (name.substr( 0, prefix.size() ) == prefix)
35 && (name.substr( name.size()-suffix.size(), suffix.size() ) == suffix )
37 return name.substr( prefix.size(), name.size() - prefix.size() - suffix.size() );
39 wlog(
"don't know how to clean name: ${name}", (
"name", name) );