src/listmerger/utilities.cc
unsigned
shorestStringSize(const vector<string> &strings
                  )
{
    unsigned minSize = ~0;

    for (unsigned i = 0; i < (unsigned) strings.size(); i++) {
        unsigned s = strings.at(i).length();

        if (s < minSize)
            minSize = s;

    }//end for

    return minSize;

}
/* 
 This function selects the shorest
 string for computing the thresholds 
 in filters.

 */
This function selects the shorest
string for computing the thresholds
in filters.
This function selects the shorest string for computing the thresholds in filters .
unsigned
shorestStringSize(const vector<string> &strings
                  )
{
    unsigned minSize = ~0;
    for (unsigned i = 0; i < (unsigned) strings.size(); i++) {
        unsigned s = strings.at(i).length();
        if (s < minSize)
            minSize = s;
    }
    return minSize;
}
unsigned shorestStringSize ( const vector < string > & strings ) { unsigned minSize = ~ 0 ; for ( unsigned i = 0 ; i < ( unsigned ) strings . size ( ) ; i ++ ) { unsigned s = strings . at ( i ) . length ( ) ; if ( s < minSize ) minSize = s ; } return minSize ; }
This function selects the shorest
string for computing the thresholds
in filters.
This function selects the shorest string for computing the thresholds in filters .
//end for