aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/correction.h
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/correction.h')
-rw-r--r--native/src/correction.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/native/src/correction.h b/native/src/correction.h
index 522c65f48..437ef77f4 100644
--- a/native/src/correction.h
+++ b/native/src/correction.h
@@ -115,7 +115,11 @@ private:
int mMissingSpacePos;
int mTerminalInputIndex;
int mTerminalOutputIndex;
+
+ // The following arrays are state buffer.
unsigned short mWord[MAX_WORD_LENGTH_INTERNAL];
+ int mDistances[MAX_WORD_LENGTH_INTERNAL];
+
// Edit distance calculation requires a buffer with (N+1)^2 length for the input length N.
// Caveat: Do not create multiple tables per thread as this table eats up RAM a lot.
int mEditDistanceTable[(MAX_WORD_LENGTH_INTERNAL + 1) * (MAX_WORD_LENGTH_INTERNAL + 1)];
@@ -128,7 +132,6 @@ private:
int mInputIndex;
int mEquivalentCharCount;
- int mSumOfDistance;
int mProximityCount;
int mExcessiveCount;
int mTransposedCount;