Scorum
operation_util_impl.cpp
Go to the documentation of this file.
1 #include <string>
2 
3 namespace fc {
4 
5 std::string name_from_type(const std::string& type_name)
6 {
7  auto start = type_name.find_last_of(':') + 1;
8  auto end = type_name.find_last_of('_');
9  return type_name.substr(start, end - start);
10 }
11 
12 } // fc
Definition: game.cpp:4
std::string name_from_type(const std::string &type_name)