Lines Matching refs:curElem
1484 PtnElem *curElem; in getPatternForSkeleton() local
1489 curElem = patternMap->getHeader(skeleton.charAt(0)); in getPatternForSkeleton()
1490 while ( curElem != NULL ) { in getPatternForSkeleton()
1491 if ( curElem->skeleton->getSkeleton()==skeleton ) { in getPatternForSkeleton()
1492 return curElem->pattern; in getPatternForSkeleton()
1494 curElem=curElem->next; in getPatternForSkeleton()
1563 PtnElem *curElem, *otherElem, *prevElem=NULL; in copyFrom() local
1566 if ((curElem = new PtnElem(otherElem->basePattern, otherElem->pattern))==NULL) { in copyFrom()
1572 this->boot[bootIndex] = curElem; in copyFrom()
1574 if ((curElem->skeleton=new PtnSkeleton(*(otherElem->skeleton))) == NULL ) { in copyFrom()
1579 curElem->skeletonWasSpecified = otherElem->skeletonWasSpecified; in copyFrom()
1581 prevElem->next=curElem; in copyFrom()
1583 curElem->next=NULL; in copyFrom()
1584 prevElem = curElem; in copyFrom()
1593 PtnElem* curElem; in getHeader() local
1596 curElem = boot[baseChar-CAP_A]; in getHeader()
1600 curElem = boot[26+baseChar-LOW_A]; in getHeader()
1606 return curElem; in getHeader()
1625 PtnElem *curElem, *baseElem; in add() local
1643 if ((curElem = new PtnElem(basePattern, value)) == NULL ) { in add()
1649 boot[26 + (baseChar-LOW_A)] = curElem; in add()
1652 boot[baseChar-CAP_A] = curElem; in add()
1654 curElem->skeleton = new PtnSkeleton(skeleton); in add()
1655 curElem->skeletonWasSpecified = skeletonWasSpecified; in add()
1658 curElem = getDuplicateElem(basePattern, skeleton, baseElem); in add()
1660 if (curElem == NULL) { in add()
1662 curElem = baseElem; in add()
1663 while( curElem -> next != NULL ) in add()
1665 curElem = curElem->next; in add()
1667 if ((curElem->next = new PtnElem(basePattern, value)) == NULL ) { in add()
1672 curElem=curElem->next; in add()
1673 curElem->skeleton = new PtnSkeleton(skeleton); in add()
1674 curElem->skeletonWasSpecified = skeletonWasSpecified; in add()
1682 curElem->pattern = value; in add()
1685 curElem->skeletonWasSpecified = skeletonWasSpecified; in add()
1693 PtnElem *curElem; in getPatternFromBasePattern() local
1695 if ((curElem=getHeader(basePattern.charAt(0)))==NULL) { in getPatternFromBasePattern()
1700 if ( basePattern.compare(curElem->basePattern)==0 ) { in getPatternFromBasePattern()
1701 skeletonWasSpecified = curElem->skeletonWasSpecified; in getPatternFromBasePattern()
1702 return &(curElem->pattern); in getPatternFromBasePattern()
1704 curElem=curElem->next; in getPatternFromBasePattern()
1705 }while (curElem != NULL); in getPatternFromBasePattern()
1719 PtnElem *curElem; in getPatternFromSkeleton() local
1727 if ((curElem=getHeader(baseChar))==NULL) { in getPatternFromSkeleton()
1734 equal = curElem->skeleton->original == skeleton.original; in getPatternFromSkeleton()
1736 equal = curElem->skeleton->baseOriginal == skeleton.baseOriginal; in getPatternFromSkeleton()
1739 if (specifiedSkeletonPtr && curElem->skeletonWasSpecified) { in getPatternFromSkeleton()
1740 *specifiedSkeletonPtr = curElem->skeleton; in getPatternFromSkeleton()
1742 return &(curElem->pattern); in getPatternFromSkeleton()
1744 curElem=curElem->next; in getPatternFromSkeleton()
1745 }while (curElem != NULL); in getPatternFromSkeleton()
1793 PtnElem *curElem; in getDuplicateElem() local
1799 curElem = baseElem; in getDuplicateElem()
1802 if ( basePattern.compare(curElem->basePattern)==0 ) { in getDuplicateElem()
1805 if (curElem->skeleton->type[i] != skeleton.type[i] ) { in getDuplicateElem()
1811 return curElem; in getDuplicateElem()
1814 curElem = curElem->next; in getDuplicateElem()
1815 } while( curElem != (PtnElem *)NULL ); in getDuplicateElem()
2327 PtnElem *curElem; in DTSkeletonEnumeration() local
2339 curElem = patternMap.boot[bootIndex]; in DTSkeletonEnumeration()
2340 while (curElem!=NULL) { in DTSkeletonEnumeration()
2343 s=curElem->basePattern; in DTSkeletonEnumeration()
2346 s=curElem->pattern; in DTSkeletonEnumeration()
2349 curSkeleton=curElem->skeleton; in DTSkeletonEnumeration()
2361 curElem = curElem->next; in DTSkeletonEnumeration()
2364 if ((bootIndex==MAX_PATTERN_ENTRIES) && (curElem!=NULL) ) { in DTSkeletonEnumeration()