FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/id.c
/* Write the textual representation of *PART into P and return a pointer
 * to the first position behind that string.
 */
Write the textual representation of *PART into P and return a pointer
to the first position behind that string.
Write the textual representation of * PART into P and return a pointer to the first position behind that string .
static char *
unparse_id_part(char *p,
                const svn_fs_fs__id_part_t *part)
{
  if (SVN_IS_VALID_REVNUM(part->revision))
    {
      p += svn__ui64tobase36(p, part->number);
      if (part->revision > 0)
        {
          *(p++) = '-';
          p += svn__i64toa(p, part->revision);
        }
    }
  else
    {
      *(p++) = '_';
      p += svn__ui64tobase36(p, part->number);
    }
  *(p++) = '.';
  return p;
}
static char * unparse_id_part ( char * p , const svn_fs_fs__id_part_t * part ) { if ( SVN_IS_VALID_REVNUM ( part -> revision ) ) { p += svn__ui64tobase36 ( p , part -> number ) ; if ( part -> revision > 0 ) { * ( p ++ ) = ' ' ; p += svn__i64toa ( p , part -> revision ) ; } } else { * ( p ++ ) = ' ' ; p += svn__ui64tobase36 ( p , part -> number ) ; } * ( p ++ ) = ' ' ; return p ; }
Write the textual representation of *PART into P and return a pointer
 to the first position behind that string.
Write the textual representation of * PART into P and return a pointer to the first position behind that string .
/* ordinary old style / new style ID */ /* in txn: mark with "_" prefix */