Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Side by Side Diff: chrome/tools/convert_dict/aff_reader.cc

Issue 3447008: base: Finish moving the SplitString functions from string_util.h to string_split.h (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: chromeos fixes Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/webdriver/dispatch.h ('k') | chrome_frame/chrome_frame_activex.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/test/webdriver/dispatch.h ('k') | chrome_frame/chrome_frame_activex.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698