Unit 'icon' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

BumpRevision

Reformat a name for a second copy.

Declaration

Source position: icon.pas line 352

function BumpRevision(

  newname: pCHAR;

  const oldname: pCHAR

):pCHAR;

function BumpRevision(

  newname: pCHar;

  const oldname: RawByteString

):pCHAR;

Arguments

newname

  

The new buffer that will receive the name (it must be at least 31 characters long).

oldname

  

The original name

Function result

Pointer to NewName

Arguments

newname

  

The new buffer that will receive the name (it must be at least 31 characters long).

oldname

  

The original name

Description

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'

Documentation generated on: 2021-07-30