Reformat a name for a second copy.
Source position: icon.pas line 352
function BumpRevision( |
newname: pCHAR; |
const oldname: pCHAR |
):pCHAR; |
newname: pCHar; |
const oldname: RawByteString |
):pCHAR; |
newname |
|
The new buffer that will receive the name (it must be at least 31 characters long). |
oldname |
|
The original name |
Pointer to NewName
newname |
|
The new buffer that will receive the name (it must be at least 31 characters long). |
oldname |
|
The original name |
BumpRevision takes a name and turns it into a "copy_of_name". It knows how to deal with copies of copies. The routine will truncate the new name to the maximum dos name size (currently 30 characters).
Examples:
OldName | NewName |
---|---|
'foo' | 'copy_of_foo' |
'copy_of_foo' | 'copy_2_of_foo' |
'copy foo' | 'copy_1_of_foo' |
'012345678901234567890123456789' | 'copy_of_0123456789012345678901' |