Lines Matching refs:i
177 for ( sal_Int32 i=0; i <= nStringLen; i++ ) in WLD() local
178 npDistance[i] = i * nDelR0; in WLD()
183 for ( sal_Int32 i=0; i <= nStringLen; i++ ) in WLD() local
184 npDistance[i] = 0; in WLD()
201 for ( sal_Int32 i=1; i <= nStringLen; i++, nDelCnt += nDelR0 ) in WLD() local
203 if ( cString[i-1] == c ) in WLD()
206 npDistance[i] = nDelCnt + nP; in WLD()
212 nReplacePos = i; in WLD()
214 npMatrix[i][1] = -npDistance[i]; in WLD()
220 LEVDISBALANCE( 0, i-1 ); in WLD()
275 for ( sal_Int32 i=1; i <= nStringLen; i++ ) in WLD() local
278 d2 = npDistance[i]; // WLD( X(i) , Y(j-1) ) in WLD()
279 if ( cString[i-1] == c ) in WLD()
285 LEVDISBALANCE( j, i-1 ); in WLD()
295 npDistance[i] = Min3( d1 + nPij, d2 + nQ, npDistance[i-1] + nR ); in WLD()
296 if ( npDistance[i] < nSPMin ) in WLD()
297 nSPMin = npDistance[i]; in WLD()
300 if ( nReplacePos < 0 && nPij && npDistance[i] == d1 + nPij ) in WLD()
303 nReplacePos = i; in WLD()
305 npMatrix[i][j+1] = -npDistance[i]; in WLD()
317 LEVDISBALANCE( j, i-1 ); in WLD()
542 sal_Int32 i; in WLevDistance() local
543 for ( i=0; i<nPatternLen; i++ ) in WLevDistance()
545 cpPattern[i] = rWLD.cpPattern[i]; in WLevDistance()
546 bpPatIsWild[i] = rWLD.bpPatIsWild[i]; in WLevDistance()
548 cpPattern[i] = '\0'; in WLevDistance()
599 for ( sal_Int32 i=0; i<nPatternLen; i++ ) in ShowTest() local
600 printf("%d", bpPatIsWild[i]); in ShowTest()