if_diff/src/idfReport.cxx
//============================================================================
// Return the canonical value of the first character of a given string, 
// correcting the offset if necessary, in accordance with config directives.
//============================================================================
Return the canonical value of the first character of a given string,
correcting the offset if necessary, in accordance with config directives.
Return the canonical value of the first character of a given string correcting the offset if necessary in accordance with config directives .
static char SS_value(const char *&name)
{
  char result = '\0';
  if (name != NULL) {
    if (   idf_configuration.contains("Single quote is screwed up.")
        && *name == '\\' && *(name+1) == '0' && *(name+2) == '4' && *(name+3) == '7') {
      result = '\'';
      name += 3;
    }
    else if (   idf_configuration.contains("Single quote may be escaped.")
             && *name == '\\' && *(name+1) == '\'') {
      result = '\'';
      name++;
    }
    else if (   idf_configuration.contains("Symbol names differ in treatment of tabs.")
             && *name == '\\' && *(name+1) == 't') {
      result = '\t';
      name++;
    }
    else if (*name == '\\' && *(name+1) == '"') {
      result = '"';
      name++;
    }
    else {
      result = *name;
    }
  }
  return result;
}
static char SS_value ( const char * & name ) { char result = ' \0 ' ; if ( name != NULL ) { if ( idf_configuration . contains ( " " ) && * name == ' \\ ' && * ( name + 1 ) == ' ' && * ( name + 2 ) == ' ' && * ( name + 3 ) == ' ' ) { result = ' \' ' ; name += 3 ; } else if ( idf_configuration . contains ( " " ) && * name == ' \\ ' && * ( name + 1 ) == ' \' ' ) { result = ' \' ' ; name ++ ; } else if ( idf_configuration . contains ( " " ) && * name == ' \\ ' && * ( name + 1 ) == ' ' ) { result = ' \t ' ; name ++ ; } else if ( * name == ' \\ ' && * ( name + 1 ) == ' ' ) { result = ' ' ; name ++ ; } else { result = * name ; } } return result ; }
Return the canonical value of the first character of a given string,
correcting the offset if necessary, in accordance with config directives.
Return the canonical value of the first character of a given string correcting the offset if necessary in accordance with config directives .