| 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 // This file defines utility functions for working with strings. | 5 // This file defines utility functions for working with strings. | 
| 6 | 6 | 
| 7 #ifndef BASE_STRINGS_STRING_UTIL_H_ | 7 #ifndef BASE_STRINGS_STRING_UTIL_H_ | 
| 8 #define BASE_STRINGS_STRING_UTIL_H_ | 8 #define BASE_STRINGS_STRING_UTIL_H_ | 
| 9 | 9 | 
| 10 #include <ctype.h> | 10 #include <ctype.h> | 
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 451 | 451 | 
| 452 // Single-string shortcut for ReplaceStringHolders. |offset| may be NULL. | 452 // Single-string shortcut for ReplaceStringHolders. |offset| may be NULL. | 
| 453 BASE_EXPORT string16 ReplaceStringPlaceholders(const string16& format_string, | 453 BASE_EXPORT string16 ReplaceStringPlaceholders(const string16& format_string, | 
| 454                                                const string16& a, | 454                                                const string16& a, | 
| 455                                                size_t* offset); | 455                                                size_t* offset); | 
| 456 | 456 | 
| 457 }  // namespace base | 457 }  // namespace base | 
| 458 | 458 | 
| 459 #if defined(OS_WIN) | 459 #if defined(OS_WIN) | 
| 460 #include "base/strings/string_util_win.h" | 460 #include "base/strings/string_util_win.h" | 
| 461 #elif defined(OS_POSIX) | 461 #elif defined(OS_POSIX) || defined(OS_FUCHSIA) | 
| 462 #include "base/strings/string_util_posix.h" | 462 #include "base/strings/string_util_posix.h" | 
| 463 #else | 463 #else | 
| 464 #error Define string operations appropriately for your platform | 464 #error Define string operations appropriately for your platform | 
| 465 #endif | 465 #endif | 
| 466 | 466 | 
| 467 #endif  // BASE_STRINGS_STRING_UTIL_H_ | 467 #endif  // BASE_STRINGS_STRING_UTIL_H_ | 
| OLD | NEW | 
|---|