13 #ifndef MLPACK_BINDINGS_JULIA_STRIP_TYPE_HPP
14 #define MLPACK_BINDINGS_JULIA_STRIP_TYPE_HPP
32 const size_t loc = cppType.find(
"<>");
33 if (loc != std::string::npos)
34 cppType.replace(loc, 2,
"");
37 std::replace(cppType.begin(), cppType.end(),
'<',
'_');
38 std::replace(cppType.begin(), cppType.end(),
'>',
'_');
39 std::replace(cppType.begin(), cppType.end(),
' ',
'_');
40 std::replace(cppType.begin(), cppType.end(),
',',
'_');
string(REGEX REPLACE".*#define MLPACK_VERSION_MINOR ([0-9]+).*""\\1"MLPACK_VERSION_MINOR"${VERSION_HPP_CONTENTS}") string(REGEX REPLACE".* "\\1" MLPACK_VERSION_PATCH "$
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...