increment a filename in a lexicographical ordering
| 47 | |
| 48 | // increment a filename in a lexicographical ordering |
| 49 | bool increment(ACE_TString& logical) |
| 50 | { |
| 51 | for (size_t i = logical.length() - 1; i >= 1; --i) { |
| 52 | //we could use the entire range of 255 values but we'll keep |
| 53 | //these names to 7-bit ASCII |
| 54 | if (logical[i] < 0x7F) { |
| 55 | ++logical[i]; |
| 56 | return true; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | return false; |
| 61 | } |
| 62 | |
| 63 | // support long paths (> 260 chars in absolute path) on Win32 |
| 64 | /* Windows Mobile / Windows CE (WinCE) porting notes: |
no test coverage detected