Lines Matching refs:rCost
470 amatch_cost rCost; /* Cost of the match so far */ member
484 amatch_cost rCost; /* Cost of this transformation */ member
540 if( pA->rCost<=pB->rCost ){ in amatchMergeRules()
576 amatch_cost rCost = sqlite3_column_int(pStmt, 3); in amatchLoadOneRule() local
591 if( p->rSub==0 || p->rSub>rCost ) p->rSub = rCost; in amatchLoadOneRule()
597 if( rCost<=0 || rCost>AMATCH_MX_COST ){ in amatchLoadOneRule()
616 if( p->rIns==0 || p->rIns>rCost ) p->rIns = rCost; in amatchLoadOneRule()
619 if( p->rDel==0 || p->rDel>rCost ) p->rDel = rCost; in amatchLoadOneRule()
632 pRule->rCost = rCost; in amatchLoadOneRule()
997 amatchEncodeInt(pWord->rCost, pWord->zCost); in amatchWriteCost()
1024 amatch_cost rCost, in amatchAddWord() argument
1035 if( rCost>pCur->rLimit ){ in amatchAddWord()
1055 if( pWord->rCost>rCost ){ in amatchAddWord()
1059 pWord->rCost, pWord->zWord, pWord->zCost); in amatchAddWord()
1062 pWord->rCost = rCost; in amatchAddWord()
1066 pWord->rCost, pWord->zWord, pWord->zCost); in amatchAddWord()
1076 pWord->rCost = rCost; in amatchAddWord()
1093 pWord->nMatch, pCur->zInput, pCur->zInput+pWord->nMatch, rCost, in amatchAddWord()
1156 pWord->rCost, pWord->zWord, pWord->zCost); in amatchNext()
1185 amatchAddWord(pCur, pWord->rCost, pWord->nMatch+nNextIn, zBuf, ""); in amatchNext()
1215 amatchAddWord(pCur, pWord->rCost+p->rIns, pWord->nMatch, in amatchNext()
1219 amatchAddWord(pCur, pWord->rCost+p->rSub, pWord->nMatch+nNextIn, in amatchNext()
1229 amatchAddWord(pCur, pWord->rCost+p->rDel, pWord->nMatch+nNextIn, in amatchNext()
1236 amatchAddWord(pCur, pWord->rCost+pRule->rCost, in amatchNext()
1294 sqlite3_result_int(ctx, pCur->pCurrent->rCost); in amatchColumn()