FreeBSD/contrib/subversion/subversion/libsvn_subr/skel.c
/* Return non-zero iff we should use the implicit-length form for SKEL.
   Assume that SKEL is an atom.  */
Return non-zero iff we should use the implicit-length form for SKEL.
Assume that SKEL is an atom.
Return non - zero iff we should use the implicit - length form for SKEL . Assume that SKEL is an atom .
static svn_boolean_t
use_implicit(const svn_skel_t *skel)
{
  if (skel->len == 0
      || skel->len >= 100)
    return FALSE;
  if (skel_char_type[(unsigned char) skel->data[0]] != type_name)
    return FALSE;
  {
    apr_size_t i;
    for (i = 1; i < skel->len; i++)
      if (skel_char_type[(unsigned char) skel->data[i]] == type_space
          || skel_char_type[(unsigned char) skel->data[i]] == type_paren)
        return FALSE;
  }
  return TRUE;
}
static svn_boolean_t use_implicit ( const svn_skel_t * skel ) { if ( skel -> len == 0 || skel -> len >= 100 ) return FALSE ; if ( skel_char_type [ ( unsigned char ) skel -> data [ 0 ] ] != type_name ) return FALSE ; { apr_size_t i ; for ( i = 1 ; i < skel -> len ; i ++ ) if ( skel_char_type [ ( unsigned char ) skel -> data [ i ] ] == type_space || skel_char_type [ ( unsigned char ) skel -> data [ i ] ] == type_paren ) return FALSE ; } return TRUE ; }
Return non-zero iff we should use the implicit-length form for SKEL.
Return non - zero iff we should use the implicit - length form for SKEL .
/* If it's null, or long, we should use explicit-length form.  */ /* If it doesn't start with a name character, we must use
     explicit-length form.  */ /* If it contains any whitespace or parens, then we must use
     explicit-length form.  */ /* If we can't reject it for any of the above reasons, then we can
     use implicit-length form.  */