---------------------------------------------------------------------------
| 91 | } |
| 92 | //--------------------------------------------------------------------------- |
| 93 | String TStorageFile::GetFileNameToRotate(int num) |
| 94 | { |
| 95 | String f = GetFileName(); |
| 96 | if( num == 0 ) |
| 97 | { |
| 98 | return f; |
| 99 | } |
| 100 | else if( num > 0 && num <= rotation_count ) |
| 101 | { |
| 102 | // file f have an extension ? |
| 103 | String e = ExtractFileExt(f); |
| 104 | if( e.Length() > 0 ) |
| 105 | f = ChangeFileExt(f, IntToStr(num) + e); |
| 106 | else |
| 107 | f = f + IntToStr(num); |
| 108 | return f; |
| 109 | } |
| 110 | return String(); |
| 111 | } |
| 112 | //--------------------------------------------------------------------------- |
| 113 | String TStorageFile::GetNewRotationName(void) |
| 114 | { |
nothing calls this directly
no outgoing calls
no test coverage detected