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

Side by Side Diff: trunk/src/url/url_canon_icu.cc

Issue 14264002: Revert 193777 "url: Changes to make it build standalone." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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 | « trunk/src/url/url_canon_icu.h ('k') | trunk/src/url/url_canon_internal.h » ('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 2011, Google Inc. 1 // Copyright 2011, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 17 matching lines...) Expand all
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 // ICU integration functions. 30 // ICU integration functions.
31 31
32 #include <stdlib.h> 32 #include <stdlib.h>
33 #include <string.h> 33 #include <string.h>
34 #include <unicode/ucnv.h> 34 #include <unicode/ucnv.h>
35 #include <unicode/ucnv_cb.h> 35 #include <unicode/ucnv_cb.h>
36 #include <unicode/uidna.h> 36 #include <unicode/uidna.h>
37 37
38 #include "googleurl/src/url_canon_icu.h"
39 #include "googleurl/src/url_canon_internal.h" // for _itoa_s
40
38 #include "base/logging.h" 41 #include "base/logging.h"
39 #include "url/url_canon_icu.h"
40 #include "url/url_canon_internal.h" // for _itoa_s
41 42
42 namespace url_canon { 43 namespace url_canon {
43 44
44 namespace { 45 namespace {
45 46
46 // Called when converting a character that can not be represented, this will 47 // Called when converting a character that can not be represented, this will
47 // append an escaped version of the numerical character reference for that code 48 // append an escaped version of the numerical character reference for that code
48 // point. It is of the form "&#1234;" and we will escape the non-digits to 49 // point. It is of the form "&#1234;" and we will escape the non-digits to
49 // "%26%231234%3B". Why? This is what Netscape did back in the olden days. 50 // "%26%231234%3B". Why? This is what Netscape did back in the olden days.
50 void appendURLEscapedChar(const void* context, 51 void appendURLEscapedChar(const void* context,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 201
201 if (U_IS_UNICODE_CHAR(*code_point)) 202 if (U_IS_UNICODE_CHAR(*code_point))
202 return true; 203 return true;
203 204
204 // Invalid code point. 205 // Invalid code point.
205 *code_point = kUnicodeReplacementCharacter; 206 *code_point = kUnicodeReplacementCharacter;
206 return false; 207 return false;
207 } 208 }
208 209
209 } // namespace url_canon 210 } // namespace url_canon
OLDNEW
« no previous file with comments | « trunk/src/url/url_canon_icu.h ('k') | trunk/src/url/url_canon_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698