bool InspIRCd::Match(const char* str, const char* mask, unsigned const char* map) { if (!map) map = national_case_insensitive_map; return MatchInternal((const unsigned char*)str, (const unsigned char*)mask, map); }
bool InspIRCd::Match(const std::string& str, const std::string& mask, unsigned const char* map) { if (!map) map = national_case_insensitive_map; return MatchInternal((const unsigned char*)str.c_str(), (const unsigned char*)mask.c_str(), map); }
// Compare a file by rotation # to the cached info ReadUserLogMatch::MatchResult ReadUserLogMatch::Match( int rot, int match_thresh, int *score_ptr ) const { // Get the initial score from the state int local_score; if ( NULL == score_ptr ) { score_ptr = &local_score; } *score_ptr = m_state->ScoreFile( rot ); // Generate the final score using the internal logic return MatchInternal( rot, NULL, match_thresh, score_ptr ); }