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

Side by Side Diff: base/i18n/icu_string_conversions.cc

Issue 9724033: Fix a typo in the comment for ToUnicodeCallbackSubstitute() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/i18n/icu_string_conversions.h" 5 #include "base/i18n/icu_string_conversions.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "unicode/ucnv.h" 14 #include "unicode/ucnv.h"
15 #include "unicode/ucnv_cb.h" 15 #include "unicode/ucnv_cb.h"
16 #include "unicode/ucnv_err.h" 16 #include "unicode/ucnv_err.h"
17 #include "unicode/unorm.h" 17 #include "unicode/unorm.h"
18 #include "unicode/ustring.h" 18 #include "unicode/ustring.h"
19 19
20 namespace base { 20 namespace base {
21 21
22 namespace { 22 namespace {
23 // ToUnicodeCallbackSubstitute() is based on UCNV_TO_U_CALLBACK_SUSBSTITUTE 23 // ToUnicodeCallbackSubstitute() is based on UCNV_TO_U_CALLBACK_SUBSTITUTE
24 // in source/common/ucnv_err.c. 24 // in source/common/ucnv_err.c.
25 25
26 // Copyright (c) 1995-2006 International Business Machines Corporation 26 // Copyright (c) 1995-2006 International Business Machines Corporation
27 // and others 27 // and others
28 // 28 //
29 // All rights reserved. 29 // All rights reserved.
30 // 30 //
31 31
32 // Permission is hereby granted, free of charge, to any person obtaining a 32 // Permission is hereby granted, free of charge, to any person obtaining a
33 // copy of this software and associated documentation files (the "Software"), 33 // copy of this software and associated documentation files (the "Software"),
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 buffer.get(), static_cast<int>(max_length), &status); 288 buffer.get(), static_cast<int>(max_length), &status);
289 if (!U_SUCCESS(status)) 289 if (!U_SUCCESS(status))
290 return false; 290 return false;
291 normalized_utf16.assign(buffer.get(), actual_length); 291 normalized_utf16.assign(buffer.get(), actual_length);
292 292
293 return UTF16ToUTF8(normalized_utf16.data(), 293 return UTF16ToUTF8(normalized_utf16.data(),
294 normalized_utf16.length(), result); 294 normalized_utf16.length(), result);
295 } 295 }
296 296
297 } // namespace base 297 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698