MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / formatForbiddenChar

Function formatForbiddenChar

src/xml_parsing.cpp:102–109  ·  view source on GitHub ↗

Helper to format forbidden character for error messages

Source from the content-addressed store, hash-verified

100
101// Helper to format forbidden character for error messages
102std::string formatForbiddenChar(char c)
103{
104 if(c < 32 || c == 127)
105 {
106 return "control character (ASCII " + std::to_string(static_cast<int>(c)) + ")";
107 }
108 return std::string("'") + c + "'";
109}
110
111void validateModelName(const std::string& name, int line_number)
112{

Callers 2

validateModelNameFunction · 0.85
validatePortNameFunction · 0.85

Calls 2

stringFunction · 0.85
to_stringFunction · 0.50

Tested by

no test coverage detected