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

Side by Side Diff: url/url_canon_icu.cc

Issue 1542703002: Switch to standard integer types in url/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « url/scheme_host_port_unittest.cc ('k') | url/url_canon_icu_unittest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // ICU integration functions. 5 // ICU integration functions.
6 6
7 #include <stdint.h>
7 #include <stdlib.h> 8 #include <stdlib.h>
8 #include <string.h> 9 #include <string.h>
9 10
10 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
11 #include "base/logging.h" 12 #include "base/logging.h"
12 #include "third_party/icu/source/common/unicode/ucnv.h" 13 #include "third_party/icu/source/common/unicode/ucnv.h"
13 #include "third_party/icu/source/common/unicode/ucnv_cb.h" 14 #include "third_party/icu/source/common/unicode/ucnv_cb.h"
14 #include "third_party/icu/source/common/unicode/uidna.h" 15 #include "third_party/icu/source/common/unicode/uidna.h"
15 #include "url/url_canon_icu.h" 16 #include "url/url_canon_icu.h"
16 #include "url/url_canon_internal.h" // for _itoa_s 17 #include "url/url_canon_internal.h" // for _itoa_s
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // if necessary. 181 // if necessary.
181 if (err != U_BUFFER_OVERFLOW_ERROR || info.errors != 0) 182 if (err != U_BUFFER_OVERFLOW_ERROR || info.errors != 0)
182 return false; // Unknown error, give up. 183 return false; // Unknown error, give up.
183 184
184 // Not enough room in our buffer, expand. 185 // Not enough room in our buffer, expand.
185 output->Resize(output_length); 186 output->Resize(output_length);
186 } 187 }
187 } 188 }
188 189
189 } // namespace url 190 } // namespace url
OLDNEW
« no previous file with comments | « url/scheme_host_port_unittest.cc ('k') | url/url_canon_icu_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698