MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / composeKey

Function composeKey

source/MRMesh/MRObject.cpp:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19const std::filesystem::path cSharedFolder = "SharedModels";
20
21std::string composeKey( const std::string& objectName, const int prefix )
22{
23 constexpr int maxFileNameLen = 12; // keep file names not too long to avoid hitting limit in some OSes
24 return std::to_string( prefix ) + "_" + utf8substr( replaceProhibitedChars( objectName ).c_str(), 0, maxFileNameLen );
25}
26
27struct KeyObjectModel
28{

Callers 1

serializeRecursive_Method · 0.85

Calls 2

utf8substrFunction · 0.85
replaceProhibitedCharsFunction · 0.85

Tested by

no test coverage detected