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

Unified Diff: chrome/tools/convert_dict/hunspell_reader.cc

Issue 267001: Separate out some more ICU from base and into base/i18n.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/new_profile_dialog.cc ('k') | net/base/directory_lister.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/convert_dict/hunspell_reader.cc
===================================================================
--- chrome/tools/convert_dict/hunspell_reader.cc (revision 28217)
+++ chrome/tools/convert_dict/hunspell_reader.cc (working copy)
@@ -20,7 +20,10 @@
static_cast<unsigned char>((*line)[2]) == 0xbf)
*line = line->substr(3);
- TrimWhitespaceUTF8(*line, TRIM_ALL, line);
+ std::wstring line_input_wide = UTF8ToWide(*line);
+ std::wstring line_output_wide;
+ TrimWhitespace(line_input_wide, TRIM_ALL, &line_output_wide);
+ *line = WideToUTF8(line_output_wide);
}
std::string ReadLine(FILE* file) {
« no previous file with comments | « chrome/browser/views/new_profile_dialog.cc ('k') | net/base/directory_lister.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698