MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / SanitizeFileName

Function SanitizeFileName

src/luxrays/utils/ocl.cpp:243–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241//------------------------------------------------------------------------------
242
243static string SanitizeFileName(const string &name) {
244 string sanitizedName(name.size(), '_');
245
246 for (u_int i = 0; i < sanitizedName.size(); ++i) {
247 if ((name[i] >= 'A' && name[i] <= 'Z') || (name[i] >= 'a' && name[i] <= 'z') ||
248 (name[i] >= '0' && name[i] <= '9'))
249 sanitizedName[i] = name[i];
250 }
251
252 return sanitizedName;
253}
254
255boost::filesystem::path oclKernelPersistentCache::GetCacheDir(const string &applicationName) const {
256#if defined(__linux__)

Callers 2

GetCacheDirMethod · 0.85
CompileMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected