OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_STRING_UTIL_H_ | 7 #ifndef BASE_STRING_UTIL_H_ |
8 #define BASE_STRING_UTIL_H_ | 8 #define BASE_STRING_UTIL_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
| 11 #include <ctype.h> |
11 #include <stdarg.h> // va_list | 12 #include <stdarg.h> // va_list |
12 | 13 |
13 #include <string> | 14 #include <string> |
14 #include <vector> | 15 #include <vector> |
15 | 16 |
16 #include "base/base_api.h" | 17 #include "base/base_api.h" |
17 #include "base/basictypes.h" | 18 #include "base/basictypes.h" |
18 #include "base/compiler_specific.h" | 19 #include "base/compiler_specific.h" |
19 #include "base/string16.h" | 20 #include "base/string16.h" |
20 #include "base/string_piece.h" // For implicit conversions. | 21 #include "base/string_piece.h" // For implicit conversions. |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 #elif defined(WCHAR_T_IS_UTF32) | 536 #elif defined(WCHAR_T_IS_UTF32) |
536 typedef uint32 Unsigned; | 537 typedef uint32 Unsigned; |
537 #endif | 538 #endif |
538 }; | 539 }; |
539 template<> | 540 template<> |
540 struct ToUnsigned<short> { | 541 struct ToUnsigned<short> { |
541 typedef unsigned short Unsigned; | 542 typedef unsigned short Unsigned; |
542 }; | 543 }; |
543 | 544 |
544 #endif // BASE_STRING_UTIL_H_ | 545 #endif // BASE_STRING_UTIL_H_ |
OLD | NEW |