| 241 | //------------------------------------------------------------------------------ |
| 242 | |
| 243 | static 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 | |
| 255 | boost::filesystem::path oclKernelPersistentCache::GetCacheDir(const string &applicationName) const { |
| 256 | #if defined(__linux__) |
no test coverage detected