| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "third_party/hunspell_new/google/bdict_reader.h" | 5 #include "third_party/hunspell/google/bdict_reader.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace hunspell { | 9 namespace hunspell { |
| 10 | 10 |
| 11 // Like the "Visitor" design pattern, this lightweight object provides an | 11 // Like the "Visitor" design pattern, this lightweight object provides an |
| 12 // interface around a serialized trie node at the given address in the memory. | 12 // interface around a serialized trie node at the given address in the memory. |
| 13 class NodeReader { | 13 class NodeReader { |
| 14 public: | 14 public: |
| 15 // Return values for GetChildAt. | 15 // Return values for GetChildAt. |
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 aff_header_->rep_offset); | 784 aff_header_->rep_offset); |
| 785 } | 785 } |
| 786 | 786 |
| 787 | 787 |
| 788 WordIterator BDictReader::GetAllWordIterator() const { | 788 WordIterator BDictReader::GetAllWordIterator() const { |
| 789 NodeReader reader(bdict_data_, bdict_length_, header_->dic_offset, 0); | 789 NodeReader reader(bdict_data_, bdict_length_, header_->dic_offset, 0); |
| 790 return WordIterator(reader); | 790 return WordIterator(reader); |
| 791 } | 791 } |
| 792 | 792 |
| 793 } // namespace hunspell | 793 } // namespace hunspell |
| OLD | NEW |