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
73779f76
Commit
73779f76
authored
12 years ago
by
Yuichiro Hanada
Browse files
Options
Downloads
Patches
Plain Diff
Make readUnigramsAndBigramsBinary read linked-list nodes.
Change-Id: I07ae036b0b06e71d7a18f2bf11e4692cd4213568
parent
54717534
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java
+12
-1
12 additions, 1 deletion
...android/inputmethod/latin/makedict/BinaryDictIOUtils.java
with
12 additions
and
1 deletion
java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java
+
12
−
1
View file @
73779f76
...
...
@@ -92,7 +92,18 @@ public class BinaryDictIOUtils {
}
if
(
p
.
mPosition
==
p
.
mNumOfCharGroup
)
{
stack
.
pop
();
if
(
formatOptions
.
mHasLinkedListNode
)
{
final
int
forwardLinkAddress
=
buffer
.
readUnsignedInt24
();
if
(
forwardLinkAddress
!=
FormatSpec
.
NO_FORWARD_LINK_ADDRESS
)
{
// the node has a forward link.
p
.
mNumOfCharGroup
=
Position
.
NOT_READ_GROUPCOUNT
;
p
.
mAddress
=
forwardLinkAddress
;
}
else
{
stack
.
pop
();
}
}
else
{
stack
.
pop
();
}
}
else
{
// the node has more groups.
p
.
mAddress
=
buffer
.
position
();
...
...
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