openfpga/src/annotation/check_netlist_naming_conflict.cpp
/********************************************************************
 * This function aims to check if the name contains any of the 
 * sensitive characters in the list
 * Return a string of sensitive characters which are contained
 * in the name
 *******************************************************************/
This function aims to check if the name contains any of the
sensitive characters in the list
Return a string of sensitive characters which are contained
in the name
This function aims to check if the name contains any of the sensitive characters in the list Return a string of sensitive characters which are contained in the name
static 
std::string name_contain_sensitive_chars(const std::string& name, 
                                         const std::string& sensitive_chars) {
  std::string violation;
  for (const char& sensitive_char : sensitive_chars) {
    if (std::string::npos != name.find(sensitive_char)) {
      violation.push_back(sensitive_char);
    }
  }
  return violation;
}
static std :: string name_contain_sensitive_chars ( const std :: string & name , const std :: string & sensitive_chars ) { std :: string violation ; for ( const char & sensitive_char : sensitive_chars ) { if ( std :: string :: npos != name . find ( sensitive_char ) ) { violation . push_back ( sensitive_char ) ; } } return violation ; }
This function aims to check if the name contains any of the
 sensitive characters in the list
 Return a string of sensitive characters which are contained
 in the name
This function aims to check if the name contains any of the sensitive characters in the list Return a string of sensitive characters which are contained in the name
/* Return true since we find a characters */