OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_TOOLS_CONVERT_DICT_DIC_READER_H__ | 5 #ifndef CHROME_TOOLS_CONVERT_DICT_DIC_READER_H__ |
6 #define CHROME_TOOLS_CONVERT_DICT_DIC_READER_H__ | 6 #define CHROME_TOOLS_CONVERT_DICT_DIC_READER_H__ |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 17 matching lines...) Loading... |
28 | 28 |
29 // Non-numeric affixes will be added to the given AffReader and converted into | 29 // Non-numeric affixes will be added to the given AffReader and converted into |
30 // indices. | 30 // indices. |
31 bool Read(AffReader* aff_reader); | 31 bool Read(AffReader* aff_reader); |
32 | 32 |
33 // Returns the words read by Read(). These will be in order. | 33 // Returns the words read by Read(). These will be in order. |
34 const WordList& words() const { return words_; } | 34 const WordList& words() const { return words_; } |
35 | 35 |
36 private: | 36 private: |
37 FILE* file_; | 37 FILE* file_; |
| 38 FILE* additional_words_file_; |
38 | 39 |
39 // Contains all words and their corresponding affix index. | 40 // Contains all words and their corresponding affix index. |
40 WordList words_; | 41 WordList words_; |
41 }; | 42 }; |
42 | 43 |
43 } // namespace convert_dict | 44 } // namespace convert_dict |
44 | 45 |
45 #endif // CHROME_TOOLS_CONVERT_DICT_DIC_READER_H__ | 46 #endif // CHROME_TOOLS_CONVERT_DICT_DIC_READER_H__ |
46 | 47 |
OLD | NEW |