8 #ifndef MLPACK_BINDINGS_JULIA_STRIP_TYPE_HPP 9 #define MLPACK_BINDINGS_JULIA_STRIP_TYPE_HPP 27 const size_t loc = cppType.find(
"<>");
28 if (loc != std::string::npos)
29 cppType.replace(loc, 2,
"");
32 std::replace(cppType.begin(), cppType.end(),
'<',
'_');
33 std::replace(cppType.begin(), cppType.end(),
'>',
'_');
34 std::replace(cppType.begin(), cppType.end(),
' ',
'_');
35 std::replace(cppType.begin(), cppType.end(),
',',
'_');
std::string StripType(std::string cppType)
Given a C++ type name, turn it into something that has no special characters that can simply be print...