Home | History | Annotate | Download | only in spellchecker

Lines Matching refs:to_add

126 // Removes duplicate and invalid words from |to_add| word list and sorts it.
127 // Looks for duplicates in both |to_add| and |existing| word lists. Returns a
129 int SanitizeWordsToAdd(const WordSet& existing, WordList& to_add) {
131 std::sort(to_add.begin(), to_add.end());
132 WordList new_words = base::STLSetDifference<WordList>(to_add, existing);
136 if (to_add.size() != new_words.size())
147 std::swap(to_add, new_words);
178 : to_add_(other.to_add()),
182 SpellcheckCustomDictionary::Change::Change(const WordList& to_add)
183 : to_add_(to_add) {
206 const WordList& SpellcheckCustomDictionary::Change::to_add() const {
420 dictionary_change.to_add().begin(),
421 dictionary_change.to_add().end());
446 if (!dictionary_change.to_add().empty()) {
447 words_.insert(dictionary_change.to_add().begin(),
448 dictionary_change.to_add().end());
478 static_cast<int>(dictionary_change.to_add().size());
485 static_cast<int>(dictionary_change.to_add().size()),
491 for (WordList::const_iterator it = dictionary_change.to_add().begin();
492 it != dictionary_change.to_add().end() && i < upload_size;