if_diff/src/idfReport.cxx
//============================================================================
// Compare strings for a match, ignoring whitespace except as a separator
// between identifiers.
//============================================================================
Compare strings for a match, ignoring whitespace except as a separator
between identifiers.
Compare strings for a match ignoring whitespace except as a separator between identifiers .
boolean name_match(const char *name1, const char *name2)
{
  if (name1 == NULL || name2 == NULL) {
    return name1 == name2;
  }
  for (;;) {
    if (*name1 != *name2 && (!isspace(*name1) || !isspace(*name2))) {
      return false;
    }
    if (*name1 == '\0' || *name2 == '\0') {
      return true;
    }
    next_significant_char(name1);
    next_significant_char(name2);
  }
}
boolean name_match ( const char * name1 , const char * name2 ) { if ( name1 == NULL || name2 == NULL ) { return name1 == name2 ; } for ( ; ; ) { if ( * name1 != * name2 && ( ! isspace ( * name1 ) || ! isspace ( * name2 ) ) ) { return false ; } if ( * name1 == ' \0 ' || * name2 == ' \0 ' ) { return true ; } next_significant_char ( name1 ) ; next_significant_char ( name2 ) ; } }
Compare strings for a match, ignoring whitespace except as a separator
between identifiers.
Compare strings for a match ignoring whitespace except as a separator between identifiers .