Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
9e15b455
Commit
9e15b455
authored
10 years ago
by
Ken Wakasa
Browse files
Options
Downloads
Patches
Plain Diff
Small clean up on MAX_LOCALE_STRING_LENGTH
Change-Id: I77f93879e841f33b81f6d193d1bd5782ad2124f5
parent
91db602b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
native/jni/src/defines.h
+0
-3
0 additions, 3 deletions
native/jni/src/defines.h
native/jni/src/suggest/core/layout/proximity_info.h
+2
-0
2 additions, 0 deletions
native/jni/src/suggest/core/layout/proximity_info.h
with
2 additions
and
3 deletions
native/jni/src/defines.h
+
0
−
3
View file @
9e15b455
...
...
@@ -330,9 +330,6 @@ static inline void prof_out(void) {
#define MAX_PROBABILITY 255
#define MAX_BIGRAM_ENCODED_PROBABILITY 15
// Assuming locale strings such as en_US, sr-Latn etc.
#define MAX_LOCALE_STRING_LENGTH 10
// Max value for length, distance and probability which are used in weighting
// TODO: Remove
#define MAX_VALUE_FOR_WEIGHTING 10000000
...
...
This diff is collapsed.
Click to expand it.
native/jni/src/suggest/core/layout/proximity_info.h
+
2
−
0
View file @
9e15b455
...
...
@@ -103,6 +103,8 @@ class ProximityInfo {
const
int
KEYBOARD_HEIGHT
;
const
float
KEYBOARD_HYPOTENUSE
;
const
bool
HAS_TOUCH_POSITION_CORRECTION_DATA
;
// Assuming locale strings such as en_US, sr-Latn etc.
static
const
int
MAX_LOCALE_STRING_LENGTH
=
10
;
char
mLocaleStr
[
MAX_LOCALE_STRING_LENGTH
];
int
*
mProximityCharsArray
;
int
mKeyXCoordinates
[
MAX_KEY_COUNT_IN_A_KEYBOARD
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment