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 #include "base/strings/string_util.h" | 5 #include "base/strings/string_util.h" |
6 | 6 |
7 #include <ctype.h> | 7 #include <ctype.h> |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <math.h> | 9 #include <math.h> |
10 #include <stdarg.h> | 10 #include <stdarg.h> |
11 #include <stdint.h> | 11 #include <stdint.h> |
12 #include <stdio.h> | 12 #include <stdio.h> |
13 #include <stdlib.h> | 13 #include <stdlib.h> |
14 #include <string.h> | 14 #include <string.h> |
15 #include <time.h> | 15 #include <time.h> |
16 #include <wchar.h> | 16 #include <wchar.h> |
17 #include <wctype.h> | 17 #include <wctype.h> |
18 | 18 |
19 #include <algorithm> | 19 #include <algorithm> |
20 #include <limits> | 20 #include <limits> |
21 #include <vector> | 21 #include <vector> |
22 | 22 |
23 #include "base/logging.h" | 23 #include "base/logging.h" |
24 #include "base/macros.h" | 24 #include "base/macros.h" |
25 #include "base/memory/singleton.h" | 25 #include "base/memory/singleton.h" |
26 #include "base/strings/string_split.h" | |
27 #include "base/strings/utf_string_conversion_utils.h" | 26 #include "base/strings/utf_string_conversion_utils.h" |
28 #include "base/strings/utf_string_conversions.h" | 27 #include "base/strings/utf_string_conversions.h" |
29 #include "base/third_party/icu/icu_utf.h" | 28 #include "base/third_party/icu/icu_utf.h" |
30 #include "build/build_config.h" | 29 #include "build/build_config.h" |
31 | 30 |
32 namespace base { | 31 namespace base { |
33 | 32 |
34 namespace { | 33 namespace { |
35 | 34 |
36 // Force the singleton used by EmptyString[16] to be a unique type. This | 35 // Force the singleton used by EmptyString[16] to be a unique type. This |
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 } // namespace | 988 } // namespace |
990 | 989 |
991 size_t strlcpy(char* dst, const char* src, size_t dst_size) { | 990 size_t strlcpy(char* dst, const char* src, size_t dst_size) { |
992 return lcpyT<char>(dst, src, dst_size); | 991 return lcpyT<char>(dst, src, dst_size); |
993 } | 992 } |
994 size_t wcslcpy(wchar_t* dst, const wchar_t* src, size_t dst_size) { | 993 size_t wcslcpy(wchar_t* dst, const wchar_t* src, size_t dst_size) { |
995 return lcpyT<wchar_t>(dst, src, dst_size); | 994 return lcpyT<wchar_t>(dst, src, dst_size); |
996 } | 995 } |
997 | 996 |
998 } // namespace base | 997 } // namespace base |
OLD | NEW |