diff options
author | 2011-12-15 10:10:59 -0800 | |
---|---|---|
committer | 2011-12-15 10:10:59 -0800 | |
commit | 2d651760c4ab56ad5bbdf214c69ae3b9b8e11c01 (patch) | |
tree | d8c246f6f30822cda2c507ddeca0dbd24d471861 /native/src/correction.h | |
parent | c29688749746aa5a0c3cf7d29a542975609aa1bd (diff) | |
parent | 4d355989bd972ba792ba546a55c67e5b6fc2527a (diff) | |
download | latinime-2d651760c4ab56ad5bbdf214c69ae3b9b8e11c01.tar.gz latinime-2d651760c4ab56ad5bbdf214c69ae3b9b8e11c01.tar.xz latinime-2d651760c4ab56ad5bbdf214c69ae3b9b8e11c01.zip |
am 4d355989: Add a functionality to limit the max correction errors
* commit '4d355989bd972ba792ba546a55c67e5b6fc2527a':
Add a functionality to limit the max correction errors
Diffstat (limited to 'native/src/correction.h')
-rw-r--r-- | native/src/correction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/native/src/correction.h b/native/src/correction.h index 4a8d1fab7..e55be8dd6 100644 --- a/native/src/correction.h +++ b/native/src/correction.h @@ -45,7 +45,7 @@ public: // TODO: remove void setCorrectionParams(const int skipPos, const int excessivePos, const int transposedPos, const int spaceProximityPos, const int missingSpacePos, const bool useFullEditDistance, - const bool doAutoCompletion); + const bool doAutoCompletion, const int maxErrors); void checkState(); bool initProcessState(const int index); @@ -118,6 +118,7 @@ private: int mMissingSpacePos; int mTerminalInputIndex; int mTerminalOutputIndex; + int mMaxErrors; // The following arrays are state buffer. unsigned short mWord[MAX_WORD_LENGTH_INTERNAL]; |