OLD | NEW |
1 // Copyright (c) 2006-2008 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 // This tool converts Hunspell .aff/.dic pairs to a combined binary dictionary | 5 // This tool converts Hunspell .aff/.dic pairs to a combined binary dictionary |
6 // format (.bdic). This format is more compact, and can be more efficiently | 6 // format (.bdic). This format is more compact, and can be more efficiently |
7 // read by the client application. | 7 // read by the client application. |
8 // | 8 // |
9 // We do this conversion manually before publishing dictionary files. It is not | 9 // We do this conversion manually before publishing dictionary files. It is not |
10 // part of any build process. | 10 // part of any build process. |
11 // | 11 // |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 if (!out_file) { | 137 if (!out_file) { |
138 printf("ERROR writing file\n"); | 138 printf("ERROR writing file\n"); |
139 return 1; | 139 return 1; |
140 } | 140 } |
141 size_t written = fwrite(&serialized[0], 1, serialized.size(), out_file); | 141 size_t written = fwrite(&serialized[0], 1, serialized.size(), out_file); |
142 CHECK(written == serialized.size()); | 142 CHECK(written == serialized.size()); |
143 file_util::CloseFile(out_file); | 143 file_util::CloseFile(out_file); |
144 | 144 |
145 return 0; | 145 return 0; |
146 } | 146 } |
OLD | NEW |