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

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

Issue 553087: The first step towards supporting the Hungarian spell-checking dictionary.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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/tools/convert_dict/dic_reader.cc ('k') | no next file » | 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 37777)
+++ chrome/tools/convert_dict/hunspell_reader.cc (working copy)
@@ -20,10 +20,10 @@
static_cast<unsigned char>((*line)[2]) == 0xbf)
*line = line->substr(3);
- 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);
+ // Treat this text as an ASCII text and trim whitespace characters as
+ // hunspell does. The returned text is to be converted into UTF-8 text with
+ // the encoding defined in an affix file.
+ TrimWhitespace(*line, TRIM_ALL, line);
}
std::string ReadLine(FILE* file) {
« no previous file with comments | « chrome/tools/convert_dict/dic_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698