Go to the documentation of this file.
5 #include <SimoxUtility/algorithm/string.h>
7 #include <RobotAPI/libraries/armem/aron/MemoryID.aron.generated.h>
11 armarx::armem::arondto::MemoryID::ToAronType()->getFullName();
17 remove_wrap(
const std::string&
string,
const std::string& prefix,
const std::string& suffix)
21 return string.substr(prefix.size(),
string.size() - prefix.size() - suffix.size());
39 std::string
n = typeName;
40 n = s::replace_all(
n,
"armarx::aron::type::",
"");
41 n = s::replace_all(
n,
"armarx::aron::data::",
"");
45 n = remove_wrap(
n,
"Object<",
">");
46 const std::string del =
"::";
47 size_t find =
n.rfind(del);
52 ss <<
n.substr(
find) <<
" (" <<
n.substr(0,
find - del.size()) <<
")";
60 std::string container =
n.substr(0,
n.find(
"<"));
61 std::string
subtype = remove_wrap(
n, (container +
"<"),
">");
63 n =
n.substr(0,
n.find(
"<") + 1) +
subtype +
">";
std::string sanitizeTypeName(const std::string &typeName)
constexpr enum_subtype subtype(std::true_type) noexcept
constexpr auto n() noexcept
bool starts_with(const std::string &haystack, const std::string &needle)
bool contains(const MemoryID &general, const MemoryID &specific)
Indicates whether general is "less specific" than, or equal to, specific, i.e.
const std::string rawMemoryIDTypeName
constexpr std::size_t find(string_view str, char_type c) noexcept
bool ends_with(const std::string &haystack, const std::string &needle)
const std::string sanitizedMemoryIDTypeName
double s(double t, double s0, double v0, double a0, double j)