Bool checkWildcards (Char* fnName) { fnNode* curCheckName; Bool tmpNameUpdated = False; VG_(HT_ResetIter) (funcNames); Char tmpName[1024]; cutAffixes(fnName); while ((curCheckName = (fnNode*) VG_(HT_Next) (funcNames))) { if (isCPPFunction(curCheckName->data)) { if (cmpNames(fnName, curCheckName->data)) return True; } else { if (!tmpNameUpdated) { VG_(strcpy) (tmpName, fnName); cutTemplates(tmpName); leaveFnName(tmpName); tmpNameUpdated = True; } if (cmpNames(tmpName, curCheckName->data)) return True; } } return False; }
void StudContainer::sortByName () { for (int i=0;i<this->count_;i++) for (int j=i;j<this->count_-1;j++) { if (cmpNames ((void*)(this->studPointer_+j),(void*)(this->studPointer_+j+1))>0) { Student tmp = studPointer_[j]; studPointer_[j]=studPointer_[j+1]; studPointer_[j+1]=tmp; } } }