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

Function SetStrStrResult

src/GCodes/GCodeBuffer/ExpressionParser.cpp:1388–1392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1386}
1387
1388static void SetStrStrResult(ExpressionValue& e, const char *_ecv_array s1, const char *_ecv_array s2) noexcept
1389{
1390 const char *_ecv_array _ecv_null q = strstr(s1, s2);
1391 e.SetInt((q == nullptr) ? -1 : q - s1);
1392}
1393
1394void ExpressionParser::SetFindResult(ExpressionValue& e1, const char *_ecv_array s, const ExpressionValue& e2) THROWS(GCodeException)
1395{

Callers 1

THROWSFunction · 0.85

Calls 1

SetIntMethod · 0.80

Tested by

no test coverage detected