Lines Matching refs:mOutputIndex
127 return mProximityInfoState.sameAsTyped(mWord, mOutputIndex);
149 mOutputIndex = outputIndex;
176 mCorrectionStates[mOutputIndex].mParentIndex = parentIndex;
177 mCorrectionStates[mOutputIndex].mChildCount = childCount;
178 mCorrectionStates[mOutputIndex].mSiblingPos = firstChildPos;
179 return mOutputIndex;
189 return mOutputIndex - 1 >= mMaxDepth || mProximityCount > mMaxEditDistance
191 || (!mDoAutoCompletion && (mOutputIndex > mInputSize));
212 mDistances[mOutputIndex] = NOT_A_DISTANCE;
224 mDistances[mOutputIndex] =
230 mDistances[mOutputIndex] = mProximityInfoState.getNormalizedSquaredDistance(
243 if (mExcessiveCount == 0 && mExcessivePos < mOutputIndex) {
244 mExcessivePos = mOutputIndex;
252 if (mSkippedCount == 0 && mSkipPos < mOutputIndex) {
255 //ASSERT(mSkipPos == mOutputIndex - 1);
257 mSkipPos = mOutputIndex;
259 mSkipping = mSkipPos == mOutputIndex && canTryCorrection;
263 if (mTransposedCount == 0 && mTransposedPos < mOutputIndex) {
264 mTransposedPos = mOutputIndex;
277 } else if (mCorrectionStates[mOutputIndex].mExceeding) {
287 || MIN_OUTPUT_INDEX_FOR_DEBUG < mOutputIndex)) {
288 DUMP_WORD(mWord, mOutputIndex);
310 if (canTryCorrection && mOutputIndex > 0
311 && mCorrectionStates[mOutputIndex].mProximityMatching
312 && mCorrectionStates[mOutputIndex].mExceeding
314 mInputIndex, mWord[mOutputIndex - 1], false))) {
318 || MIN_OUTPUT_INDEX_FOR_DEBUG < mOutputIndex)) {
319 AKLOGI("CONVERSION p->e %c", mWord[mOutputIndex - 1]);
327 mExcessivePos = mOutputIndex - 1;
344 // we will try other correction-types. Please note that mCorrectionStates[mOutputIndex]
346 if (mInputIndex < mInputSize - 1 && mOutputIndex > 0 && mTransposedCount > 0
347 && !mCorrectionStates[mOutputIndex].mTransposing
348 && mCorrectionStates[mOutputIndex - 1].mTransposing
350 mInputIndex, mWord[mOutputIndex - 1], false))
360 } else if (mOutputIndex > 0 && mInputIndex > 0 && mTransposedCount > 0
361 && !mCorrectionStates[mOutputIndex].mTransposing
362 && mCorrectionStates[mOutputIndex - 1].mTransposing
373 && mCorrectionStates[mOutputIndex].mProximityMatching
374 && mCorrectionStates[mOutputIndex].mSkipping
385 && mCorrectionStates[mOutputIndex].mSkipping
386 && mCorrectionStates[mOutputIndex].mAdditionalProximityMatching
394 mDistances[mOutputIndex] = ADDITIONAL_PROXIMITY_CHAR_DISTANCE_INFO;
408 || MIN_OUTPUT_INDEX_FOR_DEBUG < mOutputIndex)) {
409 DUMP_WORD(mWord, mOutputIndex);
424 || MIN_OUTPUT_INDEX_FOR_DEBUG < mOutputIndex)) {
433 mDistances[mOutputIndex] = ADDITIONAL_PROXIMITY_CHAR_DISTANCE_INFO;
437 || MIN_OUTPUT_INDEX_FOR_DEBUG < mOutputIndex)) {
445 || MIN_OUTPUT_INDEX_FOR_DEBUG < mOutputIndex)) {
446 DUMP_WORD(mWord, mOutputIndex);
459 mDistances[mOutputIndex] = mProximityInfoState.getNormalizedSquaredDistance(mInputIndex, 0);
463 mDistances[mOutputIndex] =
468 || MIN_OUTPUT_INDEX_FOR_DEBUG < mOutputIndex)) {
504 mTerminalOutputIndex = mOutputIndex - 1;
507 && (MIN_OUTPUT_INDEX_FOR_DEBUG <= 0 || MIN_OUTPUT_INDEX_FOR_DEBUG < mOutputIndex)) {
508 DUMP_WORD(mWord, mOutputIndex);
515 mTerminalOutputIndex = mOutputIndex - 1;