if_diff/src/idfReport.cxx
//============================================================================
// Remove one set of quotes from a string, correcting internal characters in
// accordance with config directives.
//============================================================================
Remove one set of quotes from a string, correcting internal characters in
accordance with config directives.
Remove one set of quotes from a string correcting internal characters in accordance with config directives .
static char *dequote_string(const char *name)
{
  char *result = NULL;
  if (name != NULL) {
    int length = strlen(name);
    boolean found_quote = false;
    if (name[0] == '"' && name[length-1] == '"') {
      name++;
      found_quote = true;
    }
    result = normalize_string (name);
    char *temp = result;
    if (found_quote) {
      while (*temp != '\0') {
        temp++;
      }
      temp--;
      *temp = '\0';
    }
  }
  return result;
}
static char * dequote_string ( const char * name ) { char * result = NULL ; if ( name != NULL ) { int length = strlen ( name ) ; boolean found_quote = false ; if ( name [ 0 ] == ' ' && name [ length - 1 ] == ' ' ) { name ++ ; found_quote = true ; } result = normalize_string ( name ) ; char * temp = result ; if ( found_quote ) { while ( * temp != ' \0 ' ) { temp ++ ; } temp -- ; * temp = ' \0 ' ; } } return result ; }
Remove one set of quotes from a string, correcting internal characters in
accordance with config directives.
Remove one set of quotes from a string correcting internal characters in accordance with config directives .