model_server/project_pdf/src/path.h.cxx
// count the number of matching patterns in the pattern portion.
count the number of matching patterns in the pattern portion.
count the number of matching patterns in the pattern portion .
static int obtain_ptn_match_cnt(wkPtnDef *cur)
{
    Initialize(obtain_ptn_match_cnt);
    int count = 0;
    while(cur)
        {
            if (cur->get_type() == PTN_MATCH_MAPPING)
                count++;
            cur = cur->get_next();
        }
    return(count);
}
static int obtain_ptn_match_cnt ( wkPtnDef * cur ) { Initialize ( obtain_ptn_match_cnt ) ; int count = 0 ; while ( cur ) { if ( cur -> get_type ( ) == PTN_MATCH_MAPPING ) count ++ ; cur = cur -> get_next ( ) ; } return ( count ) ; }
count the number of matching patterns in the pattern portion.
count the number of matching patterns in the pattern portion .