• Home
  • Raw
  • Download

Lines Matching refs:DE

178                                                 DictionaryEntry &DE) {  in ApplyDictionaryEntry()  argument
179 const Word &W = DE.GetW(); in ApplyDictionaryEntry()
180 bool UsePositionHint = DE.HasPositionHint() && in ApplyDictionaryEntry()
181 DE.GetPositionHint() + W.size() < Size && in ApplyDictionaryEntry()
185 size_t Idx = UsePositionHint ? DE.GetPositionHint() : Rand(Size + 1); in ApplyDictionaryEntry()
191 size_t Idx = UsePositionHint ? DE.GetPositionHint() : Rand(Size - W.size()); in ApplyDictionaryEntry()
231 DictionaryEntry DE(W); in MakeDictionaryEntryFromCMP() local
232 return DE; in MakeDictionaryEntryFromCMP()
238 DictionaryEntry DE; in Mutate_AddWordFromTORC() local
241 DE = MakeDictionaryEntryFromCMP(X.A, X.B, Data, Size); in Mutate_AddWordFromTORC()
245 DE = MakeDictionaryEntryFromCMP((uint16_t)X.A, (uint16_t)X.B, Data, in Mutate_AddWordFromTORC()
248 DE = MakeDictionaryEntryFromCMP(X.A, X.B, Data, Size); in Mutate_AddWordFromTORC()
250 Size = ApplyDictionaryEntry(Data, Size, MaxSize, DE); in Mutate_AddWordFromTORC()
255 DERef = DE; in Mutate_AddWordFromTORC()
269 DictionaryEntry &DE = D[Rand(D.size())]; in AddWordFromDictionary() local
270 Size = ApplyDictionaryEntry(Data, Size, MaxSize, DE); in AddWordFromDictionary()
272 DE.IncUseCount(); in AddWordFromDictionary()
273 CurrentDictionaryEntrySequence.push_back(&DE); in AddWordFromDictionary()
437 for (auto DE : CurrentDictionaryEntrySequence) { in RecordSuccessfulMutationSequence() local
439 DE->IncSuccessCount(); in RecordSuccessfulMutationSequence()
441 if (!PersistentAutoDictionary.ContainsWord(DE->GetW())) in RecordSuccessfulMutationSequence()
442 PersistentAutoDictionary.push_back({DE->GetW(), 1}); in RecordSuccessfulMutationSequence()
448 for (auto &DE : PersistentAutoDictionary) in PrintRecommendedDictionary() local
449 if (!ManualDictionary.ContainsWord(DE.GetW())) in PrintRecommendedDictionary()
450 V.push_back(DE); in PrintRecommendedDictionary()
453 for (auto &DE: V) { in PrintRecommendedDictionary() local
455 PrintASCII(DE.GetW(), "\""); in PrintRecommendedDictionary()
456 Printf(" # Uses: %zd\n", DE.GetUseCount()); in PrintRecommendedDictionary()
467 for (auto DE : CurrentDictionaryEntrySequence) { in PrintMutationSequence() local
469 PrintASCII(DE->GetW(), "\"-"); in PrintMutationSequence()
517 void MutationDispatcher::AddWordToAutoDictionary(DictionaryEntry DE) { in AddWordToAutoDictionary() argument
520 TempAutoDictionary.push_back(DE); in AddWordToAutoDictionary()