Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: base/string_util.h

Issue 243102: Convert base dependencies to use sys_string_conversions instead of the ICU... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/string16_unittest.cc ('k') | base/sys_info_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 9
10 #include <stdarg.h> // va_list 10 #include <stdarg.h> // va_list
11 11
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/string16.h" 16 #include "base/string16.h"
17 #include "base/string_piece.h" // For implicit conversions. 17 #include "base/string_piece.h" // For implicit conversions.
18 18
19 // TODO(brettw) this dependency should be removed and callers that need 19 // TODO(brettw) this dependency should be removed and callers that need
20 // these functions should include this file directly. 20 // these functions should include this file directly.
21 #include "base/i18n/string_conversions.h" 21 #include "base/utf_string_conversions.h"
22 #include "base/i18n/icu_string_conversions.h"
22 23
23 // Safe standard library wrappers for all platforms. 24 // Safe standard library wrappers for all platforms.
24 25
25 namespace base { 26 namespace base {
26 27
27 // C standard-library functions like "strncasecmp" and "snprintf" that aren't 28 // C standard-library functions like "strncasecmp" and "snprintf" that aren't
28 // cross-platform are provided as "base::strncasecmp", and their prototypes 29 // cross-platform are provided as "base::strncasecmp", and their prototypes
29 // are listed below. These functions are then implemented as inline calls 30 // are listed below. These functions are then implemented as inline calls
30 // to the platform-specific equivalents in the platform-specific headers. 31 // to the platform-specific equivalents in the platform-specific headers.
31 32
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 #elif defined(WCHAR_T_IS_UTF32) 581 #elif defined(WCHAR_T_IS_UTF32)
581 typedef uint32 Unsigned; 582 typedef uint32 Unsigned;
582 #endif 583 #endif
583 }; 584 };
584 template<> 585 template<>
585 struct ToUnsigned<short> { 586 struct ToUnsigned<short> {
586 typedef unsigned short Unsigned; 587 typedef unsigned short Unsigned;
587 }; 588 };
588 589
589 #endif // BASE_STRING_UTIL_H_ 590 #endif // BASE_STRING_UTIL_H_
OLDNEW
« no previous file with comments | « base/string16_unittest.cc ('k') | base/sys_info_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698