15 #include "boost/static_assert.hpp"
56 std::string returnValue;
57 returnValue.append(static_cast<std::string::size_type>(iType.size()*2),
' ');
61 for(;fromIndex<iType.size();++fromIndex) {
62 bool foundMatch =
false;
65 if(iType.substr(fromIndex,symbol.size())==symbol) {
72 returnValue[toIndex]=iType[fromIndex];
76 returnValue.replace(toIndex,mangled.size(),mangled);
77 toIndex += mangled.size();
81 returnValue.resize(toIndex);
87 std::string returnValue;
88 returnValue.append(static_cast<std::string::size_type>(iMangled.size()*2),
' ');
92 for(;fromIndex<iMangled.size();++fromIndex) {
93 bool foundMatch =
false;
96 if(iMangled.substr(fromIndex,mangled.size())==mangled) {
103 returnValue[toIndex]=iMangled[fromIndex];
107 returnValue.replace(toIndex,symbol.size(),symbol);
108 toIndex += symbol.size();
112 returnValue.resize(toIndex);
std::string unformat_mangled_to_type(const std::string &)
given a mangled name return the C++ class name
std::string format_type_to_mangled(const std::string &)
given a C++ class name returned a mangled name