Show
Ignore:
Timestamp:
14/08/09 16:29:27 (3 years ago)
Author:
westram
Message:
  • spellchecked all (phew)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/NTREE/NT_dbrepair.cxx

    r6019 r6141  
    295295                    GBDATA *gb_pos_begin = GB_entry(gb_gene, "pos_begin"); // test for old format 
    296296                    if (!gb_pos_begin) { 
    297                         error = "Neighter 'pos_begin' nor 'pos_start' found - format of gene location is unknown"; 
     297                        error = "Neither 'pos_begin' nor 'pos_start' found - format of gene location is unknown"; 
    298298                    } 
    299299                } 
     
    810810 
    811811            DictMap   use;      // keyname -> dictionary (which dictionary to use) 
    812             StringSet multiDecompressable; // keys which can be decompressed with multiple dictionaries 
     812            StringSet multiDecompressible; // keys which can be decompressed with multiple dictionaries 
    813813 
    814814            for (int pass = 1; pass <= 2; ++pass) { 
     
    831831                                        } 
    832832                                        else { // already have another dictionary working with keyname 
    833                                             multiDecompressable.insert(keyname); 
     833                                            multiDecompressible.insert(keyname); 
    834834                                        } 
    835835                                    } 
     
    842842            } 
    843843 
    844             StringSet notDecompressable; // keys which can be decompressed with none of the dictionaries 
     844            StringSet notDecompressible; // keys which can be decompressed with none of the dictionaries 
    845845            for (Keys::iterator ki = keys.begin(); ki != keys.end(); ++ki) { 
    846846                KeyInfoPtr    k       = ki->second; 
     
    848848 
    849849                if (k->isCompressed()) { 
    850                     if (!contains(use, keyname)) notDecompressable.insert(keyname); 
    851                     if (contains(multiDecompressable, keyname)) use.erase(keyname); 
     850                    if (!contains(use, keyname)) notDecompressible.insert(keyname); 
     851                    if (contains(multiDecompressible, keyname)) use.erase(keyname); 
    852852                } 
    853853            } 
     
    856856            int  reassigned = 0; 
    857857 
    858             if (!notDecompressable.empty()) { 
    859                 // bad .. found undecompressable data 
    860                 int nd_count = notDecompressable.size(); 
     858            if (!notDecompressible.empty()) { 
     859                // bad .. found undecompressible data 
     860                int nd_count = notDecompressible.size(); 
    861861                aw_message(GBS_global_string("Detected corrupted dictionary compression\n" 
    862862                                             "Data of %i DB-keys is lost and will be deleted", nd_count)); 
     
    870870                long      notDeleted = 0; 
    871871                 
    872                 for (StringSet::iterator ki = notDecompressable.begin(); !error && ki != notDecompressable.end(); ++ki) { 
     872                for (StringSet::iterator ki = notDecompressible.begin(); !error && ki != notDecompressible.end(); ++ki) { 
    873873                    const string& keyname    = *ki; 
    874874 
     
    890890            } 
    891891 
    892             if (!error && !multiDecompressable.empty()) { 
    893                 for (StringSet::iterator ki = multiDecompressable.begin(); !error && ki != multiDecompressable.end(); ++ki) { 
     892            if (!error && !multiDecompressible.empty()) { 
     893                for (StringSet::iterator ki = multiDecompressible.begin(); !error && ki != multiDecompressible.end(); ++ki) { 
    894894                    const string&   keyname  = *ki; 
    895895                    int             possible = 0; 
     
    946946            } 
    947947 
    948             // now all redundencies should be eliminated and we can assign dictionaries to affected keys 
     948            // now all redundancies should be eliminated and we can assign dictionaries to affected keys 
    949949            if (!error) { 
    950950                for (Keys::iterator ki = keys.begin(); !error && ki != keys.end(); ++ki) {