MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getDocsLink

Function getDocsLink

Engine/source/console/consoleFunctions.cpp:2884–2894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2882}
2883
2884const char* getDocsLink(const char* filename, U32 lineNumber)
2885{
2886 Vector<String> fileStringSplit;
2887 String(filename).split("source", fileStringSplit);
2888 String fileString = fileStringSplit.last();
2889 String fileLineString = fileString + String("#L") + String::ToString(lineNumber-2);
2890 String baseUrL = String(Con::getVariable("Pref::DocURL","https://github.com/TorqueGameEngines/Torque3D/blob/development/Engine/source"));
2891 String URL = String("<a:") + baseUrL + fileLineString + String(">docs</a>");
2892
2893 return (new String(URL))->c_str();
2894}
2895
2896bool getDocsURL(void* obj, const char* array, const char* data)
2897{

Callers

nothing calls this directly

Calls 5

getVariableFunction · 0.85
splitMethod · 0.80
StringClass · 0.70
lastMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected