OLD | NEW |
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 Loading... |
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 |
OLD | NEW |