func: unsigned int svn_cstring__similarity(const char *stra,const char *strb,svn_membuf_t *buffer,apr_size_t *rlcs) svn_string_t stringa ; svn_string_t stringb ; stringa . data = stra; stringa . len = strlen ( stra ); stringb . data = strb; stringb . len = strlen ( strb ); return svn_string__similarity ( ( & stringa ) , ( & stringb ) , buffer , rlcs ) ; unsigned int svn_string__similarity(const svn_string_t *stringa,const svn_string_t *stringb,svn_membuf_t *buffer,apr_size_t *rlcs) const char * stra = stringa -> data ; const char * strb = stringb -> data ; const apr_size_t lena = stringa -> len ; const apr_size_t lenb = stringb -> len ; const char * enda = stra + lena ; const char * endb = strb + lenb ; if ( stra < enda && strb < endb )  const apr_size_t resta = ( enda - stra ) ; const apr_size_t restb = ( endb - strb ) ; const apr_size_t slots = resta > restb ? restb : resta ; svn_membuf__nzero ( buffer , ( slots + 2 ) * sizeof ( apr_size_t ) ); #undef svn_membuf__nzero svn_membuf_t * const _m_b_f_ = membuf const apr_size_t _s_z_ = size ; if ( _s_z_ > _m_b_f_ -> size )  memset ( _m_b_f_ -> data , 0 , _s_z_ ); while ( 0 )  