| 486 | |
| 487 | |
| 488 | std::string Helper::padInteger(int num, int length) { |
| 489 | char buf[101]; |
| 490 | std::string formatString = "%0"+std::to_string(length)+"d"; |
| 491 | std::snprintf(buf,100,formatString.c_str(),num); |
| 492 | std::string ret = buf; |
| 493 | return(ret); |
| 494 | } |
| 495 | |
| 496 | // https://stackoverflow.com/questions/5840148/how-can-i-get-a-files-size-in-c |
| 497 | long Helper::getFileSize(std::string filename) { |
nothing calls this directly
no test coverage detected