OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/tools/convert_dict/aff_reader.h" | 5 #include "chrome/tools/convert_dict/aff_reader.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/i18n/icu_string_conversions.h" | 10 #include "base/i18n/icu_string_conversions.h" |
| 11 #include "base/string_split.h" |
11 #include "base/string_util.h" | 12 #include "base/string_util.h" |
12 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
13 #include "chrome/tools/convert_dict/hunspell_reader.h" | 14 #include "chrome/tools/convert_dict/hunspell_reader.h" |
14 | 15 |
15 namespace convert_dict { | 16 namespace convert_dict { |
16 | 17 |
17 namespace { | 18 namespace { |
18 | 19 |
19 // Returns true if the given line begins with the given case-sensitive | 20 // Returns true if the given line begins with the given case-sensitive |
20 // NULL-terminated ASCII string. | 21 // NULL-terminated ASCII string. |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 other_commands_.push_back(line); | 305 other_commands_.push_back(line); |
305 } | 306 } |
306 | 307 |
307 void AffReader::HandleEncodedCommand(const std::string& line) { | 308 void AffReader::HandleEncodedCommand(const std::string& line) { |
308 std::string utf8; | 309 std::string utf8; |
309 if (EncodingToUTF8(line, &utf8)) | 310 if (EncodingToUTF8(line, &utf8)) |
310 other_commands_.push_back(utf8); | 311 other_commands_.push_back(utf8); |
311 } | 312 } |
312 | 313 |
313 } // namespace convert_dict | 314 } // namespace convert_dict |
OLD | NEW |