| 344 | } |
| 345 | |
| 346 | std::string getFileTitle(const char* file) { |
| 347 | std::string f = convertPathToDelims(file); |
| 348 | std::string temp = f; |
| 349 | |
| 350 | const char* p = strrchr(f.c_str(), _DirDelim); |
| 351 | if (p) |
| 352 | // it's ok to go one past, cus even if it's the end, that's the |
| 353 | // NUL char so we can set it to NUL again with out worry |
| 354 | { |
| 355 | temp = p + 1; |
| 356 | } |
| 357 | |
| 358 | char* p2 = (char*)strrchr(temp.c_str(), '.'); |
| 359 | if (p2) { |
| 360 | *(p2) = 0; // kill the . too |
| 361 | } |
| 362 | |
| 363 | return std::string(temp.c_str()); |
| 364 | } |
| 365 | |
| 366 | std::string getFileText(const char* file) { |
| 367 | std::string text; |
nothing calls this directly
no test coverage detected