/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_node_reader.cpp | 40 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() local 47 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 50 dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 56 dictBuf, flags, MAX_WORD_LENGTH, nullptr /* codePointTable */, codePoints, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 64 terminalId = Ver4PatriciaTrieReadingUtils::getTerminalIdAndAdvancePosition(dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 71 dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
|
D | ver4_pt_node_array_reader.cpp | 35 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readPtNodeArrayInfoAndReturnIfValid() local 41 dictBuf, &readingPos); in readPtNodeArrayInfoAndReturnIfValid() 64 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readForwardLinkAndReturnIfValid() local 70 DynamicPtReadingUtils::getForwardLinkPosition(dictBuf, readingPos); in readForwardLinkAndReturnIfValid()
|
D | ver4_patricia_trie_node_writer.cpp | 39 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsDeleted() local 45 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in markPtNodeAsDeleted() 70 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsMoved() local 76 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in markPtNodeAsMoved() 115 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsWillBecomeNonTerminal() local 121 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in markPtNodeAsWillBecomeNonTerminal()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/ |
D | header_read_write_utils.cpp | 50 /* static */ int HeaderReadWriteUtils::getHeaderSize(const uint8_t *const dictBuf) { in getHeaderSize() argument 53 return ByteArrayUtils::readUint32(dictBuf, HEADER_MAGIC_NUMBER_SIZE in getHeaderSize() 58 HeaderReadWriteUtils::getFlags(const uint8_t *const dictBuf) { in getFlags() argument 59 return ByteArrayUtils::readUint16(dictBuf, in getFlags() 69 /* static */ void HeaderReadWriteUtils::fetchAllHeaderAttributes(const uint8_t *const dictBuf, in fetchAllHeaderAttributes() argument 71 const int headerSize = getHeaderSize(dictBuf); in fetchAllHeaderAttributes() 81 const int keyLength = ByteArrayUtils::readStringAndAdvancePosition(dictBuf, in fetchAllHeaderAttributes() 85 const int valueLength = ByteArrayUtils::readStringAndAdvancePosition(dictBuf, in fetchAllHeaderAttributes()
|
D | header_policy.h | 35 HeaderPolicy(const uint8_t *const dictBuf, const FormatUtils::FORMAT_VERSION formatVersion) in HeaderPolicy() argument 37 mDictionaryFlags(HeaderReadWriteUtils::getFlags(dictBuf)), in HeaderPolicy() 38 mSize(HeaderReadWriteUtils::getHeaderSize(dictBuf)), in HeaderPolicy() 39 mAttributeMap(createAttributeMapAndReadAllAttributes(dictBuf)), in HeaderPolicy() 265 const uint8_t *const dictBuf);
|
D | header_read_write_utils.h | 34 static int getHeaderSize(const uint8_t *const dictBuf); 36 static DictionaryFlags getFlags(const uint8_t *const dictBuf); 46 static void fetchAllHeaderAttributes(const uint8_t *const dictBuf,
|
D | header_policy.cpp | 156 HeaderPolicy::createAttributeMapAndReadAllAttributes(const uint8_t *const dictBuf) { in createAttributeMapAndReadAllAttributes() argument 158 HeaderReadWriteUtils::fetchAllHeaderAttributes(dictBuf, &attributeMap); in createAttributeMapAndReadAllAttributes()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_node_reader.cpp | 49 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() local 56 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 59 dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 64 dictBuf, flags, MAX_WORD_LENGTH, mHeaderPolicy->getCodePointTable(), codePoints, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 73 terminalId = Ver4PatriciaTrieReadingUtils::getTerminalIdAndAdvancePosition(dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 88 dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
|
D | ver4_pt_node_array_reader.cpp | 44 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readPtNodeArrayInfoAndReturnIfValid() local 50 dictBuf, &readingPos); in readPtNodeArrayInfoAndReturnIfValid() 73 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readForwardLinkAndReturnIfValid() local 79 DynamicPtReadingUtils::getForwardLinkPosition(dictBuf, readingPos); in readForwardLinkAndReturnIfValid()
|
D | ver4_patricia_trie_node_writer.cpp | 49 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsDeleted() local 55 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in markPtNodeAsDeleted() 79 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsMoved() local 85 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in markPtNodeAsMoved() 124 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsWillBecomeNonTerminal() local 130 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in markPtNodeAsWillBecomeNonTerminal()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | patricia_trie_reading_utils.cpp | 136 /* static */ void PtReadingUtils::readPtNodeInfo(const uint8_t *const dictBuf, const int ptNodePos, in readPtNodeInfo() argument 143 const NodeFlags flags = getFlagsAndAdvancePosition(dictBuf, &readingPos); in readPtNodeInfo() 146 dictBuf, flags, MAX_WORD_LENGTH, codePointTable, outCodePoint, &readingPos); in readPtNodeInfo() 148 readProbabilityAndAdvancePosition(dictBuf, &readingPos) : NOT_A_PROBABILITY; in readPtNodeInfo() 150 readChildrenPositionAndAdvancePosition(dictBuf, flags, &readingPos) : NOT_A_DICT_POS; in readPtNodeInfo()
|
D | patricia_trie_reading_utils.h | 108 static void readPtNodeInfo(const uint8_t *const dictBuf, const int ptNodePos,
|