Lines Matching refs:pLang
746 EditDist3Lang *pLang = 0; in editDist3ConfigLoad() local
768 if( pLang==0 || iLang!=iLangPrev ){ in editDist3ConfigLoad()
773 pLang = &p->a[p->nLang]; in editDist3ConfigLoad()
775 pLang->iLang = iLang; in editDist3ConfigLoad()
776 pLang->iInsCost = 100; in editDist3ConfigLoad()
777 pLang->iDelCost = 100; in editDist3ConfigLoad()
778 pLang->iSubCost = 150; in editDist3ConfigLoad()
779 pLang->pCost = 0; in editDist3ConfigLoad()
783 pLang->iDelCost = iCost; in editDist3ConfigLoad()
785 pLang->iInsCost = iCost; in editDist3ConfigLoad()
787 pLang->iSubCost = iCost; in editDist3ConfigLoad()
799 pCost->pNext = pLang->pCost; in editDist3ConfigLoad()
800 pLang->pCost = pCost; in editDist3ConfigLoad()
894 const EditDist3Lang *pLang, in editDist3FromStringNew() argument
924 for(p=pLang->pCost; p; p=p->pNext){ in editDist3FromStringNew()
994 const EditDist3Lang *pLang, /* Edit weights for a particular language ID */ in editDist3Core() argument
1027 for(p=pLang->pCost; p; p=p->pNext){ in editDist3Core()
1052 updateCost(m, i1+b1, i1, pLang->iDelCost); in editDist3Core()
1066 updateCost(m, rx, rxp, pLang->iInsCost); in editDist3Core()
1081 updateCost(m, cx, cxp, pLang->iDelCost); in editDist3Core()
1086 updateCost(m, cx, cxu, pLang->iInsCost); in editDist3Core()
1090 updateCost(m, cx, cxd, pLang->iSubCost); in editDist3Core()
1188 const EditDist3Lang *pLang = editDist3FindLang(pConfig, iLang); in editDist3SqlFunc() local
1192 pFrom = editDist3FromStringNew(pLang, zA, nA); in editDist3SqlFunc()
1197 dist = editDist3Core(pFrom, zB, nB, pLang, 0); in editDist3SqlFunc()
2374 const EditDist3Lang *pLang; /* The selected language coefficients */ member
2457 iDist = editDist3Core(p->pMatchStr3, zWord, nWord, p->pLang, &iMatchlen); in spellfix1RunQuery()
2580 x.pLang = editDist3FindLang(p->pConfig3, iLang); in spellfix1FilterForMatch()
2581 pMatchStr3 = editDist3FromStringNew(x.pLang, (const char*)zMatchThis, -1); in spellfix1FilterForMatch()
2587 x.pLang = 0; in spellfix1FilterForMatch()