aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/correction_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/correction_state.h')
-rw-r--r--native/src/correction_state.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/native/src/correction_state.h b/native/src/correction_state.h
index a548bcb68..7ea5aa37d 100644
--- a/native/src/correction_state.h
+++ b/native/src/correction_state.h
@@ -101,6 +101,7 @@ private:
int mMaxDepth;
int mInputLength;
int mSkipPos;
+ int mSkippedOutputIndex;
int mExcessivePos;
int mTransposedPos;
int mSpaceProximityPos;
@@ -109,12 +110,14 @@ private:
int mMatchedCharCount;
int mInputIndex;
int mOutputIndex;
+ int mTerminalInputIndex;
+ int mTerminalOutputIndex;
int mDiffs;
bool mTraverseAllNodes;
- CorrectionStateType mCurrentStateType;
unsigned short mWord[MAX_WORD_LENGTH_INTERNAL];
- inline bool needsToSkipCurrentNode(const unsigned short c);
+ inline bool isQuote(const unsigned short c);
+ inline CorrectionStateType processSkipChar(const int32_t c, const bool isTerminal);
class RankingAlgorithm {
public: