Home
last modified time | relevance | path

Searched refs:NodeFlags (Results 1 – 14 of 14) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Dpatricia_trie_reading_utils.h31 typedef uint8_t NodeFlags; typedef
35 static NodeFlags getFlagsAndAdvancePosition(const uint8_t *const buffer, int *const pos);
41 static int getCharsAndAdvancePosition(const uint8_t *const buffer, const NodeFlags flags,
46 static int skipCharacters(const uint8_t *const buffer, const NodeFlags flags,
52 const NodeFlags flags, int *const pos);
57 static AK_FORCE_INLINE bool isPossiblyOffensive(const NodeFlags flags) { in isPossiblyOffensive()
61 static AK_FORCE_INLINE bool isNotAWord(const NodeFlags flags) { in isNotAWord()
65 static AK_FORCE_INLINE bool isTerminal(const NodeFlags flags) { in isTerminal()
69 static AK_FORCE_INLINE bool hasShortcutTargets(const NodeFlags flags) { in hasShortcutTargets()
73 static AK_FORCE_INLINE bool hasBigrams(const NodeFlags flags) { in hasBigrams()
[all …]
Dpatricia_trie_reading_utils.cpp28 const PtReadingUtils::NodeFlags PtReadingUtils::MASK_CHILDREN_POSITION_TYPE = 0xC0;
29 const PtReadingUtils::NodeFlags PtReadingUtils::FLAG_CHILDREN_POSITION_TYPE_NOPOSITION = 0x00;
30 const PtReadingUtils::NodeFlags PtReadingUtils::FLAG_CHILDREN_POSITION_TYPE_ONEBYTE = 0x40;
31 const PtReadingUtils::NodeFlags PtReadingUtils::FLAG_CHILDREN_POSITION_TYPE_TWOBYTES = 0x80;
32 const PtReadingUtils::NodeFlags PtReadingUtils::FLAG_CHILDREN_POSITION_TYPE_THREEBYTES = 0xC0;
35 const PtReadingUtils::NodeFlags PtReadingUtils::FLAG_HAS_MULTIPLE_CHARS = 0x20;
37 const PtReadingUtils::NodeFlags PtReadingUtils::FLAG_IS_TERMINAL = 0x10;
39 const PtReadingUtils::NodeFlags PtReadingUtils::FLAG_HAS_SHORTCUT_TARGETS = 0x08;
41 const PtReadingUtils::NodeFlags PtReadingUtils::FLAG_HAS_BIGRAMS = 0x04;
43 const PtReadingUtils::NodeFlags PtReadingUtils::FLAG_IS_NOT_A_WORD = 0x02;
[all …]
Ddynamic_pt_reading_utils.h28 typedef uint8_t NodeFlags; typedef
49 static AK_FORCE_INLINE bool isMoved(const NodeFlags flags) { in isMoved()
53 static AK_FORCE_INLINE bool isDeleted(const NodeFlags flags) { in isDeleted()
57 static AK_FORCE_INLINE bool willBecomeNonTerminal(const NodeFlags flags) { in willBecomeNonTerminal()
61 static AK_FORCE_INLINE NodeFlags updateAndGetFlags(const NodeFlags originalFlags, in updateAndGetFlags()
63 NodeFlags flags = originalFlags; in updateAndGetFlags()
76 static const NodeFlags MASK_MOVED;
77 static const NodeFlags FLAG_IS_NOT_MOVED;
78 static const NodeFlags FLAG_IS_MOVED;
79 static const NodeFlags FLAG_IS_DELETED;
[all …]
Ddynamic_pt_reading_utils.cpp24 const DynamicPtReadingUtils::NodeFlags DynamicPtReadingUtils::MASK_MOVED = 0xC0;
25 const DynamicPtReadingUtils::NodeFlags DynamicPtReadingUtils::FLAG_IS_NOT_MOVED = 0xC0;
26 const DynamicPtReadingUtils::NodeFlags DynamicPtReadingUtils::FLAG_IS_MOVED = 0x40;
27 const DynamicPtReadingUtils::NodeFlags DynamicPtReadingUtils::FLAG_IS_DELETED = 0x80;
28 const DynamicPtReadingUtils::NodeFlags DynamicPtReadingUtils::FLAG_WILL_BECOME_NON_TERMINAL = 0x00;
Dpt_node_params.h60 PtNodeParams(const int headPos, const PatriciaTrieReadingUtils::NodeFlags flags, in PtNodeParams()
75 PtNodeParams(const int headPos, const PatriciaTrieReadingUtils::NodeFlags flags, in PtNodeParams()
91 const PatriciaTrieReadingUtils::NodeFlags flags, const int parentPos, in PtNodeParams()
108 PtNodeParams(const PatriciaTrieReadingUtils::NodeFlags flags, const int parentPos, in PtNodeParams()
245 const PatriciaTrieReadingUtils::NodeFlags mFlags;
Ddynamic_pt_writing_utils.h43 const DynamicPtReadingUtils::NodeFlags nodeFlags, in writeFlags()
50 const DynamicPtReadingUtils::NodeFlags nodeFlags,
Ddynamic_pt_updating_helper.cpp282 const PatriciaTrieReadingUtils::NodeFlags flags = PatriciaTrieReadingUtils::createAndGetFlags( in getUpdatedPtNodeParams()
292 const PatriciaTrieReadingUtils::NodeFlags flags = PatriciaTrieReadingUtils::createAndGetFlags( in getPtNodeParamsForNewPtNode()
Ddynamic_pt_writing_utils.cpp78 const DynamicPtReadingUtils::NodeFlags nodeFlags, int *const nodeFlagsFieldPos) { in writeFlagsAndAdvancePosition()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_node_writer.cpp44 const PatriciaTrieReadingUtils::NodeFlags originalFlags = in markPtNodeAsDeleted()
46 const PatriciaTrieReadingUtils::NodeFlags updatedFlags = in markPtNodeAsDeleted()
75 const PatriciaTrieReadingUtils::NodeFlags originalFlags = in markPtNodeAsMoved()
77 const PatriciaTrieReadingUtils::NodeFlags updatedFlags = in markPtNodeAsMoved()
120 const PatriciaTrieReadingUtils::NodeFlags originalFlags = in markPtNodeAsWillBecomeNonTerminal()
122 const PatriciaTrieReadingUtils::NodeFlags updatedFlags = in markPtNodeAsWillBecomeNonTerminal()
343 PatriciaTrieReadingUtils::NodeFlags nodeFlags = in updatePtNodeFlags()
Dver4_patricia_trie_node_reader.cpp46 const PatriciaTrieReadingUtils::NodeFlags flags = in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_node_writer.cpp54 const PatriciaTrieReadingUtils::NodeFlags originalFlags = in markPtNodeAsDeleted()
56 const PatriciaTrieReadingUtils::NodeFlags updatedFlags = in markPtNodeAsDeleted()
84 const PatriciaTrieReadingUtils::NodeFlags originalFlags = in markPtNodeAsMoved()
86 const PatriciaTrieReadingUtils::NodeFlags updatedFlags = in markPtNodeAsMoved()
129 const PatriciaTrieReadingUtils::NodeFlags originalFlags = in markPtNodeAsWillBecomeNonTerminal()
131 const PatriciaTrieReadingUtils::NodeFlags updatedFlags = in markPtNodeAsWillBecomeNonTerminal()
417 PatriciaTrieReadingUtils::NodeFlags nodeFlags = in updatePtNodeFlags()
Dver4_patricia_trie_node_reader.cpp55 const PatriciaTrieReadingUtils::NodeFlags flags = in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp118 const PatriciaTrieReadingUtils::NodeFlags flags = in getCodePointsAndProbabilityAndReturnCodePointCount()
196 const PatriciaTrieReadingUtils::NodeFlags lastFlags = in getCodePointsAndProbabilityAndReturnCodePointCount()
404 PatriciaTrieReadingUtils::NodeFlags flags; in createAndGetLeavingChildNode()
Dver2_patricia_trie_node_reader.cpp32 PatriciaTrieReadingUtils::NodeFlags flags; in fetchPtNodeParamsInBufferFromPtNodePos()