aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/proximity_info.h
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-07-15 13:49:00 +0900
committersatok <satok@google.com>2011-08-01 15:42:09 +0900
commit2df3060883c7535029c7dfbbb4f7b05935d796ae (patch)
treefbaf235dbcbffcd71ae1e563bc6580b0a19b5b88 /native/src/proximity_info.h
parente00d44d0c8a1420482121f2f3347def9ef430778 (diff)
downloadlatinime-2df3060883c7535029c7dfbbb4f7b05935d796ae.tar.gz
latinime-2df3060883c7535029c7dfbbb4f7b05935d796ae.tar.xz
latinime-2df3060883c7535029c7dfbbb4f7b05935d796ae.zip
Add correction state
Change-Id: I0d281cede1590893bd1def005cf83c9431d12750
Diffstat (limited to 'native/src/proximity_info.h')
-rw-r--r--native/src/proximity_info.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/native/src/proximity_info.h b/native/src/proximity_info.h
index 435a60151..b28191d01 100644
--- a/native/src/proximity_info.h
+++ b/native/src/proximity_info.h
@@ -23,6 +23,8 @@
namespace latinime {
+class CorrectionState;
+
class ProximityInfo {
public:
typedef enum { // Used as a return value for character comparison
@@ -42,8 +44,7 @@ public:
bool existsCharInProximityAt(const int index, const int c) const;
bool existsAdjacentProximityChars(const int index) const;
ProximityType getMatchedProximityId(
- const int index, const unsigned short c, const int skipPos,
- const int excessivePos, const int transposedPos) const;
+ const int index, const unsigned short c, CorrectionState *correctionState) const;
bool sameAsTyped(const unsigned short *word, int length) const;
private:
int getStartIndexFromCoordinates(const int x, const int y) const;