Searched refs:readingHelper (Results 1 – 7 of 7) sorted by relevance
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 53 DynamicPtReadingHelper readingHelper(&mNodeReader, &mPtNodeArrayReader); in createAndGetAllChildDicNodes() local 54 readingHelper.initWithPtNodeArrayPos(dicNode->getChildrenPtNodeArrayPos()); in createAndGetAllChildDicNodes() 55 while (!readingHelper.isEnd()) { in createAndGetAllChildDicNodes() 56 const PtNodeParams ptNodeParams = readingHelper.getPtNodeParams(); in createAndGetAllChildDicNodes() 64 readingHelper.readNextSiblingNode(ptNodeParams); in createAndGetAllChildDicNodes() 66 if (readingHelper.isError()) { in createAndGetAllChildDicNodes() 74 DynamicPtReadingHelper readingHelper(&mNodeReader, &mPtNodeArrayReader); in getCodePointsAndReturnCodePointCount() local 77 readingHelper.initWithPtNodePos(ptNodePos); in getCodePointsAndReturnCodePointCount() 78 const int codePointCount = readingHelper.getCodePointsAndReturnCodePointCount( in getCodePointsAndReturnCodePointCount() 80 if (readingHelper.isError()) { in getCodePointsAndReturnCodePointCount() [all …]
|
D | ver4_patricia_trie_writing_helper.cpp | 100 DynamicPtReadingHelper readingHelper(&ptNodeReader, &ptNodeArrayReader); in runGC() local 101 readingHelper.initWithPtNodeArrayPos(rootPtNodeArrayPos); in runGC() 106 if (!readingHelper.traverseAllPtNodesInPostorderDepthFirstManner( in runGC() 113 readingHelper.initWithPtNodeArrayPos(rootPtNodeArrayPos); in runGC() 119 if (!readingHelper.traverseAllPtNodesInPtNodeArrayLevelPreorderDepthFirstManner( in runGC()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | dynamic_pt_updating_helper.cpp | 31 bool DynamicPtUpdatingHelper::addUnigramWord(DynamicPtReadingHelper *const readingHelper, in addUnigramWord() argument 35 while (!readingHelper->isEnd()) { in addUnigramWord() 36 const PtNodeParams ptNodeParams(readingHelper->getPtNodeParams()); in addUnigramWord() 40 const size_t matchedCodePointCount = readingHelper->getPrevTotalCodePointCount(); in addUnigramWord() 41 if (!readingHelper->isMatchedCodePoint(ptNodeParams, 0 /* index */, in addUnigramWord() 45 readingHelper->readNextSiblingNode(ptNodeParams); in addUnigramWord() 53 || !readingHelper->isMatchedCodePoint(ptNodeParams, j, in addUnigramWord() 61 if (wordCodePoints.size() == readingHelper->getTotalCodePointCount(ptNodeParams)) { in addUnigramWord() 67 wordCodePoints.skip(readingHelper->getTotalCodePointCount(ptNodeParams))); in addUnigramWord() 71 readingHelper->readChildNode(ptNodeParams); in addUnigramWord() [all …]
|
D | dynamic_pt_updating_helper.h | 42 bool addUnigramWord(DynamicPtReadingHelper *const readingHelper,
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 62 DynamicPtReadingHelper readingHelper(&mNodeReader, &mPtNodeArrayReader); in createAndGetAllChildDicNodes() local 63 readingHelper.initWithPtNodeArrayPos(dicNode->getChildrenPtNodeArrayPos()); in createAndGetAllChildDicNodes() 64 while (!readingHelper.isEnd()) { in createAndGetAllChildDicNodes() 65 const PtNodeParams ptNodeParams = readingHelper.getPtNodeParams(); in createAndGetAllChildDicNodes() 76 readingHelper.readNextSiblingNode(ptNodeParams); in createAndGetAllChildDicNodes() 85 if (readingHelper.isError()) { in createAndGetAllChildDicNodes() 93 DynamicPtReadingHelper readingHelper(&mNodeReader, &mPtNodeArrayReader); in getCodePointsAndReturnCodePointCount() local 95 readingHelper.initWithPtNodePos(ptNodePos); in getCodePointsAndReturnCodePointCount() 96 const int codePointCount = readingHelper.getCodePointsAndReturnCodePointCount( in getCodePointsAndReturnCodePointCount() 98 if (readingHelper.isError()) { in getCodePointsAndReturnCodePointCount() [all …]
|
D | ver4_patricia_trie_writing_helper.cpp | 100 DynamicPtReadingHelper readingHelper(&ptNodeReader, &ptNodeArrayReader); in runGC() local 101 readingHelper.initWithPtNodeArrayPos(rootPtNodeArrayPos); in runGC() 106 if (!readingHelper.traverseAllPtNodesInPostorderDepthFirstManner( in runGC() 121 readingHelper.initWithPtNodeArrayPos(rootPtNodeArrayPos); in runGC() 124 if (!readingHelper.traverseAllPtNodesInPostorderDepthFirstManner( in runGC() 139 readingHelper.initWithPtNodeArrayPos(rootPtNodeArrayPos); in runGC() 146 if (!readingHelper.traverseAllPtNodesInPtNodeArrayLevelPreorderDepthFirstManner( in runGC()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.cpp | 282 DynamicPtReadingHelper readingHelper(&mPtNodeReader, &mPtNodeArrayReader); in getWordId() local 283 readingHelper.initWithPtNodeArrayPos(getRootPosition()); in getWordId() 284 const int ptNodePos = readingHelper.getTerminalPtNodePositionOfWord(wordCodePoints.data(), in getWordId() 286 if (readingHelper.isError()) { in getWordId() 492 DynamicPtReadingHelper readingHelper(&mPtNodeReader, &mPtNodeArrayReader); in getNextWordAndNextToken() local 493 readingHelper.initWithPtNodeArrayPos(getRootPosition()); in getNextWordAndNextToken() 494 readingHelper.traverseAllPtNodesInPostorderDepthFirstManner(&traversePolicy); in getNextWordAndNextToken()
|