Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework word completion: Start to prepare PrefixNode for dynamic updating #1532

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Feb 1, 2025

  • Add a property counting how many times a word occurs in a document (used to remove nodes with zero occurrences)
  • Distinguish node types: ROOT, CHAR, WORD_END. (WORD_END type carries occurrences property)
  • Make tree bi-directional (nodes have parent property)
  • Use Gee.ArrayList instead of GLib.List


private const unichar WORD_END_CHAR = '\0';
private unichar? uc = null;
private NodeType type = ROOT;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this should also be a construction property since it's set in constructors?

}

private const unichar WORD_END_CHAR = '\0';
private unichar? uc = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not be a construction property since it's set in constructors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants