MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / ConvertToString

Method ConvertToString

src/GCodes/GCodeBuffer/ExpressionParser.cpp:1253–1269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1251}
1252
1253void ExpressionParser::ConvertToString(ExpressionValue& val, bool evaluate) const noexcept
1254{
1255 if (!val.IsStringType())
1256 {
1257 if (evaluate)
1258 {
1259 String<MaxStringExpressionLength> str;
1260 val.AppendAsString(str.GetRef());
1261 StringHandle sh(str.c_str());
1262 val.SetStringHandle(sh);
1263 }
1264 else
1265 {
1266 val.SetCString("");
1267 }
1268 }
1269}
1270
1271void ExpressionParser::ConvertToDriverId(ExpressionValue& val, bool evaluate) const THROWS(GCodeException)
1272{

Callers

nothing calls this directly

Calls 4

IsStringTypeMethod · 0.80
AppendAsStringMethod · 0.80
SetStringHandleMethod · 0.80
SetCStringMethod · 0.80

Tested by

no test coverage detected