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

Side by Side Diff: base/string_util.cc

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/string_util.h" 5 #include "base/string_util.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <ctype.h> 9 #include <ctype.h>
10 #include <errno.h> 10 #include <errno.h>
11 #include <math.h> 11 #include <math.h>
12 #include <stdarg.h> 12 #include <stdarg.h>
13 #include <stdio.h> 13 #include <stdio.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 #include <string.h> 15 #include <string.h>
16 #include <time.h> 16 #include <time.h>
17 #include <wchar.h> 17 #include <wchar.h>
18 #include <wctype.h> 18 #include <wctype.h>
19 19
20 #include <algorithm> 20 #include <algorithm>
21 #include <vector> 21 #include <vector>
22 22
23 #include "base/basictypes.h" 23 #include "base/basictypes.h"
24 #include "base/logging.h" 24 #include "base/logging.h"
25 #include "base/singleton.h" 25 #include "base/memory/singleton.h"
26 #include "base/third_party/dmg_fp/dmg_fp.h" 26 #include "base/third_party/dmg_fp/dmg_fp.h"
27 #include "base/utf_string_conversion_utils.h" 27 #include "base/utf_string_conversion_utils.h"
28 #include "base/utf_string_conversions.h" 28 #include "base/utf_string_conversions.h"
29 #include "base/third_party/icu/icu_utf.h" 29 #include "base/third_party/icu/icu_utf.h"
30 30
31 namespace { 31 namespace {
32 32
33 // Force the singleton used by Empty[W]String[16] to be a unique type. This 33 // Force the singleton used by Empty[W]String[16] to be a unique type. This
34 // prevents other code that might accidentally use Singleton<string> from 34 // prevents other code that might accidentally use Singleton<string> from
35 // getting our internal one. 35 // getting our internal one.
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 } 1088 }
1089 1089
1090 } // namespace 1090 } // namespace
1091 1091
1092 size_t base::strlcpy(char* dst, const char* src, size_t dst_size) { 1092 size_t base::strlcpy(char* dst, const char* src, size_t dst_size) {
1093 return lcpyT<char>(dst, src, dst_size); 1093 return lcpyT<char>(dst, src, dst_size);
1094 } 1094 }
1095 size_t base::wcslcpy(wchar_t* dst, const wchar_t* src, size_t dst_size) { 1095 size_t base::wcslcpy(wchar_t* dst, const wchar_t* src, size_t dst_size) {
1096 return lcpyT<wchar_t>(dst, src, dst_size); 1096 return lcpyT<wchar_t>(dst, src, dst_size);
1097 } 1097 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698