OLD | NEW |
1 // Copyright (c) 2010 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/files/file_util.h" |
10 #include "base/i18n/icu_string_conversions.h" | 10 #include "base/i18n/icu_string_conversions.h" |
11 #include "base/strings/string_split.h" | 11 #include "base/strings/string_split.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/tools/convert_dict/hunspell_reader.h" | 14 #include "chrome/tools/convert_dict/hunspell_reader.h" |
15 | 15 |
16 namespace convert_dict { | 16 namespace convert_dict { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 } | 327 } |
328 | 328 |
329 void AffReader::HandleEncodedCommand(const std::string& line) { | 329 void AffReader::HandleEncodedCommand(const std::string& line) { |
330 std::string utf8; | 330 std::string utf8; |
331 if (!EncodingToUTF8(line, &utf8)) | 331 if (!EncodingToUTF8(line, &utf8)) |
332 Panic("Cannot encode command '%s' to utf8.", line.c_str()); | 332 Panic("Cannot encode command '%s' to utf8.", line.c_str()); |
333 other_commands_.push_back(utf8); | 333 other_commands_.push_back(utf8); |
334 } | 334 } |
335 | 335 |
336 } // namespace convert_dict | 336 } // namespace convert_dict |
OLD | NEW |