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

Method StringConcat

src/GCodes/GCodeBuffer/ExpressionParser.cpp:665–672  ·  view source on GitHub ↗

Concatenate val1 and val2 and assign the result to val1 This is written as a separate function because it needs a temporary string buffer, and its caller is recursive. Its declaration must be declared 'noinline'. static*/

Source from the content-addressed store, hash-verified

663// Concatenate val1 and val2 and assign the result to val1
664// This is written as a separate function because it needs a temporary string buffer, and its caller is recursive. Its declaration must be declared 'noinline'.
665/*static*/ void ExpressionParser::StringConcat(ExpressionValue &val, ExpressionValue &val2) noexcept
666{
667 String<MaxStringExpressionLength> str;
668 val.AppendAsString(str.GetRef());
669 val2.AppendAsString(str.GetRef());
670 StringHandle sh(str.c_str());
671 val.SetStringHandle(sh);
672}
673
674bool ExpressionParser::ParseBoolean() THROWS(GCodeException)
675{

Callers

nothing calls this directly

Calls 2

AppendAsStringMethod · 0.80
SetStringHandleMethod · 0.80

Tested by

no test coverage detected