| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/environment.h" | 5 #include "base/environment.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <vector> | 9 #include <vector> |
| 8 | 10 |
| 9 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
| 10 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "build/build_config.h" |
| 12 | 15 |
| 13 #if defined(OS_POSIX) | 16 #if defined(OS_POSIX) |
| 14 #include <stdlib.h> | 17 #include <stdlib.h> |
| 15 #elif defined(OS_WIN) | 18 #elif defined(OS_WIN) |
| 16 #include <windows.h> | 19 #include <windows.h> |
| 17 #endif | 20 #endif |
| 18 | 21 |
| 19 namespace base { | 22 namespace base { |
| 20 | 23 |
| 21 namespace { | 24 namespace { |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 for (size_t i = 0; i < result_indices.size(); i++) | 230 for (size_t i = 0; i < result_indices.size(); i++) |
| 228 result[i] = &storage_data[result_indices[i]]; | 231 result[i] = &storage_data[result_indices[i]]; |
| 229 result[result_indices.size()] = 0; // Null terminator. | 232 result[result_indices.size()] = 0; // Null terminator. |
| 230 | 233 |
| 231 return result; | 234 return result; |
| 232 } | 235 } |
| 233 | 236 |
| 234 #endif // OS_POSIX | 237 #endif // OS_POSIX |
| 235 | 238 |
| 236 } // namespace base | 239 } // namespace base |
| OLD | NEW |