MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / ShouldDisplayLineExecutionPre

Method ShouldDisplayLineExecutionPre

Source/ScriptModule.cpp:1315–1337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1313}
1314
1315bool ScriptModule::ShouldDisplayLineExecutionPre(std::string priorLine, std::string line)
1316{
1317 if (!IsNonWhitespace(line))
1318 return false;
1319
1320 char firstCharacter;
1321 char lastCharacter;
1322
1323 GetFirstAndLastCharacter(priorLine, firstCharacter, lastCharacter);
1324 if (firstCharacter == '@')
1325 return false;
1326 if (lastCharacter == ',')
1327 return false;
1328
1329 GetFirstAndLastCharacter(line, firstCharacter, lastCharacter);
1330 if (firstCharacter == '@')
1331 return false;
1332 if (firstCharacter == '#')
1333 return false;
1334 if (lastCharacter == ':' && (ofIsStringInString(line, "else") || ofIsStringInString(line, "elif") || ofIsStringInString(line, "except")))
1335 return false;
1336 return true;
1337}
1338
1339std::string ScriptModule::GetIndentation(std::string line)
1340{

Callers

nothing calls this directly

Calls 1

ofIsStringInStringFunction · 0.85

Tested by

no test coverage detected