| 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 #include "url/url_canon_internal.h" | 5 #include "url/url_canon_internal.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <stddef.h> |
| 8 #include <stdlib.h> | 9 #include <stdlib.h> |
| 9 | 10 |
| 10 #include <cstdio> | 11 #include <cstdio> |
| 11 #include <string> | 12 #include <string> |
| 12 | 13 |
| 13 #include "base/strings/utf_string_conversion_utils.h" | 14 #include "base/strings/utf_string_conversion_utils.h" |
| 14 | 15 |
| 15 namespace url { | 16 namespace url { |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 for (int i = 0; i < written; ++i) { | 424 for (int i = 0; i < written; ++i) { |
| 424 buffer[i] = static_cast<base::char16>(temp[i]); | 425 buffer[i] = static_cast<base::char16>(temp[i]); |
| 425 } | 426 } |
| 426 buffer[written] = '\0'; | 427 buffer[written] = '\0'; |
| 427 return 0; | 428 return 0; |
| 428 } | 429 } |
| 429 | 430 |
| 430 #endif // !WIN32 | 431 #endif // !WIN32 |
| 431 | 432 |
| 432 } // namespace url | 433 } // namespace url |
| OLD | NEW |